This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Mark Kettenis <kettenis@wins.uva.nl> writes: > AFAIK gethostbyname_r() is not standardized by POSIX. If you look at > the code in bind 8.2 (src/include/netdb.h) you see that there are > two flavours of the various getXXbyYY_r functions. Solaris and BSDI > return a pointer to the resul buffer on success (and NULL on some sort > of failure, which sets errno or stores something in h_errnop). Solaris also implemented getpwbynam_r etc differently before. But for glibc we have done it after the POSIX specs were out and we modelled all _r interfaces after the POSIX one. Which is better since consistent. Take a look at the mess in the Solaris pwd.h file. -- ---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA Cygnus Solutions `--' drepper at cygnus.com `------------------------
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |