Revision tags: release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0 |
|
#
ed0b0abc |
| 03-Aug-2005 |
Daniel Eischen <deischen@FreeBSD.org> |
Make syslog() use the internal (non-cancellation point) _usleep(). Prior to this it was calling the cancellable usleep() while holding a lock.
|
Revision tags: release/5.4.0_cvs, release/5.4.0 |
|
#
fd42c4d8 |
| 08-Apr-2005 |
Stefan Farfeleder <stefanf@FreeBSD.org> |
Use prototypes in the function definitions.
|
Revision tags: release/4.11.0_cvs, release/4.11.0 |
|
#
96575206 |
| 30-Dec-2004 |
Gleb Smirnoff <glebius@FreeBSD.org> |
Make syslog(3) thread safe.
PR: bin/72394 Submitted by: Dan Nelson Reviewed by: deischen MFC after: 2 weeks
|
#
8ba85e77 |
| 24-Dec-2004 |
Gleb Smirnoff <glebius@FreeBSD.org> |
Restore standard behavior: log to console only when normal logging failed, not always.
PR: bin/75356 Submitted by: Mark Knight <markk knigma org> Pointy hat to: glebius MFC after: 3 days
|
#
240d5a9b |
| 05-Nov-2004 |
Gleb Smirnoff <glebius@FreeBSD.org> |
Protect against local flooder of /var/run/log. Do not loop forever in syslog(3) if we are a priveleged program (sshd, su, etc.).
- Make syslogd open an additional socket /var/run/logpriv, with 0600
Protect against local flooder of /var/run/log. Do not loop forever in syslog(3) if we are a priveleged program (sshd, su, etc.).
- Make syslogd open an additional socket /var/run/logpriv, with 0600 permissions. - In libc, try to use this socket. - Do not loop forever if we are using this socket (partial backout of 1.31)
Reviewed by: dwmalone, Andrea Campi <andrea webcom it> Approved by: julian (mentor) MFC after: 1 month
show more ...
|
Revision tags: release/5.3.0_cvs, release/5.3.0 |
|
#
2e89951b |
| 08-Oct-2004 |
Gleb Smirnoff <glebius@FreeBSD.org> |
When send()ing to syslogd return ENOBUFS keep trying until success.
This fixes a case, when DoSed syslogd completely loses messages.
PR: bin/72366 Discussed with: dwmalone, millert@OpenBSD.org App
When send()ing to syslogd return ENOBUFS keep trying until success.
This fixes a case, when DoSed syslogd completely loses messages.
PR: bin/72366 Discussed with: dwmalone, millert@OpenBSD.org Approved by: julian (mentor) Obtained from: OpenBSD (rev. 1.17, 1.21 by millert) MFC after: 3 months
show more ...
|
Revision tags: release/4.10.0_cvs, release/4.10.0 |
|
#
857b57ea |
| 10-May-2004 |
Diomidis Spinellis <dds@FreeBSD.org> |
Remove a trailing newline, to behave as documented in syslog(3): "A trailing newline is added if none is present."
The code in syslogd, stderr, and console output always adds a newline at the EOL.
Remove a trailing newline, to behave as documented in syslog(3): "A trailing newline is added if none is present."
The code in syslogd, stderr, and console output always adds a newline at the EOL. However, the existing code never actually removed a trailing newline, and apparently relied on syslogd to convert it into a space character. Thus, the existing newline was converted to a trailing space at the EOL by syslogd, while stderr, and console output resulted in an empty line.
MFC after: 2 weeks
show more ...
|
Revision tags: release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0 |
|
#
e6cfb1cc |
| 10-Feb-2003 |
Alfred Perlstein <alfred@FreeBSD.org> |
Handle %%m properly in syslog format string. Previously it would expand the %m into the errno and then vfprintf would expand the % and the first character of the strerror(3) return causing possible
Handle %%m properly in syslog format string. Previously it would expand the %m into the errno and then vfprintf would expand the % and the first character of the strerror(3) return causing possible data corruption.
show more ...
|
Revision tags: release/5.0.0_cvs, release/5.0.0 |
|
#
bedff4e8 |
| 14-Nov-2002 |
Ruslan Ermilov <ru@FreeBSD.org> |
Reset LogTag to NULL in closelog(3). This fixes mysterious crashes caused by dynamic PAM modules that call openlog(3) and closelog(3), e.g. ports/security/pam_pwdfile.
What happened here is that th
Reset LogTag to NULL in closelog(3). This fixes mysterious crashes caused by dynamic PAM modules that call openlog(3) and closelog(3), e.g. ports/security/pam_pwdfile.
What happened here is that the module first registered its "ident" with openlog(3), then PAM library unloaded module with dlclose(3), and the next call to syslog(3) resulted in SIGSEGV.
MFC after: 3 days
show more ...
|
Revision tags: release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
#
a82bbc73 |
| 28-May-2002 |
Alfred Perlstein <alfred@FreeBSD.org> |
Assume __STDC__, remove non-__STDC__ code.
Submitted by: keramida
|
#
4cd01193 |
| 29-Mar-2002 |
Mark Murray <markm@FreeBSD.org> |
Do not use __progname directly (except in [gs]etprogname(3)). Also, make an internal _getprogname() that is used only inside libc. For libc, getprogname(3) is a weak symbol in case a function of the
Do not use __progname directly (except in [gs]etprogname(3)). Also, make an internal _getprogname() that is used only inside libc. For libc, getprogname(3) is a weak symbol in case a function of the same name is defined in userland.
show more ...
|
#
94998878 |
| 09-Mar-2002 |
David Malone <dwmalone@FreeBSD.org> |
If syslog fails to talk to syslogd, then it tries to write a message to the console in a final attempt to log something. Make this final attempt non-blocking so that a blocking console doesn't end up
If syslog fails to talk to syslogd, then it tries to write a message to the console in a final attempt to log something. Make this final attempt non-blocking so that a blocking console doesn't end up blocking process which attempt to syslog something.
In particular, this means you should be able to su and fix the problem if the console becomes blocking.
MFC after: 3 weeks
show more ...
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
b231cb39 |
| 01-Feb-2002 |
David E. O'Brien <obrien@FreeBSD.org> |
* Remove __P and convert to ANSI prototypes. * Remove 'register'. (some functions had 7+ register functions...) * Fix SCM ID's.
|
#
ab09ef00 |
| 25-Jan-2002 |
David Malone <dwmalone@FreeBSD.org> |
Use ctime_r to build the timestamp for syslog, so that we don't clobber a ctime buffer which is passed in.
PR: 34022 Submitted by: Hartmut Brandt <brandt@fokus.gmd.de> MFC after: 2 weeks
|
Revision tags: release/4.3.0_cvs, release/4.3.0 |
|
#
d201fe46 |
| 24-Jan-2001 |
Daniel Eischen <deischen@FreeBSD.org> |
Remove _THREAD_SAFE and make libc thread-safe by default by adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will
Remove _THREAD_SAFE and make libc thread-safe by default by adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will pulled in.
Use the following convention for system calls wrapped by the threads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_foo
Change all libc uses of system calls wrapped by the threads library from foo to _foo. In order to define the prototypes for _foo(), we introduce namespace.h and un-namespace.h (suggested by bde). All files that need to reference these system calls, should include namespace.h before any standard includes, then include un-namespace.h after the standard includes and before any local includes. <db.h> is an exception and shouldn't be included in between namespace.h and un-namespace.h namespace.h will define foo to _foo, and un-namespace.h will undefine foo.
Try to eliminate some of the recursive calls to MT-safe functions in libc/stdio in preparation for adding a mutex to FILE. We have recursive mutexes, but would like to avoid using them if possible.
Remove uneeded includes of <errno.h> from a few files.
Add $FreeBSD$ to a few files in order to pass commitprep.
Approved by: -arch
show more ...
|
Revision tags: release/4.2.0, release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs, release/4.0.0_cvs |
|
#
9233c4d9 |
| 28-Jan-2000 |
Jason Evans <jasone@FreeBSD.org> |
Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(), just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcomin
Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(), just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcoming libpthread), this is adequate. In the case of libc_r, we still need three names, which are now _thread_sys_foo() <-- _foo() <-- foo().
Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(), nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo().
Remove all internal libc usage of: creat(), pause(), sleep(), system(), tcdrain(), wait(), and waitpid().
Make thread cancellation fully POSIX-compliant.
Suggested by: deischen
show more ...
|
#
92927338 |
| 12-Jan-2000 |
Jason Evans <jasone@FreeBSD.org> |
Add three-tier symbol naming in support of POSIX thread cancellation points. For library functions, the pattern is __sleep() <-- _libc_sleep() <-- sleep(). The arrows represent weak aliases. For s
Add three-tier symbol naming in support of POSIX thread cancellation points. For library functions, the pattern is __sleep() <-- _libc_sleep() <-- sleep(). The arrows represent weak aliases. For system calls, the pattern is _read() <-- _libc_read() <-- read().
show more ...
|
Revision tags: release/3.4.0_cvs, release/3.3.0_cvs |
|
#
7f3dea24 |
| 28-Aug-1999 |
Peter Wemm <peter@FreeBSD.org> |
$Id$ -> $FreeBSD$
|
Revision tags: release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8, release/2.2.7 |
|
#
8d41a9ef |
| 01-May-1998 |
Brian Somers <brian@FreeBSD.org> |
Go back to version 1.16 - it was correct the way it was. Pointed out by: bde
|
#
e79dc52b |
| 01-May-1998 |
Brian Somers <brian@FreeBSD.org> |
connect() returns -1 on error - not 0.
|
Revision tags: release/2.2.6 |
|
#
0b3b961e |
| 06-Mar-1998 |
Brian Somers <brian@FreeBSD.org> |
We don't need to NUL terminate our sun_path. Pointed out by: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
|
#
0d41e7b8 |
| 06-Mar-1998 |
Brian Somers <brian@FreeBSD.org> |
Nul terminate sockaddr_un::sun_path Suggested by: Theo de Raadt <deraadt@openbsd.org>
|
#
d584948e |
| 05-Mar-1998 |
Brian Somers <brian@FreeBSD.org> |
Make SyslogAddr a sockaddr_un rather than a sockaddr. This wasn't a problem in practice as PATH_LOG and PATH_OLDLOG are both < sizeof sockaddr::sa_data.
|
Revision tags: release/2.2.5_cvs, release/2.2.2_cvs, release/2.2.1_cvs |
|
#
cf49f439 |
| 20-Mar-1997 |
John Polstra <jdp@FreeBSD.org> |
Add backward compatibility so that static executables built on modern FreeBSD systems will syslog properly on older systems that still name the logging socket "/dev/log". This includes pre-2.2 versi
Add backward compatibility so that static executables built on modern FreeBSD systems will syslog properly on older systems that still name the logging socket "/dev/log". This includes pre-2.2 versions of FreeBSD as well as BSD/OS systems. If the connect to "/var/run/log" fails, the function now tries to connect to "/dev/log" as a fallback.
show more ...
|
Revision tags: release/2.2.0 |
|
#
adf6ad9e |
| 11-Mar-1997 |
Peter Wemm <peter@FreeBSD.org> |
Merge from Lite2: filesystem include updates, duplicate group suppression, cleanups, filesystem whiteout support (unionfs), bidir popen().
|