SCCS-vsn: lib/libc/gen/syslog.3 6.8
.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
-.\" @(#)syslog.3 6.7 (Berkeley) %G%
+.\" @(#)syslog.3 6.8 (Berkeley) %G%
.\"
.TH SYSLOG 3 ""
.UC 5
.\"
.TH SYSLOG 3 ""
.UC 5
.PP
.B "syslog(priority, message, parameters ... )
.br
.PP
.B "syslog(priority, message, parameters ... )
.br
+.B "int priority;
+.br
+.B "char *message;
+.PP
+.B "#include <varargs.h>
+.br
+.B "vsyslog(priority, message, args)
+.br
+.B "int priority;
+.br
.B %m
is replaced by the current error message (collected from
.IR errno ).
.B %m
is replaced by the current error message (collected from
.IR errno ).
-A trailing newline is added if needed.
+A trailing newline is added if needed. An alternate form,
+in which the arguments have already been captured using the
+variable-length argument facilities of
+.IR varargs (3),
+is available under the name
+.IR vsyslog .
+.PP
This message will be read by
.IR syslogd (8)
and written to the system console, log files, or forwarded to
This message will be read by
.IR syslogd (8)
and written to the system console, log files, or forwarded to