Subject: getpw*_r standards
To: None <email@example.com>
From: John Nemeth <firstname.lastname@example.org>
Date: 04/10/2005 12:21:30
Any POSIX gurus here? I'm wondering about standards compliance.
The POSIX definition of getpwnam_r is located here:
At the above URL, there are no error codes listed that can be used to
indicate the entry wasn't found. The Solaris manpage says that in this
case, it returns 0 and sets the result to NULL. The NetBSD manpage
doesn't specifically mention this case. The NetBSD code returns ENOENT
in this case. Is it standards compliant to return codes not mentioned
in the standard? Should NetBSD code follow the Solaris way for maximum
P.S. The HISTORY section of the NetBSD manpage needs to be updated
to mention getpwent_r().