| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: syslog.h,v 1.36 2014/07/20 20:55:17 dholland Exp $ */ | | 1 | /* $NetBSD: syslog.h,v 1.37 2015/10/14 15:52:40 christos Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 1982, 1986, 1988, 1993 | | 4 | * Copyright (c) 1982, 1986, 1988, 1993 |
5 | * The Regents of the University of California. All rights reserved. | | 5 | * The Regents of the University of California. All rights reserved. |
6 | * | | 6 | * |
7 | * Redistribution and use in source and binary forms, with or without | | 7 | * Redistribution and use in source and binary forms, with or without |
8 | * modification, are permitted provided that the following conditions | | 8 | * modification, are permitted provided that the following conditions |
9 | * are met: | | 9 | * are met: |
10 | * 1. Redistributions of source code must retain the above copyright | | 10 | * 1. Redistributions of source code must retain the above copyright |
11 | * notice, this list of conditions and the following disclaimer. | | 11 | * notice, this list of conditions and the following disclaimer. |
12 | * 2. Redistributions in binary form must reproduce the above copyright | | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
13 | * notice, this list of conditions and the following disclaimer in the | | 13 | * notice, this list of conditions and the following disclaimer in the |
14 | * documentation and/or other materials provided with the distribution. | | 14 | * documentation and/or other materials provided with the distribution. |
| @@ -191,47 +191,47 @@ struct syslog_data { | | | @@ -191,47 +191,47 @@ struct syslog_data { |
191 | .log_hostname = { '\0' }, \ | | 191 | .log_hostname = { '\0' }, \ |
192 | .log_fac = LOG_USER, \ | | 192 | .log_fac = LOG_USER, \ |
193 | .log_mask = 0xff, \ | | 193 | .log_mask = 0xff, \ |
194 | } | | 194 | } |
195 | | | 195 | |
196 | #include <sys/cdefs.h> | | 196 | #include <sys/cdefs.h> |
197 | #include <sys/featuretest.h> | | 197 | #include <sys/featuretest.h> |
198 | #include <sys/ansi.h> | | 198 | #include <sys/ansi.h> |
199 | | | 199 | |
200 | __BEGIN_DECLS | | 200 | __BEGIN_DECLS |
201 | void closelog(void); | | 201 | void closelog(void); |
202 | void openlog(const char *, int, int); | | 202 | void openlog(const char *, int, int); |
203 | int setlogmask(int); | | 203 | int setlogmask(int); |
204 | void syslog(int, const char *, ...) __printflike(2, 3); | | 204 | void syslog(int, const char *, ...) __sysloglike(2, 3); |
205 | #if defined(_NETBSD_SOURCE) | | 205 | #if defined(_NETBSD_SOURCE) |
206 | void vsyslog(int, const char *, __va_list) __printflike(2, 0); | | 206 | void vsyslog(int, const char *, __va_list) __sysloglike(2, 0); |
207 | #ifndef __LIBC12_SOURCE__ | | 207 | #ifndef __LIBC12_SOURCE__ |
208 | void closelog_r(struct syslog_data *) __RENAME(__closelog_r60); | | 208 | void closelog_r(struct syslog_data *) __RENAME(__closelog_r60); |
209 | void openlog_r(const char *, int, int, struct syslog_data *) | | 209 | void openlog_r(const char *, int, int, struct syslog_data *) |
210 | __RENAME(__openlog_r60); | | 210 | __RENAME(__openlog_r60); |
211 | int setlogmask_r(int, struct syslog_data *) __RENAME(__setlogmask_r60); | | 211 | int setlogmask_r(int, struct syslog_data *) __RENAME(__setlogmask_r60); |
212 | void syslog_r(int, struct syslog_data *, const char *, ...) | | 212 | void syslog_r(int, struct syslog_data *, const char *, ...) |
213 | __RENAME(__syslog_r60) __printflike(3, 4); | | 213 | __RENAME(__syslog_r60) __sysloglike(3, 4); |
214 | void vsyslog_r(int, struct syslog_data *, const char *, __va_list) | | 214 | void vsyslog_r(int, struct syslog_data *, const char *, __va_list) |
215 | __RENAME(__vsyslog_r60) __printflike(3, 0); | | 215 | __RENAME(__vsyslog_r60) __sysloglike(3, 0); |
216 | void syslogp_r(int, struct syslog_data *, const char *, const char *, | | 216 | void syslogp_r(int, struct syslog_data *, const char *, const char *, |
217 | const char *, ...) __RENAME(__syslogp_r60) __printflike(5, 6); | | 217 | const char *, ...) __RENAME(__syslogp_r60) __sysloglike(5, 6); |
218 | void vsyslogp_r(int, struct syslog_data *, const char *, const char *, | | 218 | void vsyslogp_r(int, struct syslog_data *, const char *, const char *, |
219 | const char *, __va_list) __RENAME(__vsyslogp_r60) __printflike(5, 0); | | 219 | const char *, __va_list) __RENAME(__vsyslogp_r60) __sysloglike(5, 0); |
220 | #endif | | 220 | #endif |
221 | void syslogp(int, const char *, const char *, const char *, ...) | | 221 | void syslogp(int, const char *, const char *, const char *, ...) |
222 | __printflike(4, 5); | | 222 | __sysloglike(4, 5); |
223 | void vsyslogp(int, const char *, const char *, const char *, __va_list) | | 223 | void vsyslogp(int, const char *, const char *, const char *, __va_list) |
224 | __printflike(4, 0); | | 224 | __sysloglike(4, 0); |
225 | #endif | | 225 | #endif |
226 | __END_DECLS | | 226 | __END_DECLS |
227 | | | 227 | |
228 | #else /* !_KERNEL */ | | 228 | #else /* !_KERNEL */ |
229 | | | 229 | |
230 | void logpri(int); | | 230 | void logpri(int); |
231 | void log(int, const char *, ...) __printflike(2, 3); | | 231 | void log(int, const char *, ...) __printflike(2, 3); |
232 | void vlog(int, const char *, __va_list) __printflike(2, 0); | | 232 | void vlog(int, const char *, __va_list) __printflike(2, 0); |
233 | void addlog(const char *, ...) __printflike(1, 2); | | 233 | void addlog(const char *, ...) __printflike(1, 2); |
234 | void logwakeup(void); | | 234 | void logwakeup(void); |
235 | | | 235 | |
236 | #endif /* !_KERNEL */ | | 236 | #endif /* !_KERNEL */ |
237 | | | 237 | |