mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-14 16:40:59 -04:00
28 lines
502 B
C
28 lines
502 B
C
/* $NetBSD: log.h,v 1.3 2012/02/01 07:46:23 kardel Exp $ */
|
|
|
|
#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 init_logging(void);
|
|
void open_logfile(const char *logfile);
|
|
|
|
#endif
|