summaryrefslogtreecommitdiff
path: root/usr/src/uts
diff options
context:
space:
mode:
authorGary Mills <gary_mills@fastmail.fm>2013-11-19 13:08:45 -0600
committerRichard Lowe <richlowe@richlowe.net>2013-12-13 00:42:15 -0500
commitba91f08b676cdb873326906656bad68790a01301 (patch)
treea104a404d93997033de6548f752d2451e3aaf229 /usr/src/uts
parent8b36997aa24d9817807faa4efa301ac9c07a2b78 (diff)
downloadillumos-joyent-ba91f08b676cdb873326906656bad68790a01301.tar.gz
4211 Some syslog facility names and symbols are missing
1762 Syslogd man page: missing reference. Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net> Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/uts')
-rw-r--r--usr/src/uts/common/os/logsubr.c5
-rw-r--r--usr/src/uts/common/sys/syslog.h9
2 files changed, 9 insertions, 5 deletions
diff --git a/usr/src/uts/common/os/logsubr.c b/usr/src/uts/common/os/logsubr.c
index f5cebbf82e..149f5f8a88 100644
--- a/usr/src/uts/common/os/logsubr.c
+++ b/usr/src/uts/common/os/logsubr.c
@@ -20,6 +20,7 @@
*/
/*
+ * Copyright (c) 2013 Gary Mills
* Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
*/
@@ -73,8 +74,8 @@ static char log_pri[LOG_PRIMASK + 1][LOG_PRISIZE] = {
static char log_fac[LOG_NFACILITIES + 1][LOG_FACSIZE] = {
"kern", "user", "mail", "daemon",
"auth", "syslog", "lpr", "news",
- "uucp", "resv9", "resv10", "resv11",
- "resv12", "audit", "resv14", "cron",
+ "uucp", "altcron", "authpriv", "ftp",
+ "ntp", "audit", "console", "cron",
"local0", "local1", "local2", "local3",
"local4", "local5", "local6", "local7",
"unknown"
diff --git a/usr/src/uts/common/sys/syslog.h b/usr/src/uts/common/sys/syslog.h
index 6f073959b2..605cae78d9 100644
--- a/usr/src/uts/common/sys/syslog.h
+++ b/usr/src/uts/common/sys/syslog.h
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2013 Gary Mills
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -19,8 +20,6 @@
#ifndef _SYS_SYSLOG_H
#define _SYS_SYSLOG_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#ifdef __cplusplus
extern "C" {
#endif
@@ -37,9 +36,13 @@ extern "C" {
#define LOG_LPR (6<<3) /* line printer subsystem */
#define LOG_NEWS (7<<3) /* netnews subsystem */
#define LOG_UUCP (8<<3) /* uucp subsystem */
+#define LOG_ALTCRON (9<<3) /* BSD cron/at subsystem */
+#define LOG_AUTHPRIV (10<<3) /* BSD security/authorization messages */
+#define LOG_FTP (11<<3) /* file transfer subsystem */
+#define LOG_NTP (12<<3) /* network time subsystem */
#define LOG_AUDIT (13<<3) /* audit subsystem */
+#define LOG_CONSOLE (14<<3) /* BSD console messages */
#define LOG_CRON (15<<3) /* cron/at subsystem */
- /* other codes through 15 reserved for system use */
#define LOG_LOCAL0 (16<<3) /* reserved for local use */
#define LOG_LOCAL1 (17<<3) /* reserved for local use */
#define LOG_LOCAL2 (18<<3) /* reserved for local use */