summaryrefslogtreecommitdiffstats
path: root/include/pwd.h
Commit message (Collapse)AuthorAgeFilesLines
* o Remove include of <sys/types.h>, it adds too much pollution;mike2002-06-091-9/+28
| | | | | | | | | instead, add typedefs of only gid_t, time_t, and uid_t. o Remove an unneeded conditional that hid macros that are in the implementation namespace and therefore don't need to be hidden when _POSIX_SOURCE is defined. o Adjust some conditionals for compatibility with X/Open and POSIX. o Note missing functions getpwnam_r() and getpwuid_r().
* (ab)use unused bits in the pw_fields member of struct passwd to recorddes2002-04-141-0/+5
| | | | | | the source of the data contained in the structure. Sponsored by: DARPA, NAI Labs
* Breath deep and take __P out of the system include files.imp2002-03-231-7/+7
| | | | | | # This appears to not break X11, but I'm having problems compiling the # glide part of the server with or without this patch, so I can't tell # for sure.
* Make user_from_uid and group_from_gid return const char *, just likeimp2002-03-221-1/+1
| | | | NetBSD. Update man page to reflect this.
* Move user_from_uid to pwd.himp2002-02-141-0/+2
| | | | | | | | | | | | | Move group_from_gid to grp.h Remove from stdlib.h Make the prototypes match the code Fix rm and mv to include new files. NetBSD has these defined in those files, and others too that I've not done. Approved by: terminal room kabal Reviewed by: jhb, phk
* Use the correct type for uid and gid in struct passwd. Document it.des1999-01-181-2/+2
|
* XOpen says the void setpwent(void) is correct. Also call setpassent(0)steve1998-02-011-1/+1
| | | | | | instead of duplicating code, albeit trivial (inspired by NetBSD). PR: 5524
* NIS cleanups and fixes, the next generation.wpaul1996-04-161-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | getnetgrent.c: - Catch one bogon that snuck by: in _listmatch(), check for '\0' rather than '\n'; strings returned from yp_match() are terminated with a nul, not a newline. getpwent.c: - Rip out all of the +inclusion/-exclusion stuff from before and replace it with something a little less grotty. The main problem with the old mechanism was that it wasted many cycles processing NIS entries even after it already knew they were to be exlcuded (or not included, depending on your pointof view). The highlights of these changes include: o Uses an in-memory hash database table to keep track of all the -@netgroup, -user, and -@group exclusions. o Tries harder to duplicate the behavior normally obtained when using NIS inclusions/exclusions on a flat /etc/passwd file (meaning things come out in much the same order). o Uses seperate methods for handling getpwent() and getpwnam()/getpwuid() operations instead of trying to do everything with one general function, which didn't work as well as I thought it would. o Uses both getnetgrent() and innetgr() to try to save time where possible. o Use only one special token in the local password database (_PW_KEYYPBYNUM) instead of seperate tokens to mark + and - entries (and stop using the counter tokens too). If this new token doesn't exist, the code will make due with the standard _PW_KEYBYNUM token in order to support older databases that won't have the new token in them. All this is an attempt to make this stuff work better in environments with large NIS passwd databases.
* Add a couple of extra #defines for special keys to be embedded in thewpaul1995-03-231-0/+4
| | | | | | | | | | | | password databases: #define _PW_KEYPLUSBYNUM '5' /* special +@netgroup entries */ #define _PW_KEYMINUSBYNUM '6' /* special -@netgroup entries */ #define _PW_KEYPLUSCNT '7' /* number of +@netgroup entries */ #define _PW_KEYMINUSCNT '8' /* number of -@netgroup entries */ This is to help getpwent.c in libc build the +@netgroup/-@netgroup caches.
* Add a new field to the passwd structure, indicating which of the fields havewollman1994-09-201-0/+15
| | | | | | something in them, and which ones were left blank. This will be used for YP support in a few minutes, and for user login classes if anyone cares to implement them.
* Add defines to allow pwd_mkdb to build databases in a specifiedgpalmer1994-09-071-0/+5
| | | | directory - removing the need to hardcode /etc into pwd_mkdb
* BSD 4.4 Lite Include Sourcesrgrimes1994-05-241-0/+90
OpenPOWER on IntegriCloud