summaryrefslogtreecommitdiffstats
path: root/sys/sys/syslog.h
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1997-10-06 20:37:01 +0000
committerjoerg <joerg@FreeBSD.org>1997-10-06 20:37:01 +0000
commitae962c0c5283bb0039aa05f841dd37e77821856d (patch)
treefb0228afc5b299d4a1a922e819d9ccda49afe9b2 /sys/sys/syslog.h
parentd3704d1b22494c92b7fa0fcbad8ecfc4200167ea (diff)
downloadFreeBSD-src-ae962c0c5283bb0039aa05f841dd37e77821856d.zip
FreeBSD-src-ae962c0c5283bb0039aa05f841dd37e77821856d.tar.gz
Since i've just touched <sys/syslog.h>, thereby causing a large part
of the system to be rebuilt anyway, this is a good time to introduce LOG_NTP. The reasoning for a separate facility is that xntpd can sometimes cause exaggerative log message at high prioritites which are, depending on your environment and available clock sources, not necessarily as important as other LOG_DAEMON messages. However, they used to clutter log files and system console in the existing setup. Note that this situation could not be resolved using the !xntpd option (think about it). xntpd(8) is supposed to automatically pick up the change, it had already all necessary #ifdef's. The chosen value does, as far as my inquiries yielded, not clash with any other operating system.
Diffstat (limited to 'sys/sys/syslog.h')
-rw-r--r--sys/sys/syslog.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/sys/syslog.h b/sys/sys/syslog.h
index 4f3bbce..309b6f7 100644
--- a/sys/sys/syslog.h
+++ b/sys/sys/syslog.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)syslog.h 8.1 (Berkeley) 6/2/93
- * $Id: syslog.h,v 1.13 1997/03/20 16:28:27 jdp Exp $
+ * $Id: syslog.h,v 1.14 1997/10/06 18:20:23 joerg Exp $
*/
#ifndef _SYS_SYSLOG_H_
@@ -101,7 +101,11 @@ CODE prioritynames[] = {
#define LOG_UUCP (8<<3) /* UUCP subsystem */
#define LOG_CRON (9<<3) /* clock daemon */
#define LOG_AUTHPRIV (10<<3) /* security/authorization messages (private) */
+ /* Facility #10 clashes in DEC UNIX, where */
+ /* it's defined as LOG_MEGASAFE for AdvFS */
+ /* event logging. */
#define LOG_FTP (11<<3) /* ftp daemon */
+#define LOG_NTP (12<<3) /* NTP subsystem */
/* other codes through 15 reserved for system use */
#define LOG_LOCAL0 (16<<3) /* reserved for local use */
@@ -130,6 +134,7 @@ CODE facilitynames[] = {
{ "mail", LOG_MAIL, },
{ "mark", INTERNAL_MARK, }, /* INTERNAL */
{ "news", LOG_NEWS, },
+ { "ntp", LOG_NTP, },
{ "security", LOG_AUTH, }, /* DEPRECATED */
{ "syslog", LOG_SYSLOG, },
{ "user", LOG_USER, },
OpenPOWER on IntegriCloud