This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/1012] gethostid() output sign-extended on 64-bit platforms


------- Additional Comments From jakub at redhat dot com  2005-06-16 12:31 -------
Sign-extension is the correct thing to do in gethostid.
gethostid returns long int and is supposed to return a 32-bit value.
It is desirable that on the same machine gethostid () also returns the same
value in all programs.  As for 32-bit programs it returns a value in the
-2147483648L to 2147483647L range, it should do the same for 64-bit programs
as well.

See http://www.opengroup.org/onlinepubs/009695399/functions/gethostid.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sources.redhat.com/bugzilla/show_bug.cgi?id=1012

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]