mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Implement syslog (#136)
This commit is contained in:
parent
83abd68029
commit
6682013d12
50 changed files with 535 additions and 89 deletions
18
libc/sock/syslog.h
Normal file
18
libc/sock/syslog.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SOCK_SYSLOG_H_
|
||||
#define COSMOPOLITAN_LIBC_SOCK_SYSLOG_H_
|
||||
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#define LOG_PRI(p) ((p) & LOG_PRIMASK)
|
||||
|
||||
int setlogmask(int);
|
||||
void openlog(const char *, int, int);
|
||||
void syslog(int, const char *, ...);
|
||||
void closelog(void);
|
||||
void vsyslog(int, const char *, va_list);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_SOCK_SYSLOG_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue