Implement syslog (#136)

This commit is contained in:
fabriziobertocci 2021-04-01 22:32:39 -04:00 committed by GitHub
parent 83abd68029
commit 6682013d12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 535 additions and 89 deletions

18
libc/sock/syslog.h Normal file
View 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_ */