This is the mail archive of the libc-help@sourceware.org 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]

Calling properly getpwuid_r


Hi,

On the libc manual, there is an example on how to call gethostbyname_r:
http://www.gnu.org/software/libc/manual/html_node/Host-Names.html

As getpwuid_r seems to be backed by the same code in getXXbyYY_r.c, is it also recommended to call it in a while loop to deal with erange errors?

Is there a particular reason for this?

Thanks and regards,
Thomas


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