summaryrefslogtreecommitdiff
path: root/lib/libc/gen/syslog.c
AgeCommit message (Expand)Author
2003-02-27correctly check the return value of send(). fixes LOG_CONS from alwaysDan Harnett
2003-02-07Don't write log message to console unless we are unable to connect toTodd C. Miller
2003-01-20Don't reconnect to logging socket if send() returns an error and errnoTodd C. Miller
2003-01-02Handle things like "%%m" correctly; closes PR 3057Todd C. Miller
2002-11-24Fix instance where syslog(3) after closelog(3) could access freed logChad Loder
2002-06-20Close log file when leaving syslog_r(). deraadt@ okJean-Jacques Bernard-Gundol
2002-06-05If send() returns ENOBUFS, sleep for one microsecond and retry.Todd C. Miller
2002-05-26pid_t cleanupTheo de Raadt
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-18Open console with O_NONBLOCK to avoid blocking on a locked console.Todd C. Miller
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2001-10-31Set default facility is noone is specified at syslog(3) time; millert@ jj@ ok.Federico G. Schwindt
2001-10-24syslog_r() implementation. deraadt@ ok.Jean-Jacques Bernard-Gundol
2001-08-18deal with -1 from snprintf, if it ever happensTheo de Raadt
2001-06-27use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel
2000-01-02Try to reopen socket if send fails. (perhaps syslogd restarted)Hugh Graham
1998-03-19some -WallTodd C. Miller
1998-03-06And terminate SyslogAddr.sun_path (duh!)brian
1998-03-06sizeof(SyslogAddr.sun_path) -> sizeof(SyslogAddr.sun_path) - 1brian
1998-03-05Initialise sockaddr::sa_len (stopping a pretty nastybrian
1997-07-25#if __STDC__ --> #ifdef __STDC__Michael Shalayeff
1997-07-09Clean up some -Wall complaints.Todd C. Miller
1996-08-19Fix RCS idsThorsten Lockert
1995-10-18initial import of NetBSD treeTheo de Raadt