freebsd-skq/lib/libc/gen
Bill Paul 94c53e1fb5 NIS cleanups and fixes, the next generation.
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.
1996-04-16 00:22:41 +00:00
..
__xuname.c Null terminate all strings returned by the dummy uname() routine, 1995-07-31 10:10:02 +00:00
_rand48.c
_thread_init.c Obtained from: uthreads package 1996-01-22 00:32:08 +00:00
alarm.3
alarm.c
assert.c
clock.3 Xref clocks(7). 1996-04-05 08:53:38 +00:00
clock.c
closedir.c
config_open.3 Fix even more spelling errors in some more man pages. 1996-01-30 16:34:52 +00:00
config.c
confstr.3
confstr.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
crypt.3 Added missing section numbers to a bunch of .Xr macros, or 1996-03-27 20:49:07 +00:00
crypt.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
ctermid.3 Added missing section numbers to a bunch of .Xr macros, or 1996-03-27 20:49:07 +00:00
ctermid.c
daemon.3
daemon.c
devname.3
devname.c
directory.3 Fix even more spelling errors in some more man pages. 1996-01-30 16:34:52 +00:00
disklabel.c Updated a type to match Lite2's fixed-width type changes. 1996-03-19 13:44:57 +00:00
drand48.c
erand48.c
err.3 Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
err.c
errlst.c
exec.3 Added missing section numbers to a bunch of .Xr macros, or 1996-03-27 20:49:07 +00:00
exec.c
fnmatch.3 Another round of man page cleanups. 1996-02-12 04:57:03 +00:00
fnmatch.c
frexp.3
fstab.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
ftok.3 Correct the xref for msgctl: msgctl(2) -> msgctl(3) 1996-02-12 07:06:23 +00:00
ftok.c
fts-compat.c
fts-compat.h
fts.3 Corrected a couple of errors in the fts(3) manual page. The prototype 1996-02-15 21:48:54 +00:00
fts.c
getbootfile.3 Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
getbootfile.c
getbsize.3
getbsize.c
getcap.3
getcap.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
getcwd.3
getcwd.c
getdiskbyname.3
getdomainname.3 Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
getdomainname.c
getfsent.3
getgrent.3
getgrent.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
getgrouplist.3
getgrouplist.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
gethostname.3 Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
gethostname.c
getloadavg.3 Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
getloadavg.c
getlogin.c
getmntinfo.3 Added missing section numbers to a bunch of .Xr macros, or 1996-03-27 20:49:07 +00:00
getmntinfo.c
getnetgrent.3 Added some missing MLINKS for section 3 man pages. 1996-02-09 00:45:45 +00:00
getnetgrent.c NIS cleanups and fixes, the next generation. 1996-04-16 00:22:41 +00:00
getosreldate.c
getpagesize.3 Added missing section numbers to a bunch of .Xr macros, or 1996-03-27 20:49:07 +00:00
getpagesize.c
getpass.3 Finally complete my fix for the behaviour of getpass(3) upon receipt 1995-12-31 14:00:25 +00:00
getpass.c Finally complete my fix for the behaviour of getpass(3) upon receipt 1995-12-31 14:00:25 +00:00
getpwent.3 Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
getpwent.c NIS cleanups and fixes, the next generation. 1996-04-16 00:22:41 +00:00
getttyent.3
getttyent.c
getusershell.3
getusershell.c
getvfsent.3 Fixed a bunch of man page cross references that were 1996-02-15 20:07:05 +00:00
getvfsent.c From Lite2: rename fs to vfs. 1996-03-11 03:06:45 +00:00
glob.3 Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +00:00
glob.c
initgroups.3
initgroups.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
isatty.c Reviewed by: julian and (hsu?) 1996-01-22 00:02:33 +00:00
isinf.3
jrand48.c
lcong48.c
ldexp.3
lrand48.c
Makefile.inc man page links 1996-02-18 01:56:51 +00:00
modf.3
mrand48.c
msgctl.3 Added man pages for msgctl(3), msgget(3), msgrcv(3) and msgsnd(3). 1996-02-12 07:03:24 +00:00
msgctl.c
msgget.3 Added man pages for msgctl(3), msgget(3), msgrcv(3) and msgsnd(3). 1996-02-12 07:03:24 +00:00
msgget.c
msgrcv.3 Added man pages for msgctl(3), msgget(3), msgrcv(3) and msgsnd(3). 1996-02-12 07:03:24 +00:00
msgrcv.c
msgsnd.3 Added man pages for msgctl(3), msgget(3), msgrcv(3) and msgsnd(3). 1996-02-12 07:03:24 +00:00
msgsnd.c
nice.3
nice.c
nlist.3 Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +00:00
nlist.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
nrand48.c
ntp_gettime.c
opendir.c stat() before open() because opening of special files may be harmful. 1996-03-29 12:55:54 +00:00
pause.3
pause.c
popen.3 Added missing section numbers to a bunch of .Xr macros, or 1996-03-27 20:49:07 +00:00
popen.c
psignal.3
psignal.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
pw_scan.c
pw_scan.h
pwcache.3
pwcache.c Implemented negative caching on uid/gid lookup failures. This won't 1996-03-05 13:11:42 +00:00
raise.3
raise.c
rand48.3 Fix even more spelling errors in some more man pages. 1996-01-30 16:34:52 +00:00
rand48.h
readdir.c
rewinddir.c
scandir.3
scandir.c
seed48.c
seekdir.c
semconfig.c
semctl.c
semget.c
semop.c
setdomainname.c
setflags.c
setflagsbyname.c
sethostname.c
setjmp.3 Fixed a bunch of man page cross references that were 1996-02-15 20:07:05 +00:00
setjmperr.c
setmode.3
setmode.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
setproctitle.3 Another round of spelling fixes. 1996-01-30 18:13:11 +00:00
setproctitle.c If the two recently added sysctl variables exist, use those rather than 1996-02-24 14:37:30 +00:00
shmat.c
shmctl.c
shmdt.c
shmget.c
siginterrupt.3
siginterrupt.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
siglist.c
signal.3 Added missing section numbers to a bunch of .Xr macros, or 1996-03-27 20:49:07 +00:00
signal.c
sigsetops.3
sigsetops.c
sleep.3 Added a note about the return value. Its been so long I can't 1996-04-05 05:35:57 +00:00
sleep.c Reviewed by: julian and (hsu?) 1996-01-22 00:02:33 +00:00
srand48.c
strtofflags.c
sysconf.3 Fixed a bunch of man page cross references that were 1996-02-15 20:07:05 +00:00
sysconf.c Include sys/time.h, not sys/user.h. 1995-12-08 08:47:41 +00:00
sysctl.3 From Lite2: rename fs to vfs. 1996-03-11 03:08:51 +00:00
sysctl.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
syslog.3 Added missing section numbers to a bunch of .Xr macros, or 1996-03-27 20:49:07 +00:00
syslog.c If the send() to the AF_UNIX socket to the syslogd fails, attempt to 1996-03-02 19:56:16 +00:00
tcgetpgrp.3 Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
tcsendbreak.3
tcsetattr.3
tcsetpgrp.3 Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
telldir.c
termios.c Back out one of my previous changes: don't clear PARODD, 1996-03-28 13:33:18 +00:00
time.3
time.c
times.3 Xref clocks(7). 1996-04-05 08:53:38 +00:00
times.c
timezone.3
timezone.c Don't depend on bogusly-installed <tzfile.h>. 1995-08-05 20:25:24 +00:00
ttyname.3
ttyname.c Reviewed by: julian and (hsu?) 1996-01-22 00:02:33 +00:00
ttyslot.c
tzset.3
ualarm.3 alarm -> ualarm. 1996-03-19 13:53:00 +00:00
ualarm.c
uname.3
uname.c Null terminate all strings returned by the dummy uname() routine, 1995-07-31 10:10:02 +00:00
unvis.3 Added missing section numbers to a bunch of .Xr macros, or 1996-03-27 20:49:07 +00:00
unvis.c Remove unneded ctype.h 1995-10-26 22:32:00 +00:00
usleep.3
usleep.c Reviewed by: julian and (hsu?) 1996-01-22 00:02:33 +00:00
utime.3
utime.c
valloc.3
valloc.c
vis.3
vis.c Convert int to uchar range for ctype 1996-03-25 14:32:30 +00:00
wait3.c
wait.c
waitpid.c