summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getpwnam.3 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use an mmap()'d buffer instead of a static buffer for the contentsmillert2018-08-211-19/+16
| | | | | | | | of the pointer returned by getpw{ent,nam,uid}(). We unmap the buffer each time to catch callers using a stale passwd struct pointer. As a special case, we do not unmap the buffer if the previous lookup was for the same name or uid. This special case may be removed in the future. OK deraadt@
* add missing HISTORY; based on CVS logs and release announcementsschwarze2017-10-171-6/+11
|
* Refer to /etc/passwd consistently as the "legacy password file" andtb2016-08-141-3/+3
| | | | | | remove some references to differences between versions 6 and 7. ok jmc, millert, tedu
* document the _shadow functionstedu2015-11-181-5/+17
|
* For getgrent.3:guenther2015-10-301-12/+24
| | | | | | | | | | | | | | | - delete the commented out setgrfile bits, as well as the MLINK - rename getgr{nam,gid}_r()'s 'buffer' parameters to 'buf' to be consistent with getpwnam(3) and practically all other section 3 manpages - we have sysconf(_SC_GETGR_R_SIZE_MAX) now, so uncomment and revise the text For getpwnam.3: - rename buflen to bufsize for consistency - rewrite the description of the getpw{nam,uid}_r functions to match the better getgr{nam,gid}_r() description, adding sysconf() bits Add sysconf(3) to SEE ALSO for both encouraged by schwarze@ ok millert@
* The fd of the passwd database is marked close-on-exec nowguenther2015-10-271-7/+4
| | | | | Incorrect text pointed out by tedu@ ok deraadt@ millert@ tedu@
* POSIX does not require an explicit inclusion of sys/types.h to getmillert2015-01-151-3/+2
| | | | uid_t or gid_t (and neither do we). OK deraadt@
* Add ERRORS and STANDARDS, thanks to brad@ for the reminder.schwarze2014-03-121-10/+61
| | | | | | Fix the description of the RETURN VALUES of get*_r(). Minor polishing while here. Feedback and ok jmc@, ok millert@ jca@.
* obvious .Pa fixes; found with mandocdb(8)schwarze2014-01-211-3/+3
|
* more library historyschwarze2013-07-171-2/+7
| | | | | facts checked by sobrado@ style tweaks and ok jmc@
* Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarzetedu2013-06-051-4/+4
|
* tweak previous;jmc2009-06-021-5/+5
|
* Split getpw{nam,uid} off into their own man page. Hopefully, thismillert2009-06-011-0/+213
will help people understand that endpwent() is not normally needed. OK deraadt@ jmc@