Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/syslog.h
| Show All 27 Lines | |||||
| * | * | ||||
| * @(#)syslog.h 8.1 (Berkeley) 6/2/93 | * @(#)syslog.h 8.1 (Berkeley) 6/2/93 | ||||
| * $FreeBSD$ | * $FreeBSD$ | ||||
| */ | */ | ||||
| #ifndef _SYS_SYSLOG_H_ | #ifndef _SYS_SYSLOG_H_ | ||||
| #define _SYS_SYSLOG_H_ | #define _SYS_SYSLOG_H_ | ||||
| #if defined(__clang__) | |||||
| #pragma clang diagnostic push | |||||
kib: If there is the push, there must be a pop somewhere. I believe you contaminate the user… | |||||
Not Done Inline ActionsAbsolutely right! I had meant to check this but for some reason the Android headers don't have it I will add them. pfg: Absolutely right! I had meant to check this but for some reason the Android headers don't have… | |||||
| #pragma clang diagnostic ignored "-Wnullability-completeness" | |||||
| #endif | |||||
| #define _PATH_LOG "/var/run/log" | #define _PATH_LOG "/var/run/log" | ||||
| #define _PATH_LOG_PRIV "/var/run/logpriv" | #define _PATH_LOG_PRIV "/var/run/logpriv" | ||||
| #define _PATH_OLDLOG "/dev/log" /* backward compatibility */ | #define _PATH_OLDLOG "/dev/log" /* backward compatibility */ | ||||
| /* | /* | ||||
| * priorities/facilities are encoded into a single 32-bit quantity, where the | * priorities/facilities are encoded into a single 32-bit quantity, where the | ||||
| * bottom 3 bits are the priority (0-7) and the top 28 bits are the facility | * bottom 3 bits are the priority (0-7) and the top 28 bits are the facility | ||||
| * (0-big number). Both the priorities and the facilities map roughly | * (0-big number). Both the priorities and the facilities map roughly | ||||
| ▲ Show 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | |||||
| * for utilities to have to include one of them to include syslog.h, so we get | * for utilities to have to include one of them to include syslog.h, so we get | ||||
| * __va_list from <sys/_types.h> and use it. | * __va_list from <sys/_types.h> and use it. | ||||
| */ | */ | ||||
| #include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
| #include <sys/_types.h> | #include <sys/_types.h> | ||||
| __BEGIN_DECLS | __BEGIN_DECLS | ||||
| void closelog(void); | void closelog(void); | ||||
| void openlog(const char *, int, int); | void openlog(const char * _Nullable, int, int); | ||||
| int setlogmask(int); | int setlogmask(int); | ||||
| void syslog(int, const char *, ...) __printflike(2, 3); | void syslog(int, const char * _Nonnull, ...) __printflike(2, 3); | ||||
| #if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
| void vsyslog(int, const char *, __va_list) __printflike(2, 0); | void vsyslog(int, const char * _Nonnull, __va_list) __printflike(2, 0); | ||||
| #endif | #endif | ||||
| __END_DECLS | __END_DECLS | ||||
| #endif /* !_KERNEL */ | #endif /* !_KERNEL */ | ||||
| #if defined(__clang__) | |||||
| #pragma clang diagnostic pop | |||||
| #endif | #endif | ||||
| #endif /* !_SYS_SYSLOG_H_ */ | |||||
If there is the push, there must be a pop somewhere. I believe you contaminate the user environment right now.