1 #ifndef __error_h
2 #define __error_h
3 
4 #include <errno.h>
5 #ifndef EBADMSG
6 /* *BSD doesn't have EBADMSG */
7 #define EBADMSG EFAULT
8 #endif
9 #ifndef ENOTSUP
10 /* ... or ENOTSUP */
11 #ifdef EOPNOTSUPPORT
12 #define ENOTSUP	EOPNOTSUPPORT
13 #else
14 #define ENOTSUP	ENOENT
15 #endif
16 #endif /*ENOTSUP */
17 
18 
19 void inline status(const char *m, ...);
20 
21 extern int use_syslog;
22 extern const int log_debug, log_info, log_warning, log_fatal;
23 
24 void log_init(char *s);
25 
26 void inline log(int lev, const char *m, ...);
27 
28 void inline debug(const char *m, ...);
29 
30 void inline fatal(const char *m, ...);
31 void inline warning(const char *m, ...);
32 
33 void inline cfatal(const char *m, ...);
34 void inline cwarning(const char *m, ...);
35 
36 #endif
37