freebsd-dev/lib/libc/gen
Bill Paul 3948edc24c Another tweak/speedup pass:
- Fix buffer overflow problem once and for all: do away with the buffer
  copies to 'user' prior to calling _scancaches() and just pass a pointer
  to the buffer returned by yp_match()/yp_first()/yp_next()/whatever.
  (We turn the first ':' to a NUL first so strcmp() works, then change it
  back later. Submitted by Bill Fenner <fenner@parc.xerox.com> and
  tweaked slightly by me.

- Give _pw_breakout_yp() the 'more elegant solution' I promised way back when.
  Eliminate several copies to static buffers and replace them with just
  one copy. (The buffer returned by the NIS functions is at most
  YPMAXRECORD bytes long, so we should only need one static buffer of
  the same length (plus 2 for paranoia's sake).)

- Also in _pw_breakout_yp(): always set pw.pw_passwd to the username
  obtained via NIS regardless of what pw_fields says: usernames cannot
  be overridden so we have no choice but to use the name returned by
  NIS.

- _Again_ in _pw_breakout_yp(): before doing anything else, check that
  the first character of the NIS-returned buffer is not a '+' or '-'.
  If it is, drop the entry. (#define EXTRA_PARANOIA 1 :)

- Probe for the master.passwd.* maps once during __initdb() instead
  of doing it each time _getyppass() or _nextyppass() is called.

- Don't copy the NIS data buffers to static memory in _getyppass()
  and _nextyppass(): this is done in _pw_breakout_yp() now.

- Test against phkmalloc and phkmalloc/2 (TNG!) to make sure we're
  free()ing the yp buffers sanely.

- Put _havemaster(), _getyppass() and nextyppass() prototypes under
  #ifdef YP. (Somehow they ended up on the wrong side of the #endif.)

- Remove unused variable ___yp_only.
1995-10-11 21:35:08 +00:00
..
__xuname.c Null terminate all strings returned by the dummy uname() routine, 1995-07-31 10:10:02 +00:00
_rand48.c
alarm.3
alarm.c
assert.c
clock.3 Change CLK_TCK to CLOCKS_PER_SEC. 1995-02-03 22:09:56 +00:00
clock.c Change CLK_TCK to CLOCKS_PER_SEC. (CLK_TCK is a deprecated POSIX feature 1995-02-03 21:59:45 +00:00
closedir.c Don't cast void functions to void. 1995-06-20 18:31:16 +00:00
config_open.3
config.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
confstr.3
confstr.c
crypt.3
crypt.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
ctermid.3
ctermid.c
ctime.3
ctime.c
daemon.3
daemon.c
devname.3
devname.c
difftime.c
directory.3
disklabel.c
drand48.c
erand48.c
err.3 Add err_set_file() and err_set_exit() functions to make it possible for 1995-04-13 18:04:11 +00:00
err.c Add err_set_file() and err_set_exit() functions to make it possible for 1995-04-13 18:04:11 +00:00
errlst.c
exec.3
exec.c
fnmatch.3
fnmatch.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
frexp.3
fstab.c Change strtok() to strsep(), using strtok() can cause memory corruption 1995-03-24 16:33:44 +00:00
ftok.3 Added function and man page for ftok(3), used in conjunction with 1995-05-01 08:53:21 +00:00
ftok.c Added function and man page for ftok(3), used in conjunction with 1995-05-01 08:53:21 +00:00
fts-compat.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
fts-compat.h
fts.3
fts.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
getbootfile.3
getbootfile.c
getbsize.3
getbsize.c
getcap.3
getcap.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
getcwd.3 stdio.h --> unistd.h 1995-03-09 17:45:23 +00:00
getcwd.c Don't cast void functions to void. 1995-06-20 18:31:16 +00:00
getdiskbyname.3
getdomainname.3 Add missing getdomainname manual page. 1994-12-18 14:06:39 +00:00
getdomainname.c
getfsent.3
getgrent.3
getgrent.c Some NIS bug stomping: 1995-10-06 21:29:01 +00:00
getgrouplist.3
getgrouplist.c Bruce pointed out, that a misleading warning would be issued 1995-02-17 19:45:21 +00:00
gethostname.3
gethostname.c
getloadavg.3
getloadavg.c
getlogin.c
getmntinfo.3
getmntinfo.c
getnetgrent.3
getnetgrent.c getpwent.c: turn the code that checks the override caches into a 1995-09-02 04:08:55 +00:00
getosreldate.c
getpagesize.3
getpagesize.c
getpass.3
getpass.c
getpwent.3
getpwent.c Another tweak/speedup pass: 1995-10-11 21:35:08 +00:00
getttyent.3
getttyent.c Don't cast void functions to void. 1995-06-20 18:31:16 +00:00
getusershell.3
getusershell.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
getvfsent.3
getvfsent.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
glob.3
glob.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
initgroups.3
initgroups.c
isatty.c
isinf.3
jrand48.c
lcong48.c
ldexp.3
lrand48.c
Makefile.inc Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
modf.3
mrand48.c
msgctl.c
msgget.c
msgrcv.c
msgsnd.c
nice.3
nice.c
nlist.3
nlist.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
nrand48.c
ntp_gettime.c
opendir.c Fix bugs in opendir(): 1995-04-21 15:23:27 +00:00
pause.3
pause.c
popen.3
popen.c Don't cast void functions to void. 1995-06-20 18:31:16 +00:00
psignal.3
psignal.c
pw_scan.c Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
pw_scan.h
pwcache.3
pwcache.c
raise.3
raise.c
rand48.3 Fix the bug reported by Torbjorn Granlund <tege@cygnus.com>: 1994-12-25 15:33:39 +00:00
rand48.h
readdir.c
rewinddir.c
scandir.3
scandir.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
seed48.c
seekdir.c
semconfig.c
semctl.c
semget.c
semop.c
setdomainname.c
setflags.c
setflagsbyname.c
sethostname.c
setjmp.3
setjmperr.c
setmode.3 Add missing header reference 1995-04-09 04:59:40 +00:00
setmode.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
shmat.c
shmctl.c
shmdt.c
shmget.c
siginterrupt.3
siginterrupt.c
siglist.c
signal.3 Fix the synopsis of signal() again. Now it is uglier but correct. 1995-07-16 09:41:03 +00:00
signal.c
sigsetjmp.c
sigsetops.3
sigsetops.c
sleep.3
sleep.c
srand48.c
strtofflags.c
sysconf.3
sysconf.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
sysctl.3
sysctl.c
syslog.3
syslog.c Fix the problem that I aroused with the last commit.. 1995-10-05 00:11:15 +00:00
tcgetpgrp.3
tcsendbreak.3
tcsetattr.3
tcsetpgrp.3
telldir.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
termios.c Clear IGNPAR in cfmakeraw() instead of set it. 1995-03-29 19:28:35 +00:00
time.3 Add missing #include <time.h> with time() prototype 1995-02-24 01:02:59 +00:00
time.c
times.3
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 Make ttyname() use posix-style tcgetattr() to check to see that it's 1995-09-22 17:01:28 +00:00
ttyslot.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
tzset.3
ualarm.3
ualarm.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
uname.3
uname.c Null terminate all strings returned by the dummy uname() routine, 1995-07-31 10:10:02 +00:00
unvis.3
unvis.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
usleep.3
usleep.c
utime.3
utime.c
valloc.3
valloc.c
vis.3
vis.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
wait3.c
wait.c
waitpid.c