diff options
Diffstat (limited to 'lib/libc/gen/syslog.3')
-rw-r--r-- | lib/libc/gen/syslog.3 | 10 |
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"); |