Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / nfs-utils / utils / statd / log.h
blobfc55d3c2dcf91bc748920e2a3caf6d51d222bd97
1 /*
2 * Copyright (C) 1995 Olaf Kirch
3 * Modified by Jeffrey A. Uphoff, 1996, 1997, 1999.
4 * Modified by Lon Hohberger, Oct. 2000
6 * NSM for Linux.
7 */
9 /*
10 * logging functionality
11 * 260295 okir
14 #ifndef _LOCKD_LOG_H_
15 #define _LOCKD_LOG_H_
17 #include <syslog.h>
19 void log_init(void);
20 void log_background(void);
21 void log_enable(int facility);
22 int log_enabled(int facility);
23 void note(int level, char *fmt, ...);
24 void die(char *fmt, ...);
27 * Map per-application severity to system severity. What's fatal for
28 * lockd is merely an itching spot from the universe's point of view.
30 #define N_CRIT LOG_CRIT
31 #define N_FATAL LOG_ERR
32 #define N_ERROR LOG_WARNING
33 #define N_WARNING LOG_NOTICE
34 #define N_DEBUG LOG_DEBUG
36 #ifdef DEBUG
37 #define dprintf note
38 #else
39 #define dprintf if (run_mode & MODE_LOG_STDERR) note
40 #endif
42 #endif /* _LOCKD_LOG_H_ */