]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: ISC |
8429abe0 RW |
2 | /* $OpenBSD$ */ |
3 | ||
4 | /* | |
5 | * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> | |
8429abe0 RW |
6 | */ |
7 | ||
fa68f9da RW |
8 | #ifndef LOG_H |
9 | #define LOG_H | |
8429abe0 RW |
10 | |
11 | #include <stdarg.h> | |
12 | ||
fa68f9da | 13 | extern const char *log_procname; |
8429abe0 | 14 | |
fa68f9da RW |
15 | void logit(int, const char *, ...) |
16 | __attribute__((__format__ (printf, 2, 3))); | |
17 | void vlog(int, const char *, va_list) | |
18 | __attribute__((__format__ (printf, 2, 0))); | |
19 | void log_warn(const char *, ...) | |
20 | __attribute__((__format__ (printf, 1, 2))); | |
21 | void log_warnx(const char *, ...) | |
22 | __attribute__((__format__ (printf, 1, 2))); | |
23 | void log_info(const char *, ...) | |
24 | __attribute__((__format__ (printf, 1, 2))); | |
25 | void log_notice(const char *, ...) | |
26 | __attribute__((__format__ (printf, 1, 2))); | |
27 | void log_debug(const char *, ...) | |
28 | __attribute__((__format__ (printf, 1, 2))); | |
29 | void fatal(const char *) | |
30 | __attribute__ ((noreturn)) | |
31 | __attribute__((__format__ (printf, 1, 0))); | |
32 | void fatalx(const char *) | |
33 | __attribute__ ((noreturn)) | |
34 | __attribute__((__format__ (printf, 1, 0))); | |
8429abe0 | 35 | |
fa68f9da | 36 | #endif /* LOG_H */ |