summaryrefslogtreecommitdiff
path: root/vos/syslog.h
diff options
context:
space:
mode:
authorPaul Green <Paul.Green@stratus.com>2006-10-03 13:40:03 -0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-04 07:16:04 +0000
commitdab8accc950a57180c2a6414eeb663fee64b5567 (patch)
tree467810e0262a2bfa8205609d3929a17fbcb5c6e4 /vos/syslog.h
parentf4ace20533c7295f26a2f677bffc32caf66b86aa (diff)
downloadperl-dab8accc950a57180c2a6414eeb663fee64b5567.tar.gz
Update Stratus VOS files.
From: "Green, Paul" <Paul.Green@stratus.com> Message-ID: <F5F42E77A43DD944B6D664B00A5401CB022CA121@EXNA.corp.stratus.com> p4raw-id: //depot/perl@28933
Diffstat (limited to 'vos/syslog.h')
-rw-r--r--vos/syslog.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/vos/syslog.h b/vos/syslog.h
new file mode 100644
index 0000000000..1916fc1b34
--- /dev/null
+++ b/vos/syslog.h
@@ -0,0 +1,75 @@
+/* Beginning of modification history */
+/* Written 02-08-13 by PG */
+/* End of modification history */
+
+/* This header conforms to IEEE Std 1003.1-2001 */
+
+#ifndef _INCLUDED_SYSLOG_H
+#define _INCLUDED_SYSLOG_H
+
+/* values of the "logopt" option of openlog */
+
+#define LOG_PID 1
+#define LOG_CONS 2
+#define LOG_NDELAY 4
+#define LOG_ODELAY 8
+#define LOG_NOWAIT 16
+
+/* values of the "facility" argument of openlog
+ and of the "priority" argument of syslog */
+
+#define LOG_KERN 0
+#define LOG_USER (1<<3)
+#define LOG_MAIL (2<<3)
+#define LOG_NEWS (3<<3)
+#define LOG_UUCP (4<<3)
+#define LOG_DAEMON (5<<3)
+#define LOG_AUTH (6<<3)
+#define LOG_CRON (7<<3)
+#define LOG_LPR (8<<3)
+#define LOG_LOCAL0 (9<<3)
+#define LOG_LOCAL1 (10<<3)
+#define LOG_LOCAL2 (11<<3)
+#define LOG_LOCAL3 (12<<3)
+#define LOG_LOCAL4 (13<<3)
+#define LOG_LOCAL5 (14<<3)
+#define LOG_LOCAL6 (15<<3)
+#define LOG_LOCAL7 (16<<3)
+
+/* macro for constructing "maskpri" arg to setlogmask */
+
+#define LOG_MASK(p) (1 << (p))
+
+/* values of the "priority" argument of syslog */
+
+#define LOG_EMERG 0
+#define LOG_ALERT 1
+#define LOG_CRIT 2
+#define LOG_ERR 3
+#define LOG_WARNING 4
+#define LOG_NOTICE 5
+#define LOG_INFO 6
+#define LOG_DEBUG 7
+
+#undef __P
+#ifdef __PROTOTYPES__
+#define __P(args) args
+#else
+#define __P(args) ()
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern void closelog __P((void));
+extern void openlog __P((const char *ident, int logopt,
+ int facility));
+extern int setlogmask __P((int maskpri));
+extern void syslog __P((int priority, const char * message, ...));
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _INCLUDED_SYSLOG_H */