ntp_syslog.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 1996, 1999-2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* A hack for platforms which require specially built syslog facilities
*/
#ifndef NTP_SYSLOG_H
#define NTP_SYSLOG_H
#ifdef GIZMO
# include "gizmo_syslog.h"
#else /* !GIZMO */
# ifdef VMS
extern void msyslog();
# else
# ifndef SYS_VXWORKS
# include <syslog.h>
# endif
# endif /* VMS */
# include <stdio.h>
#endif /* GIZMO */
extern int syslogit;
extern FILE *syslog_file;
#if defined(VMS) || defined (SYS_VXWORKS)
#define LOG_EMERG 0 /* system is unusable */
#endif /* VMS || VXWORKS */
/*
* to limit message output resulting from a chronic network condition
*/
#define PEERAUTH_LOG_INTERVAL (60)
/*
* syslog output control
*/
#define NLOG_INFO 0x00000001
#define NLOG_EVENT 0x00000002
#define NLOG_STATUS 0x00000004
#define NLOG_STATIST 0x00000008
#define NLOG_OSYS 0 /* offset for system flags */
extern unsigned long ntp_syslogmask;
#endif /* NTP_SYSLOG_H */