cy 8560674afd MFV ntp 4.2.8p1 (r258945, r275970, r276091, r276092, r276093, r278284)
Thanks to roberto for providing pointers to wedge this into HEAD.

Approved by:	roberto
2015-03-30 13:30:15 +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