Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Do not include a timestamp in the syslog message. There is no need -- | 2015-10-31 | 1 | -12/+2 | |
| | | | | | | | | syslogd will fill it in immediately upon reception on the other side of sendsyslog(2). Our libc only talks to our syslogd, which will fix the timestamp before forwarding. syslog_r has done this for a long time already. ok tedu bluhm | ||||
* | Wrap <syslog.h> so that internal calls go direct and they're all weak symbols | 2015-09-12 | 1 | -19/+7 | |
| | | | | | Delete code that's a no-op now that we don't use sockets Eliminate unnecessary #includes | ||||
* | Make printf-like and scanf-like functions marked as such in llib-lc.ln | 2011-05-30 | 1 | -1/+2 | |
| | | | | | | | and llib-lwrap.ln databases; so that the lint features doing format strings checks are enabled by default. Looks good to millert@. | ||||
* | More shrinkage, a bit for ramdisks but mostly for static binaries: | 2009-11-18 | 1 | -266/+13 | |
| | | | | | | | | | | | | | | | | | - wrap with #ifndef NO_LOG_BAD_DNS_RESPONSES libc code that uses p_class() and p_type() for diagnostics, then add that define to libstub to avoid pulling in res_debug_syms.o - split rcmd() and ruserok() into separate files, as nothing uses both - split readdir_r() to its own file - split syslog_r() from syslog(), as the latter needs localtime(); many binaries no longer need to pull in all the time code after this; switch from usleep() to nanosleep() while we're at it (The profit of analysis of -Wl,-M,--cref output) Chops 888kB from /bin and /sbin on i386 ok deraadt@, miod@ | ||||
* | Stash value of log_tag before calling closelog_r() and restore it after. | 2007-11-09 | 1 | -2/+6 | |
| | | | | | | When closelog() was modified to clear log_tag it inadvertantly made syslog_r() (which calls closelog_r at the end) clear log_tag as well. OK miod@ dhartmei@ | ||||
* | zap remaining rcsid. | 2005-08-08 | 1 | -4/+1 | |
| | | | | | | Kill old files that are no longer compiled. okay theo | ||||
* | handle snprintf() returning -1. | 2005-03-08 | 1 | -1/+3 | |
| | | | | ok cloder@ henning@ hshoexer@ | ||||
* | ansify function definitions and zap some `register' | 2004-05-18 | 1 | -29/+11 | |
| | | | | ok millert@ | ||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 1 | -6/+2 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | correctly check the return value of send(). fixes LOG_CONS from always | 2003-02-27 | 1 | -2/+2 | |
| | | | | | | logging to the console. ok millert@ | ||||
* | Don't write log message to console unless we are unable to connect to | 2003-02-07 | 1 | -21/+7 | |
| | | | | syslogd. Noticed by marc@; OK by marc@ and deraadt@ | ||||
* | Don't reconnect to logging socket if send() returns an error and errno | 2003-01-20 | 1 | -12/+13 | |
| | | | | | | | | | == ENOBUFS, there is no point and it hurts chroot'ed processes. Don't return immediately from syslog_r() when the send(), we may have more work to do. deraadt@ OK | ||||
* | Handle things like "%%m" correctly; closes PR 3057 | 2003-01-02 | 1 | -1/+6 | |
| | | | | OK miod@ | ||||
* | Fix instance where syslog(3) after closelog(3) could access freed log | 2002-11-24 | 1 | -1/+2 | |
| | | | | | | tag name. OK millert@, deraadt@ | ||||
* | Close log file when leaving syslog_r(). deraadt@ ok | 2002-06-20 | 1 | -1/+5 | |
| | |||||
* | If send() returns ENOBUFS, sleep for one microsecond and retry. | 2002-06-05 | 1 | -5/+12 | |
| | | | | deraadt@ OK | ||||
* | pid_t cleanup | 2002-05-26 | 1 | -2/+2 | |
| | |||||
* | We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft. | 2002-02-19 | 1 | -29/+1 | |
| | |||||
* | Open console with O_NONBLOCK to avoid blocking on a locked console. | 2002-02-18 | 1 | -5/+5 | |
| | | | | From David Malone | ||||
* | Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | 2002-02-16 | 1 | -5/+5 | |
| | |||||
* | Set default facility is noone is specified at syslog(3) time; millert@ jj@ ok. | 2001-10-31 | 1 | -16/+20 | |
| | |||||
* | syslog_r() implementation. deraadt@ ok. | 2001-10-24 | 1 | -95/+168 | |
| | |||||
* | deal with -1 from snprintf, if it ever happens | 2001-08-18 | 1 | -2/+4 | |
| | |||||
* | use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok. | 2001-06-27 | 1 | -4/+3 | |
| | |||||
* | Try to reopen socket if send fails. (perhaps syslogd restarted) | 2000-01-02 | 1 | -21/+56 | |
| | | | | Adapted from FreeBSD (N.B. NetBSD); millert@ OK. | ||||
* | some -Wall | 1998-03-19 | 1 | -2/+3 | |
| | |||||
* | And terminate SyslogAddr.sun_path (duh!) | 1998-03-06 | 1 | -1/+2 | |
| | |||||
* | sizeof(SyslogAddr.sun_path) -> sizeof(SyslogAddr.sun_path) - 1 | 1998-03-06 | 1 | -2/+2 | |
| | | | | pointed out by: theo | ||||
* | Initialise sockaddr::sa_len (stopping a pretty nasty | 1998-03-05 | 1 | -6/+10 | |
| | | | | | stack scribble). Also, SyslogAddr is a sockaddr_un, not a sockaddr. | ||||
* | #if __STDC__ --> #ifdef __STDC__ | 1997-07-25 | 1 | -4/+4 | |
| | |||||
* | Clean up some -Wall complaints. | 1997-07-09 | 1 | -2/+2 | |
| | |||||
* | Fix RCS ids | 1996-08-19 | 1 | -7/+1 | |
| | | | | Make sure everything uses {SYS,}LIBC_SCCS properly | ||||
* | initial import of NetBSD tree | 1995-10-18 | 1 | -0/+294 | |