freebsd-skq/sntp/log.h
cy 047f369a62 Vendor import ntp 4.2.8.
Reviewed by:	roberto
Security:	VUXML: 4033d826-87dd-11e4-9079-3c970e169bc2
Security:	http://www.kb.cert.org/vuls/id/852879
Security:	CVE-2014-9293
Security	CVE-2014-9294
Security	CVE-2014-9295
Security	CVE-2014-9296
2014-12-20 22:52:39 +00:00

28 lines
512 B
C

#ifndef LOG_H
#define LOG_H
#include "ntp.h"
#include "ntp_stdlib.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <syslog.h>
#include <time.h>
/* syslog as ntpd does, even though we are not a daemon */
#ifdef LOG_NTP
# define OPENLOG_FAC LOG_NTP
#else
# ifndef LOG_DAEMON
# define LOG_DAEMON 0
# endif
# define OPENLOG_FAC LOG_DAEMON
#endif
void sntp_init_logging(const char *program);
void open_logfile(const char *logfile);
extern char *progname; /* for msyslog use too */
#endif