]>
Commit | Line | Data |
---|---|---|
f67539c2 TL |
1 | /* |
2 | * Copyright 2013, 2015 Cloudbase Solutions Srl | |
3 | * | |
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may | |
5 | * not use this file except in compliance with the License.You may obtain | |
6 | * a copy of the License at | |
7 | * | |
8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | |
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the | |
13 | * License for the specific language governing permissions and limitations | |
14 | * under the License. | |
15 | */ | |
16 | ||
17 | #ifndef SYSLOG_H | |
18 | #define SYSLOG_H 1 | |
19 | ||
20 | #define LOG_EMERG 0 /* system is unusable */ | |
21 | #define LOG_ALERT 1 /* action must be taken immediately */ | |
22 | #define LOG_CRIT 2 /* critical conditions */ | |
23 | #define LOG_ERR 3 /* error conditions */ | |
24 | #define LOG_WARNING 4 /* warning conditions */ | |
25 | #define LOG_NOTICE 5 /* normal but significant condition */ | |
26 | #define LOG_INFO 6 /* informational */ | |
27 | #define LOG_DEBUG 7 /* debug-level messages */ | |
28 | ||
29 | #define LOG_KERN (0<<3) /* kernel messages */ | |
30 | #define LOG_USER (1<<3) /* user-level messages */ | |
31 | #define LOG_MAIL (2<<3) /* mail system */ | |
32 | #define LOG_DAEMON (3<<3) /* system daemons */ | |
33 | #define LOG_AUTH (4<<3) /* security/authorization messages */ | |
34 | #define LOG_SYSLOG (5<<3) /* messages generated internally by syslogd */ | |
35 | #define LOG_LPR (6<<3) /* line printer subsystem */ | |
36 | #define LOG_NEWS (7<<3) /* network news subsystem */ | |
37 | #define LOG_UUCP (8<<3) /* UUCP subsystem */ | |
38 | #define LOG_CRON (9<<3) /* clock daemon */ | |
39 | #define LOG_AUTHPRIV (10<<3) /* security/authorization messages */ | |
40 | #define LOG_FTP (11<<3) /* FTP daemon */ | |
41 | ||
42 | #define LOG_LOCAL0 (16<<3) /* reserved for local use */ | |
43 | #define LOG_LOCAL1 (17<<3) /* reserved for local use */ | |
44 | #define LOG_LOCAL2 (18<<3) /* reserved for local use */ | |
45 | #define LOG_LOCAL3 (19<<3) /* reserved for local use */ | |
46 | #define LOG_LOCAL4 (20<<3) /* reserved for local use */ | |
47 | #define LOG_LOCAL5 (21<<3) /* reserved for local use */ | |
48 | #define LOG_LOCAL6 (22<<3) /* reserved for local use */ | |
49 | #define LOG_LOCAL7 (23<<3) /* reserved for local use */ | |
50 | ||
51 | #define LOG_PRIMASK 0x07 /* mask to extract priority part (internal) */ | |
52 | /* extract priority */ | |
53 | #define LOG_PRI(p) ((p) & LOG_PRIMASK) | |
54 | ||
55 | ||
56 | static inline void | |
57 | openlog(const char *ident, int option, int facility) | |
58 | { | |
59 | } | |
60 | ||
61 | void | |
62 | syslog(int priority, const char *format, ...); | |
63 | ||
64 | #endif /* syslog.h */ |