History log of /netbsd/lib/libcompat/4.4/cuserid.c (Results 1 – 8 of 8)
Revision Date Author Comments
# a767f5ec 19-Apr-2005 lukem <lukem@NetBSD.org>

getpw*_r() may return 0 and set pwd==NULL


# fffc26d4 01-Apr-2005 christos <christos@NetBSD.org>

Use getpwuid_r, KNF. From John Nemeth, many thanks.


# eb7c1594 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.


# b48252f3 16-Sep-1999 lukem <lukem@NetBSD.org>

* use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attemp

* use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif

show more ...


# 965a9562 26-Jul-1998 mycroft <mycroft@NetBSD.org>

Copy into a local buffer rather than using the getpw*() buffer.


# 74174020 03-Feb-1998 perry <perry@NetBSD.org>

remove obsolete register declarations


# e37aec67 09-Oct-1997 lukem <lukem@NetBSD.org>

rcsid facism, WARNSify


# 74c187c2 06-May-1994 cgd <cgd@NetBSD.org>

update