/*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
#ifndef _SYS_SYSLOG_H_
#define _SYS_SYSLOG_H_
+#include <sys/appleapiopts.h>
+
#define _PATH_LOG "/var/run/syslog"
/*
#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 */
"cron", LOG_CRON,
"daemon", LOG_DAEMON,
"ftp", LOG_FTP,
+ "install", LOG_INSTALL,
"kern", LOG_KERN,
"lpr", LOG_LPR,
"mail", LOG_MAIL,
#endif
#ifdef KERNEL
+#ifdef __APPLE_API_PRIVATE
#define LOG_PRINTF -1 /* pseudo-priority to indicate use of printf */
+#endif /* __APPLE_API_PRIVATE */
#endif
/*
__END_DECLS
#else /* !KERNEL */
-
+#ifdef __APPLE_API_OBSOLETE
/*
* bit field descriptions for printf %r and %R formats
*/
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 *, ...));