summaryrefslogtreecommitdiff
path: root/lib/libc/gen/syslog.c
Commit message (Collapse)AuthorAgeFilesLines
* General -Wall warning cleanup, part I.Jordan K. Hubbard1996-07-121-2/+2
| | | | | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu> Notes: svn path=/head/; revision=17141
* If the send() to the AF_UNIX socket to the syslogd fails, attempt toPeter Wemm1996-03-021-18/+56
| | | | | | | | | | | reconnect once using the saved openlog() parameters. This helps one of the system startup race conditions. If syslogd takes too long to get going, some daemons can fail the connection and forever log to the console even though the syslogd is running. That is ..unfortunate.. Notes: svn path=/head/; revision=14332
* Minor cleanup, mostly unused vars and missing #includes.Poul-Henning Kamp1995-10-221-2/+2
| | | | Notes: svn path=/head/; revision=11659
* Add $Id$ since this version of the file has diverged from the BSD base aPeter Wemm1995-10-211-1/+5
| | | | | | | fair bit. I forgot to add it when I made the fixes some time ago. Notes: svn path=/head/; revision=11606
* Fix the problem that I aroused with the last commit..Peter Wemm1995-10-051-4/+10
| | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=11192
* Fix security bugs with a "new approach", using stdio's powerful bufferPeter Wemm1995-09-151-18/+86
| | | | | | | | | | | control hooks. It is similar to an unrolled multi-part snprintf(), in that a "FILE *" is attached to a string buffer. There is also an optimisation for the case where the syslog format string does not contain %m, which should improve performance of "informational" logging, like from ftpd. Notes: svn path=/head/; revision=10794
* National date/time representation in syslog logfiles looks ugly,Andrey A. Chernov1995-08-291-2/+1
| | | | | | | | change strftime to ctime. Logfiles must have default (english) date/time representation for access/view from various places. Notes: svn path=/head/; revision=10414
* Fix bracket error for LogMaskAndrey A. Chernov1995-05-021-1/+1
| | | | | | | Submitted by: Ruslan Belkin <rus@home2.UA.net> Notes: svn path=/head/; revision=8226
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+235
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573