]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/syslog.h
xnu-517.9.5.tar.gz
[apple/xnu.git] / bsd / sys / syslog.h
index ce67c44d8adfc898aba9773064c80421b7492d4f..aa0564e6e4c020451ff13e92fd5ec43bd59a145d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
@@ -58,6 +58,8 @@
 #ifndef        _SYS_SYSLOG_H_
 #define _SYS_SYSLOG_H_
 
+#include <sys/appleapiopts.h>
+
 #define        _PATH_LOG       "/var/run/syslog"
 
 /*
@@ -124,6 +126,7 @@ CODE prioritynames[] = {
 #define        LOG_FTP         (11<<3) /* ftp daemon */
 #define        LOG_NETINFO     (12<<3) /* NetInfo */
 #define        LOG_REMOTEAUTH  (13<<3) /* remote authentication/authorization */
+#define        LOG_INSTALL     (14<<3) /* installer subsystem */
 
        /* other codes through 15 reserved for system use */
 #define        LOG_LOCAL0      (16<<3) /* reserved for local use */
@@ -147,6 +150,7 @@ CODE facilitynames[] = {
        "cron",         LOG_CRON,
        "daemon",       LOG_DAEMON,
        "ftp",          LOG_FTP,
+       "install",      LOG_INSTALL,
        "kern",         LOG_KERN,
        "lpr",          LOG_LPR,
        "mail",         LOG_MAIL,
@@ -171,7 +175,9 @@ CODE facilitynames[] = {
 #endif
 
 #ifdef KERNEL
+#ifdef __APPLE_API_PRIVATE
 #define        LOG_PRINTF      -1      /* pseudo-priority to indicate use of printf */
+#endif /* __APPLE_API_PRIVATE */
 #endif
 
 /*
@@ -215,7 +221,7 @@ void        vsyslog __P((int, const char *, _BSD_VA_LIST_));
 __END_DECLS
 
 #else /* !KERNEL */
-
+#ifdef __APPLE_API_OBSOLETE
 /*
  * bit field descriptions for printf %r and %R formats
  */
@@ -295,6 +301,8 @@ struct reg_desc {
        struct reg_values *rd_values;   /* symbolic names of values */
 };
 
+#endif /* __APPLE_API_OBSOLETE */
+
 void   logpri __P((int));
 void   log __P((int, const char *, ...));
 void   addlog __P((const char *, ...));