projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix failure of pthread_setschedparam to pass correct param to kernel
[musl]
/
include
/
syslog.h
diff --git
a/include/syslog.h
b/include/syslog.h
index
d7668d3
..
a9468d4
100644
(file)
--- a/
include/syslog.h
+++ b/
include/syslog.h
@@
-1,10
+1,12
@@
-#ifndef _SYS
_SYS
LOG_H
-#define _SYS
_SYS
LOG_H
+#ifndef _SYSLOG_H
+#define _SYSLOG_H
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif
+#include <features.h>
+
#define LOG_EMERG 0
#define LOG_ALERT 1
#define LOG_CRIT 2
#define LOG_EMERG 0
#define LOG_ALERT 1
#define LOG_CRIT 2
@@
-59,11
+61,12
@@
void openlog (const char *, int, int);
int setlogmask (int);
void syslog (int, const char *, ...);
int setlogmask (int);
void syslog (int, const char *, ...);
-#if defined(_GNU_SOURCE)
-void vsyslog (int, const char *, va_list);
-#if defined(SYSLOG_NAMES)
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+#define _PATH_LOG "/dev/log"
#define __NEED_va_list
#include <bits/alltypes.h>
#define __NEED_va_list
#include <bits/alltypes.h>
+void vsyslog (int, const char *, va_list);
+#if defined(SYSLOG_NAMES)
#define INTERNAL_NOPRI 0x10
#define INTERNAL_MARK (LOG_NFACILITIES<<3)
struct __CODE {
#define INTERNAL_NOPRI 0x10
#define INTERNAL_MARK (LOG_NFACILITIES<<3)
struct __CODE {