This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Calling properly getpwuid_r
- From: Thomas Segismont <tsegismo at redhat dot com>
- To: libc-help at sourceware dot org
- Date: Tue, 12 Feb 2013 16:41:30 +0100
- Subject: 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