Ed Schouten
dc29acd1a9
Don't let the C library depend on <utmp.h>.
...
The maximum length of a username has nothing to do with the size of the
username in the utmp files. Use MAXLOGNAME, which is defined as 17
(UT_USERSIZE + 1).
2009-12-05 19:04:21 +00:00
Warner Losh
c879ae3536
Per Regents of the University of Calfornia letter, remove advertising
...
clause.
# If I've done so improperly on a file, please let me know.
2007-01-09 00:28:16 +00:00
Warner Losh
ae10a3fcce
Make user_from_uid and group_from_gid return const char *, just like
...
NetBSD. Update man page to reflect this.
2002-03-22 02:35:47 +00:00
Warner Losh
576541a9e6
Fixed divots that I created when I moved prototypes of group_from_gid
...
and user_from_uid to grp.h and pwd.h. Update the man pages.
Submitted by: David Malone
Pointy hat to: imp
2002-02-19 00:05:59 +00:00
Warner Losh
63195486ba
Use new-style function declations.
2002-02-13 09:30:47 +00:00
David E. O'Brien
22626efa0f
* Remove 'register'. (some functions had 7+ register functions...)
...
* Fix SCM ID's.
2002-02-01 01:08:48 +00:00
Mike Pritchard
5d00c0a499
Honor the nouser/nogroup flag when determing if NULL should
...
be returned if a cached uid/gid does not exist in the password
file.
1997-04-03 01:51:34 +00:00
Mike Pritchard
1595890a1f
The user_from_{uid,gid} routines would return garbage if the
...
uid/gid in question was in the cache, but did not exist
in the password file. This causes the -nouser and -nogroup
options to find(1) to only print the first file owned by
an unknown user/group in some cases.
1997-04-02 06:20:04 +00:00
Jordan K. Hubbard
51295a4d3e
General -Wall warning cleanup, part I.
...
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
1996-07-12 18:57:58 +00:00
David Greenman
1821ce26bf
Implemented negative caching on uid/gid lookup failures. This won't
...
matter much on some systems, but on ftp servers (like wcarchive) where
you run with special stripped group and pwd.db files in the anonymous
ftp /etc, this can be a major speedup for ls(1).
1996-03-05 13:11:42 +00:00
Poul-Henning Kamp
8b10240709
Minor cleanup, mostly unused vars and missing #includes.
1995-10-22 14:37:11 +00:00
Rodney W. Grimes
58f0484fa2
BSD 4.4 Lite Lib Sources
1994-05-27 05:00:24 +00:00