Subject: getpw*_r standards
To: None <current-users@netbsd.org>
From: John Nemeth <jnemeth@victoria.tc.ca>
List: current-users
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:

http://www.opengroup.org/onlinepubs/009695399/functions/getpwnam.html

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
portability?

P.S.  The HISTORY section of the NetBSD manpage needs to be updated
to mention getpwent_r().