summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/pwcache.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Correct the uid_from_user() and gid_from_group() comments.millert2018-09-221-7/+7
|
* Add uid_from_user() and gid_from_group(), derived from pax's cache.c.millert2018-09-131-80/+386
| | | | | | It replaces the existing pwcache.c functions user_from_uid(3) and group_from_gid(3) with the pax equivalents. Adapted from NetBSD (mycroft) changes from our own pax's cache.c. OK guenther@
* group_from_gid: use _GR_BUF_LEN instead of _PW_BUF_LENjcs2015-11-251-2/+2
|
* Use reentrant versions of getpw{nam,uid} and getgr{nam,gid} withinmillert2015-11-241-7/+11
| | | | | | | libc to avoid reusing the static buffers returned by the non-reentrant versions. Since this is inside libc we can use constants for the buffer sizes instead of having to call sysconf(). OK guenther@ deraadt@
* change passwd caches to be 4-way "associative". still primitive, but atedu2015-11-171-24/+62
| | | | little better than winner take all caching.
* don't keep the passwd database open; callers do not expect that they willtedu2015-10-261-11/+1
| | | | | become responsible for calling endpwent. ok deraadt
* zap remaining rcsid.espie2005-08-081-4/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* deregister (and deauto!). ok millert@ marco@otto2005-03-251-3/+3
|
* ansify function definitions and zap some `register'jfb2004-05-181-7/+3
| | | | ok millert@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel2001-06-271-5/+3
|
* move utmp to large format, usernames to 32 chars; downsjderaadt2001-01-311-8/+7
|
* Clean up some -Wall complaints.millert1997-07-091-2/+2
|
* Fix RCS idstholo1996-08-191-7/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+119