aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/syslog.h
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1997-10-06 20:37:01 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1997-10-06 20:37:01 +0000
commit9701326d42aa236e8e25156e06a4df03cdecacaf (patch)
tree8a07e3b04e31763d4e333424719b6f3e0273357e /sys/sys/syslog.h
parentb1001cf53cfee48c3b139ca20718988a971df7fb (diff)
downloadsrc-9701326d42aa236e8e25156e06a4df03cdecacaf.tar.gz
src-9701326d42aa236e8e25156e06a4df03cdecacaf.zip
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.
Notes
Notes: svn path=/head/; revision=30183
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 4f3bbce471ed..309b6f742fd0 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, },