File: log.h

package info (click to toggle)
fdclone 3.00c-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,316 kB
  • ctags: 7,725
  • sloc: ansic: 94,212; makefile: 1,442; sh: 735; sed: 196
file content (28 lines) | stat: -rw-r--r-- 754 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 *	log.h
 *
 *	definitions & function prototype declarations for "log.c"
 */

#include "depend.h"

#define	_LOG_WARNING_		0
#define	_LOG_NOTICE_		1
#define	_LOG_INFO_		2
#define	_LOG_DEBUG_		3

#ifdef	DEP_LOGGING
#define	LOG0(l, n, f)		logsyscall(l, n, f)
#define	LOG1(l, n, f, a1)	logsyscall(l, n, f, a1)
#define	LOG2(l, n, f, a1, a2)	logsyscall(l, n, f, a1, a2)
#define	LOG3(l, n, f, a1, a2, a3) \
				logsyscall(l, n, f, a1, a2, a3)
extern VOID logclose __P_((VOID_A));
extern VOID logsyscall __P_((int, int, CONST char *, ...));
extern VOID logmessage __P_((int, CONST char *, ...));
#else	/* !DEP_LOGGING */
#define	LOG0(l, n, f)
#define	LOG1(l, n, f, a1)
#define	LOG2(l, n, f, a1, a2)
#define	LOG3(l, n, f, a1, a2, a3)
#endif	/* !DEP_LOGGING */