| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
truncate the length of a syslog message to 8192 bytes. Use one
global define LOG_MAXLINE for all of them.
OK deraadt@ millert@
|
|
|
|
|
| |
conp in syslog(3) is unused. Remove dead code.
OK jca@ deraadt@
|
|
|
|
|
|
| |
Change FMT_SIZE to 1024+1 for consistency. Do not loop over the
format string if there is no output space left.
OK deraadt@ millert@
|
|
|
|
|
| |
Previously, syslog_r() would avoid calling strerror() since the latter
is not reentrant. OK bluhm@
|
|
|
|
| |
ok millert@
|
|
|
|
|
|
| |
as osendsyslog for a while. The three argument variant is the only
one that will stay.
input kettenis@; OK deraadt@
|
|
|
|
|
|
| |
in libc's hidden/stdlib.h instead of in each .c file that needs one
ok deraadt@ gsoares@ mpi@
|
|
|
|
|
| |
/dev/console so the value of "error" is never read. Also mention
that sendsyslog2 can fail due to ENOBUFS in the comment. OK deraadt@
|
|
|
|
|
|
| |
LOG_CONS to the kernel. As a result, the /dev/console opening code can
be removed.
ok kettenis millert beck
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Delete code that's a no-op now that we don't use sockets
Eliminate unnecessary #includes
|
|
|
|
|
|
| |
syslog(3) limit to the same size. The buffer needs one byte more
as it conains a NUL that sendsyslog(2) does not process.
OK deraadt@
|
|
|
|
|
|
| |
information also makes it through. This is a compromise to cope with
the absolutely ridiculous setprogname() API.
ok various discussions
|
|
|
|
|
| |
lines when printing to console or stderr.
OK deraadt@
|
|
|
|
|
|
| |
can be used anywhere (signal handler, stack protector fault handler) as
long as the format string does not contain floating point.
ok tedu miod beck
|
|
|
|
| |
ok otto
|
|
|
|
|
|
|
| |
and llib-lwrap.ln databases; so that the lint features doing format
strings checks are enabled by default.
Looks good to millert@.
|
|
|
|
| |
ok guenther@
|
|
- 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@
|