diff options
Diffstat (limited to 'log.h')
-rw-r--r-- | log.h | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: log.h,v 1.2 2001/01/29 01:58:16 niklas Exp $ */ | 1 | /* $OpenBSD: log.h,v 1.3 2001/06/26 06:32:55 itojun Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -46,23 +46,23 @@ typedef enum { | |||
46 | SYSLOG_LEVEL_DEBUG3 | 46 | SYSLOG_LEVEL_DEBUG3 |
47 | } LogLevel; | 47 | } LogLevel; |
48 | /* Initializes logging. */ | 48 | /* Initializes logging. */ |
49 | void log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr); | 49 | void log_init(char *, LogLevel, SyslogFacility, int); |
50 | 50 | ||
51 | /* Logging implementation, depending on server or client */ | 51 | /* Logging implementation, depending on server or client */ |
52 | void do_log(LogLevel level, const char *fmt, va_list args); | 52 | void do_log(LogLevel, const char *, va_list); |
53 | 53 | ||
54 | /* name to facility/level */ | 54 | /* name to facility/level */ |
55 | SyslogFacility log_facility_number(char *name); | 55 | SyslogFacility log_facility_number(char *); |
56 | LogLevel log_level_number(char *name); | 56 | LogLevel log_level_number(char *); |
57 | 57 | ||
58 | /* Output a message to syslog or stderr */ | 58 | /* Output a message to syslog or stderr */ |
59 | void fatal(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 59 | void fatal(const char *, ...) __attribute__((format(printf, 1, 2))); |
60 | void error(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 60 | void error(const char *, ...) __attribute__((format(printf, 1, 2))); |
61 | void log(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 61 | void log(const char *, ...) __attribute__((format(printf, 1, 2))); |
62 | void verbose(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 62 | void verbose(const char *, ...) __attribute__((format(printf, 1, 2))); |
63 | void debug(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 63 | void debug(const char *, ...) __attribute__((format(printf, 1, 2))); |
64 | void debug2(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 64 | void debug2(const char *, ...) __attribute__((format(printf, 1, 2))); |
65 | void debug3(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 65 | void debug3(const char *, ...) __attribute__((format(printf, 1, 2))); |
66 | 66 | ||
67 | /* same as fatal() but w/o logging */ | 67 | /* same as fatal() but w/o logging */ |
68 | void fatal_cleanup(void); | 68 | void fatal_cleanup(void); |
@@ -72,9 +72,9 @@ void fatal_cleanup(void); | |||
72 | * before exiting. It is permissible to call fatal_remove_cleanup for the | 72 | * before exiting. It is permissible to call fatal_remove_cleanup for the |
73 | * function itself from the function. | 73 | * function itself from the function. |
74 | */ | 74 | */ |
75 | void fatal_add_cleanup(void (*proc) (void *context), void *context); | 75 | void fatal_add_cleanup(void (*) (void *), void *); |
76 | 76 | ||
77 | /* Removes a cleanup function to be called at fatal(). */ | 77 | /* Removes a cleanup function to be called at fatal(). */ |
78 | void fatal_remove_cleanup(void (*proc) (void *context), void *context); | 78 | void fatal_remove_cleanup(void (*) (void *), void *); |
79 | 79 | ||
80 | #endif | 80 | #endif |