freebsd-dev/lib/libc/gen
Peter Wemm 11e67a9f2e Fix the problem that I aroused with the last commit..
What was happening, is if syslogd was not running, syslog() would do
a strcat("\r\n") on a non-null-terminated buffer, and write it to the console.

This meant that sometimes extra characters could be written to the console
during boot, depending on the stack contents.

This totally avoids the potential problem by using writev() like the rest
of the does, and avoid modifying the buffer after the trouble we've gone to
to carefully protect it.

This is actually a trivial fix, in spite of the long commit message.. :-)
It only appeared during boot and shutdown with syslogd stopped.
1995-10-05 00:11:15 +00:00
..
__xuname.c Null terminate all strings returned by the dummy uname() routine, 1995-07-31 10:10:02 +00:00
_rand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
alarm.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
alarm.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
assert.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
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 Added routines to read the canonical UNIX configuration file. This will 1994-11-13 20:47:44 +00:00
config.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
confstr.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
confstr.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
crypt.3 document libcrypt and libcipher. 1994-09-08 19:46:57 +00:00
crypt.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
ctermid.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
ctermid.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
ctime.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
ctime.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
daemon.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
daemon.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
devname.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
devname.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
difftime.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
directory.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
disklabel.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
drand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
erand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
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 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
exec.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
exec.c Fix execl[e]. Multiple execle's failed because of bogus caching of the 1994-12-12 01:15:01 +00:00
fnmatch.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
fnmatch.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
frexp.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
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 BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
fts.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
fts.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
getbootfile.3 Added getbootfile(3), for an easy C interface to the kern.bootfile MIB 1994-09-23 20:22:01 +00:00
getbootfile.c If sysctl() fails, return "/kernel" so as not to screw people who haven't 1994-09-24 00:10:13 +00:00
getbsize.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getbsize.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getcap.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
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 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getdomainname.3 Add missing getdomainname manual page. 1994-12-18 14:06:39 +00:00
getdomainname.c Added YP domain name getting/setting support, for SunOS/old program 1994-08-08 00:40:24 +00:00
getfsent.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getgrent.3 Document YP support. 1994-09-20 22:02:20 +00:00
getgrent.c getgrent.c: adjust _nextypgroup() slightly so that it continues processing 1995-09-05 19:52:59 +00:00
getgrouplist.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getgrouplist.c Bruce pointed out, that a misleading warning would be issued 1995-02-17 19:45:21 +00:00
gethostname.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
gethostname.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getloadavg.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getloadavg.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getlogin.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getmntinfo.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getmntinfo.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getnetgrent.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getnetgrent.c getpwent.c: turn the code that checks the override caches into a 1995-09-02 04:08:55 +00:00
getosreldate.c Oops, forgot to cvs add this file. 1994-08-10 06:27:35 +00:00
getpagesize.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getpagesize.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getpass.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getpass.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getpwent.3 Document YP support. 1994-09-20 22:02:20 +00:00
getpwent.c getgrent.c: adjust _nextypgroup() slightly so that it continues processing 1995-09-05 19:52:59 +00:00
getttyent.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getttyent.c Don't cast void functions to void. 1995-06-20 18:31:16 +00:00
getusershell.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getusershell.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
getvfsent.3 Document getvfsent() and kin. 1994-09-25 01:38:30 +00:00
getvfsent.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
glob.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
glob.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
initgroups.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
initgroups.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
isatty.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
isinf.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
jrand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
lcong48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
ldexp.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
lrand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
Makefile.inc Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
modf.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
mrand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
msgctl.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
msgget.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
msgrcv.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
msgsnd.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
nice.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
nice.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
nlist.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
nlist.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
nrand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
ntp_gettime.c Function in this module bloodly called 'gethostname' and linked 1994-09-19 22:04:28 +00:00
opendir.c Fix bugs in opendir(): 1995-04-21 15:23:27 +00:00
pause.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
pause.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
popen.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
popen.c Don't cast void functions to void. 1995-06-20 18:31:16 +00:00
psignal.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
psignal.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
pw_scan.c Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
pw_scan.h BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00
pwcache.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
pwcache.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
raise.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
raise.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
rand48.3 Fix the bug reported by Torbjorn Granlund <tege@cygnus.com>: 1994-12-25 15:33:39 +00:00
rand48.h Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
readdir.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
rewinddir.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
scandir.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
scandir.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
seed48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
seekdir.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
semconfig.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
semctl.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
semget.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
semop.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
setdomainname.c Added YP domain name getting/setting support, for SunOS/old program 1994-08-08 00:40:24 +00:00
setflags.c Added $Id$ 1994-09-24 02:59:15 +00:00
setflagsbyname.c Added $Id$ 1994-09-24 02:59:15 +00:00
sethostname.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
setjmp.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
setjmperr.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
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 Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
shmctl.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
shmdt.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
shmget.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
siginterrupt.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
siginterrupt.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
siglist.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
signal.3 Fix the synopsis of signal() again. Now it is uglier but correct. 1995-07-16 09:41:03 +00:00
signal.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
sigsetjmp.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
sigsetops.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
sigsetops.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
sleep.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
sleep.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
srand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
strtofflags.c Added $Id$ 1994-09-24 02:59:15 +00:00
sysconf.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
sysconf.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
sysctl.3 Remove CPU_COLORDISP, GIO_COLOR now exists 1994-10-18 03:42:18 +00:00
sysctl.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
syslog.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
syslog.c Fix the problem that I aroused with the last commit.. 1995-10-05 00:11:15 +00:00
tcgetpgrp.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
tcsendbreak.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
tcsetattr.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
tcsetpgrp.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
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 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
times.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
times.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
timezone.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
timezone.c Don't depend on bogusly-installed <tzfile.h>. 1995-08-05 20:25:24 +00:00
ttyname.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
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 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
ualarm.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
ualarm.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
uname.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
uname.c Null terminate all strings returned by the dummy uname() routine, 1995-07-31 10:10:02 +00:00
unvis.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
unvis.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
usleep.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
usleep.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
utime.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
utime.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
valloc.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
valloc.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
vis.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
vis.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
wait3.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
wait.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
waitpid.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00