summaryrefslogtreecommitdiffstats
path: root/libc/misc/syslog/syslog.c
Commit message (Collapse)AuthorAgeFilesLines
* cbachman writes Bug 195:Mike Frysinger2005-04-161-0/+4
| | | | | | | | Add back in the code which sets the default facility if none specified. This may cause issues with klogd when it tries to use the libc's syslog(), but klogd comes with its own syslog() implementation so that's a none issue. For more info, please see the following: http://sources.redhat.com/ml/libc-alpha/2000-03/msg00059.html
* Jean writes:Eric Andersen2005-01-111-1/+9
| | | | | | | | | | | | | | | | | | | Hello, under some circumstances the following small example prints lots of garbage onto the console and into the syslog: #include <syslog.h> int main () { openlog("foo", LOG_CONS|LOG_NDELAY|LOG_PID|LOG_PERROR, LOG_DAEMON); syslog (LOG_WARNING, "mlock: %m"); return 1; } The reason is, that sprintf returns with -1 and vsyslog dumps the complete buffer onto stderr and the syslogd socket. The following patch would fix the problem:
* Fix a bug noticed by Oleg I. Vdovikin, oleg at cs dot msu dot su.Eric Andersen2004-04-061-4/+0
| | | | | | | This code in uClibc would attempt to set the default facility if none was specified. Except none being specified is 0, which is also LOG_KERN, therefore klogd could never get kernel messages logged as LOG_KERN.
* Fix a long-standing bug with pthreads. A couple of linuxthreads filesManuel Novoa III2003-12-271-2/+2
| | | | | | | | | | | | | | | | were including libc-lock.h which had a bunch of weak pragmas. Also, uClibc supplied a number of no-op weak thread functions even though many weren't needed. This combined result was that sometimes the functional versions of thread functions in pthread would not override the weaks in libc. While fixing this, I also prepended double-underscore to all necessary weak thread funcs in uClibc, and removed all unused weaks. I did a test build, but haven't tested this since these changes are a backport from my working tree. I did test the changes there and no longer need to explicitly add -lpthread in the perl build for perl to pass its thread self tests.
* Patch from Marshall M. Midden:Eric Andersen2003-04-191-33/+39
| | | | | | It turns out that uClibc's syslog.c does not close sockets when doing retries and when it exits due to errors. This patch fixes it.
* Patch from Tiago Marques <tmarques@viaconnect.inf.br> -- fall back toEric Andersen2002-09-101-3/+12
| | | | | using SOCK_STREAM if SOCK_DGRAM fails. -Erik
* Tobias Anderberg <tobias.anderberg@axis.com> noticed thatEric Andersen2002-07-101-1/+1
| | | | | we were opening the socket() as SOCK_STREAM instead of using SOCK_DGRAM like we should have done.
* Oops. missed a spotEric Andersen2002-07-021-0/+1
| | | | -Erik
* openlog could deadlock when called from vsyslog, soEric Andersen2002-07-021-1/+1
| | | | | allow recursive locking, -Erik
* Fix thread locking so it worksEric Andersen2002-06-181-45/+20
| | | | -Erik
* Adjust naming for __FORCE_GLIBC__ to __FORCE_GLIBC and addEric Andersen2001-11-211-1/+1
| | | | | support for __FORCE_NOGLIBC per Brian Stafford <brian.stafford@office-logic.com>
* Fix include/errno.h to not use kernel header, and instead use bits/errno.h.Eric Andersen2001-04-061-1/+1
| | | | | | | This required we use _LIBC instead of __LIBC__ to be consistent with glibc. This had some sideffects in sys/syscalls.h. While fixing things, I made everything use __set_errno() for (eventual) thread support. -Erik
* Fix up the networking includesEric Andersen2001-02-051-17/+14
| | | | -Erik
* Make the implementation match the header file.Eric Andersen2001-01-151-3/+2
|
* A few more syscalls.Eric Andersen2000-10-251-0/+349