llvm-c166/libc/include/syslog.yaml
Alexey Samsonov 3d6b79fc05
[libc] Create syslog.h header and add several symbolic constants. (#216776)
Add the `<syslog.h>` public header. For now, just define the constants
used for options/priority for `openlog` and for severity in `syslog`
functions, but don't implement the functions yet (some client code uses
these constants in a different, application-specific context, without
relying on OS-level syslog facilities).

Since the values of all `LOG_` macros are identical across POSIX
systems, we can define them in a shared llvm-libc-macros/syslog-macros.h
file instead of using OS-specific ones.

Assisted by Gemini, human-reviewed.
2026-08-18 11:35:38 -07:00

68 lines
1.8 KiB
YAML

header: syslog.h
standards:
- posix
macros:
- macro_name: LOG_PID
macro_header: syslog-macros.h
- macro_name: LOG_CONS
macro_header: syslog-macros.h
- macro_name: LOG_NDELAY
macro_header: syslog-macros.h
- macro_name: LOG_ODELAY
macro_header: syslog-macros.h
- macro_name: LOG_NOWAIT
macro_header: syslog-macros.h
- macro_name: LOG_KERN
macro_header: syslog-macros.h
- macro_name: LOG_USER
macro_header: syslog-macros.h
- macro_name: LOG_MAIL
macro_header: syslog-macros.h
- macro_name: LOG_NEWS
macro_header: syslog-macros.h
- macro_name: LOG_UUCP
macro_header: syslog-macros.h
- macro_name: LOG_DAEMON
macro_header: syslog-macros.h
- macro_name: LOG_AUTH
macro_header: syslog-macros.h
- macro_name: LOG_CRON
macro_header: syslog-macros.h
- macro_name: LOG_LPR
macro_header: syslog-macros.h
- macro_name: LOG_LOCAL0
macro_header: syslog-macros.h
- macro_name: LOG_LOCAL1
macro_header: syslog-macros.h
- macro_name: LOG_LOCAL2
macro_header: syslog-macros.h
- macro_name: LOG_LOCAL3
macro_header: syslog-macros.h
- macro_name: LOG_LOCAL4
macro_header: syslog-macros.h
- macro_name: LOG_LOCAL5
macro_header: syslog-macros.h
- macro_name: LOG_LOCAL6
macro_header: syslog-macros.h
- macro_name: LOG_LOCAL7
macro_header: syslog-macros.h
- macro_name: LOG_EMERG
macro_header: syslog-macros.h
- macro_name: LOG_ALERT
macro_header: syslog-macros.h
- macro_name: LOG_CRIT
macro_header: syslog-macros.h
- macro_name: LOG_ERR
macro_header: syslog-macros.h
- macro_name: LOG_WARNING
macro_header: syslog-macros.h
- macro_name: LOG_NOTICE
macro_header: syslog-macros.h
- macro_name: LOG_INFO
macro_header: syslog-macros.h
- macro_name: LOG_DEBUG
macro_header: syslog-macros.h
types: []
enums: []
objects: []
functions: []