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]

Re: Manual update for get.*_r functions


Andreas Jaeger <aj@arthur.rhein-neckar.de> writes:

> I've checked POSIX and my understanding of POSIX is that the check for 
> NULL is necessary.

POSIX says:

	If successful, the getpwuid_r() and getpwnam_r() functions shall
	return zero.  Otherwise, an error number shall be returned to
	indicate the error.


I.e., the return value is != 0 in all error cases and no found entry
is an error case.

-- 
---------------.      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]