Home | History | Annotate | Download | only in gen
History log of /src/lib/libc/gen/syslog.3
RevisionDateAuthorComments
 1.35  11-Jul-2024  riastradh syslog(3): Nix trailing whitespace in man page.

No functional change intended.
 1.34  08-Jul-2024  christos PR/58391: Noriyuki Soda: re-adding syslog_ss() to syslog.h and syslog.3
 1.33  03-Jul-2017  wiz branches: 1.33.16; 1.33.18;
Remove workaround for ancient HTML generation code.
 1.32  23-Mar-2017  wiz Remove trailing whitespace.
 1.31  22-Mar-2017  roy openlog(3): add LOG_PTRIM and LOG_NLOG log options.

syslog(3) is the one stop method of logging system events and diagnostics.
When debugging a daemon in the foreground on a terminal, each line is
prefixed with tag[pid]: which is very repetative and can take up valuable
screen estate.
LOG_PTRIM solves this by removing this prefix from stderr output.

There is also the case where the debugging could involve a dry-run and
syslog(3) calls would pollute the system log with incorrect data.
LOG_NLOG solves this by not writing the the system log, but allowing
LOG_PERROR to operate as before.

Initially discussed here:
https://mail-index.netbsd.org/tech-userlevel/2016/10/06/msg010330.html
 1.30  21-Feb-2017  abhinav Fix spelling of "parenthesis".
 1.29  25-Jul-2011  njoly branches: 1.29.24; 1.29.28;
Adjust xref varargs(3) -> stdarg(3)
 1.28  13-May-2010  jruoho Move the structure inside the body text. Some additional markup improvements.
 1.27  05-Apr-2010  joerg \\ -> \e
 1.26  01-Nov-2008  wiz branches: 1.26.2;
New sentence, new line. Mark up NULL with Dv.
 1.25  31-Oct-2008  christos Import syslogd SoC project by Martin Schuette:
- new syslog protocol api syslogp(3) that supports structured data
and draft-rfc timestamps
- reliable tcp connections with queueing
- encrypted connections
 1.24  22-Nov-2006  christos Don't expose _ss functions for 4.0. Requested by core.
 1.23  28-Oct-2006  wiz Remove trailing whitespace. Use .Bl -enum for an enumeration.
 1.22  27-Oct-2006  christos add async-signal-safe versions: syslog_ss and vsyslog_ss
multithread-safe syslog_r and vsyslog_r are not async-signal-safe.
 1.21  26-Oct-2006  wiz Various fixes.
 1.20  25-Oct-2006  christos add _r functions for syslog from OpenBSD
 1.19  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.18  06-May-2003  wiz New sentence, new line.
 1.17  02-May-2003  gmcgarry Clarify output. From PR#14290.
 1.16  01-May-2003  wiz Grammar and mdoc fixes from jmc@openbsd.
 1.15  16-Apr-2003  wiz Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
 1.14  01-Oct-2002  wiz New sentence, new line. From Robert Elz.
 1.13  10-Jul-2002  yamt import CAVEATS sections from OpenBSD.
with little tweak by me.
 1.12  07-Feb-2002  ross Generate <>& symbolically.
 1.11  16-Sep-2001  wiz Standardize section headers, sort sections, sort SEE ALSO, punctuation
and misc. fixes.
 1.10  14-Mar-2001  lukem reference <stdarg.h> not <varargs.h>, and separate out the synopsis
for vsyslog(3) from the rest after <stdarg.h>, as per printf(3)/vsprintf(3)
 1.9  22-Mar-1999  garbled branches: 1.9.12;
Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Wheee!
 1.8  28-Apr-1998  fair Fix mdoc .Xr reference for syntax or correctness (e.g. exec(2) versus exec(3)).
Make other mdoc corrections as inspection dictated.
 1.7  05-Feb-1998  perry add LIBRARY section to man page
 1.6  08-Mar-1997  mouse alternate -> alternative, per PR 2643
 1.5  12-Aug-1995  jtc fix typo
 1.4  11-Aug-1995  jtc Updated for LOG_FTP (PR #1312).

Edited the examples section so that they are all separated by a single
blank line, since they're unrelated. SunOS' syslog(3) has a sentance
or two describing each line. We'll either have to come up with our
own text or ignore it. I'm ignoring it for now.
 1.3  27-Feb-1995  cgd merge with 4.4-Lite, keeping local changes. clean up Ids
 1.2  30-Jul-1993  mycroft Add RCS identifiers.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  25-Feb-1995  cgd from lite, with minor name rearrangement to fit.
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9.12.5  18-Oct-2002  nathanw Catch up to -current.
 1.9.12.4  01-Aug-2002  nathanw Catch up to -current.
 1.9.12.3  22-Mar-2002  nathanw Catch up to -current.
 1.9.12.2  08-Mar-2002  nathanw Catch up to -current.
 1.9.12.1  08-Oct-2001  nathanw Catch up to -current.
 1.26.2.2  01-Nov-2008  wiz New sentence, new line. Mark up NULL with Dv.
 1.26.2.1  01-Nov-2008  wiz file syslog.3 was added on branch christos-time_t on 2008-11-01 13:54:02 +0000
 1.29.28.1  21-Apr-2017  bouyer Sync with HEAD
 1.29.24.2  26-Apr-2017  pgoyette Sync with HEAD
 1.29.24.1  20-Mar-2017  pgoyette Sync with HEAD
 1.33.18.1  02-Aug-2025  perseant Sync with HEAD
 1.33.16.1  08-Oct-2024  martin Pull up following revision(s) (requested by rin in ticket #930):

lib/libc/include/extern.h: revision 1.30
distrib/sets/lists/base/shl.mi: revision 1.987 (patch)
external/bsd/blocklist/bin/support.c: revision 1.2
external/bsd/blocklist/bin/blocklistd.c: revision 1.5
external/bsd/blocklist/bin/blocklistd.8: revision 1.3
sys/sys/syslog.h: revision 1.42
external/bsd/blocklist/bin/support.h: revision 1.2
external/bsd/blocklist/include/blocklist.h: revision 1.3
crypto/external/bsd/openssh/dist/pfilter.c: revision 1.9
external/bsd/blocklist/lib/shlib_version: revision 1.2
lib/libc/gen/syslog_ss.c: revision 1.4
lib/libc/gen/Makefile.inc: revision 1.218
external/bsd/blocklist/lib/bl.c: revision 1.3
external/bsd/blocklist/README: revision 1.3
external/bsd/blocklist/include/bl.h: revision 1.2
distrib/sets/lists/debug/shl.mi: revision 1.347 (patch)
distrib/sets/lists/comp/mi: revision 1.2462
lib/libc/gen/syslog.3: revision 1.34
lib/libc/gen/syslog.3: revision 1.35
external/bsd/blocklist/libexec/blocklistd-helper: revision 1.8
external/bsd/blocklist/lib/libblocklist.3: revision 1.4
external/bsd/blocklist/lib/libblocklist.3: revision 1.5
external/bsd/blocklist/lib/libblocklist.3: revision 1.6
external/bsd/blocklist/lib/blocklist.c: revision 1.3

Spelling fixes

PR/58391: Noriyuki Soda: re-adding syslog_ss() to syslog.h and syslog.3

syslog(3): Nix trailing whitespace in man page.
No functional change intended.

reference sockpath instead of sockspath

Add blocklist_open2() that can pass a custom logger or NULL for no logging.
Switch internally to use syslog_r. Add compatibility for systems that don't
have syslog_r.

Switch blocklist to use syslog_ss since we are being called from a
signal handler.

bump libblocklist
remove trailing space

Silence a bogus warning when starting up:
NetBSD pf:
No ALTQ support in kernel
ALTQ related functions disabled
FreeBSD pf:
Anchor 'blacklistd' not found.
The anchor is indeed found and working correctly. This patch just
discards stderr's output, like in other places.
(jlduran@github)

update markup (Ed Maste)

RSS XML Feed