OpenGrok
Cross Reference: cuserid.c
xref
: /
src
/
lib
/
libcompat
/
4.4
/
cuserid.c
Home
|
History
|
Annotate
|
Download
|
only in
4.4
History log of
/src/lib/libcompat/4.4/cuserid.c
Revision
Date
Author
Comments
1.8
19-Apr-2005
lukem
getpw*_r() may return 0 and set pwd==NULL
1.7
01-Apr-2005
christos
Use getpwuid_r, KNF. From John Nemeth, many thanks.
1.6
07-Aug-2003
agc
branches: 1.6.6;
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
1.5
16-Sep-1999
lukem
* 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
1.4
26-Jul-1998
mycroft
Copy into a local buffer rather than using the getpw*() buffer.
1.3
03-Feb-1998
perry
remove obsolete register declarations
1.2
09-Oct-1997
lukem
rcsid facism, WARNSify
1.1
06-May-1994
cgd
branches: 1.1.1;
Initial revision
1.1.1.1
06-May-1994
cgd
update
1.6.6.2
09-Jul-2005
tron
Pull up revision 1.8 (requested by lukem in ticket #535):
getpw*_r() may return 0 and set pwd==NULL
1.6.6.1
09-Jul-2005
tron
Pull up revision 1.7 (requested by lukem in ticket #535):
Use getpwuid_r, KNF. From John Nemeth, many thanks.
Indexes created Sun Oct 12 05:10:08 GMT 2025