version 1.1.1.1, 2008/06/03 10:38:44 |
version 1.1.1.1.2.1, 2008/08/13 17:12:28 |
|
|
|
|
#ifndef KERNEL |
#ifndef KERNEL |
|
|
/* |
#include <machine/stdarg.h> |
* Don't use va_list in the vsyslog() prototype. Va_list is typedef'd in two |
|
* places (<machine/varargs.h> and <machine/stdarg.h>), so if we include one |
|
* of them here we may collide with the utility's includes. It's unreasonable |
|
* for utilities to have to include one of them to include syslog.h, so we get |
|
* _BSD_VA_LIST_ from <machine/ansi.h> and use it. |
|
*/ |
|
#include <machine/ansi.h> |
|
#include <sys/cdefs.h> |
#include <sys/cdefs.h> |
|
|
__BEGIN_DECLS |
__BEGIN_DECLS |
void closelog(void); |
void closelog(void); |
void openlog(const char *, int, int); |
void openlog(const char *, int, int); |
int setlogmask(int); |
int setlogmask(int); |
#ifdef DEBUG |
|
void syslog(int, const char *, ...); |
void syslog(int, const char *, ...); |
void vsyslog(int, const char *, _BSD_VA_LIST_); |
void vsyslog(int, const char *, va_list); |
#else |
|
#define syslog(fmt...) |
|
#define vsyslog(fmt,valist) |
|
#endif |
|
__END_DECLS |
__END_DECLS |
|
|
#endif /* !KERNEL */ |
#endif /* !KERNEL */ |