summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/syslog.3
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1996-05-23 01:05:25 +0000
committermpp <mpp@FreeBSD.org>1996-05-23 01:05:25 +0000
commitba6f97d58c95b3d1f96b5fd78025f24c36025134 (patch)
tree20c0191307a05862d54f0d7211d2ee3ad63fa87a /lib/libc/gen/syslog.3
parent509f02d4a3034d089f3b708293f367e91cdc784b (diff)
downloadFreeBSD-src-ba6f97d58c95b3d1f96b5fd78025f24c36025134.zip
FreeBSD-src-ba6f97d58c95b3d1f96b5fd78025f24c36025134.tar.gz
Fixed various problems: typos, grammer, missing include files
wrong function type declarations, and wrong argument type declarations.
Diffstat (limited to 'lib/libc/gen/syslog.3')
-rw-r--r--lib/libc/gen/syslog.310
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libc/gen/syslog.3 b/lib/libc/gen/syslog.3
index 832fd9c..ab1bd9d 100644
--- a/lib/libc/gen/syslog.3
+++ b/lib/libc/gen/syslog.3
@@ -173,11 +173,15 @@ The same as
but logged to a file readable only by
selected individuals.
.It Dv LOG_CRON
-The clock daemon.
+The cron daemon:
+.Xr cron 8 .
.It Dv LOG_DAEMON
System daemons, such as
.Xr routed 8 ,
that are not provided for explicitly by other facilities.
+.It Dv LOG_FTP
+The file transfer protocol daemon:
+.Xr ftpd 8 .
.It Dv LOG_KERN
Messages generated by the kernel.
These cannot be generated by any user processes.
@@ -248,8 +252,10 @@ always returns the previous log mask level.
.Bd -literal -offset indent -compact
syslog(LOG_ALERT, "who: internal error 23");
-openlog("ftpd", LOG_PID, LOG_DAEMON);
+openlog("ftpd", LOG_PID | LOG_NDELAY, LOG_FTP);
+
setlogmask(LOG_UPTO(LOG_ERR));
+
syslog(LOG_INFO, "Connection from host %d", CallingHost);
syslog(LOG_INFO|LOG_LOCAL2, "foobar error: %m");
OpenPOWER on IntegriCloud