Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/syslog.h
Show All 28 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_ | ||||
#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" | ||||
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… | |||||
#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 | ||||
* one-to-one to strings in the syslogd(8) source code. This mapping is | * one-to-one to strings in the syslogd(8) source code. This mapping is | ||||
* included in this file. | * included in this file. | ||||
▲ Show 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
#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 *, int, int); | ||||
int setlogmask(int); | int setlogmask(int); | ||||
void syslog(int, const char *, ...) __printflike(2, 3); | void syslog(int, const char * _Nullable, ...) __printflike(2, 3); | ||||
#if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
void vsyslog(int, const char *, __va_list) __printflike(2, 0); | void vsyslog(int, const char *, __va_list) __printflike(2, 0); | ||||
#endif | #endif | ||||
__END_DECLS | __END_DECLS | ||||
#endif /* !_KERNEL */ | #endif /* !_KERNEL */ | ||||
#endif | #endif |
If there is the push, there must be a pop somewhere. I believe you contaminate the user environment right now.