gethostid()

cfenrich@swri.edu cfenrich@swri.edu
Wed May 19 07:35:00 GMT 1999


Dear Sirs,
We are currently using the latest version of egcs and there is a bug
in a system call.  I am not sure if I tell you or who to tell. 
There is a problem with the gethostid() system call, and I don't know if
it is the compiler or is it a problem with the kernel, or what, I am not
sure.  Our IP address on the box we are using is 129.162.91.47
and when we call gethostid() the return is 162.129.47.91 . 
We thought it was a byte swap problem but when we run it through a byte
swap function we get 91.47.129.162 . We have corrected the problem
in our code but I thought I should let someone know that there is a problem.
We are using egcs 1.1.2, Linux 2.2.5, we are running on a box with dual
intel P400s.
Thanks
Craig Fenrich
cfenrich@swri.edu



More information about the Gcc-bugs mailing list