mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-29 13:26:45 -04:00
unix: add Klogset and related SYSLOG_ACTION_ constants
Adds a new function: Klogset which wraps sys_syslog for cases where the `bufp` argument is not required and the argument that follows needs to be passed to the function. Fixes golang/go#34672 Change-Id: Idf026791ea9265aaca33e78a34fcd490edb8d326 Reviewed-on: https://go-review.googlesource.com/c/sys/+/199278 Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
committed by
Tobias Klauser
parent
c178f38b41
commit
aed5e4c7ec
@@ -2062,3 +2062,17 @@ const (
|
||||
TIPC_CLUSTER_SCOPE = C.TIPC_CLUSTER_SCOPE
|
||||
TIPC_NODE_SCOPE = C.TIPC_NODE_SCOPE
|
||||
)
|
||||
|
||||
const (
|
||||
SYSLOG_ACTION_CLOSE = 0
|
||||
SYSLOG_ACTION_OPEN = 1
|
||||
SYSLOG_ACTION_READ = 2
|
||||
SYSLOG_ACTION_READ_ALL = 3
|
||||
SYSLOG_ACTION_READ_CLEAR = 4
|
||||
SYSLOG_ACTION_CLEAR = 5
|
||||
SYSLOG_ACTION_CONSOLE_OFF = 6
|
||||
SYSLOG_ACTION_CONSOLE_ON = 7
|
||||
SYSLOG_ACTION_CONSOLE_LEVEL = 8
|
||||
SYSLOG_ACTION_SIZE_UNREAD = 9
|
||||
SYSLOG_ACTION_SIZE_BUFFER = 10
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user