aboutsummaryrefslogtreecommitdiffstats
path: root/sys/openbsd/dev_klog.txt
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@basename.se>2019-06-05 21:38:59 +0200
committerGreg Steuck <blackgnezdo@gmail.com>2019-06-05 19:18:58 -0700
commit73a7d55bdf43a80ff14a024c9e2440b3e0481e30 (patch)
tree9f538cc727a1203d6e6363bf7b1c538872653c89 /sys/openbsd/dev_klog.txt
parent6354390a826632cb9aa5bfebc93f4e30ae1b5a0f (diff)
sys/openbsd: add klog descriptions
Diffstat (limited to 'sys/openbsd/dev_klog.txt')
-rw-r--r--sys/openbsd/dev_klog.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/openbsd/dev_klog.txt b/sys/openbsd/dev_klog.txt
new file mode 100644
index 000000000..962f33266
--- /dev/null
+++ b/sys/openbsd/dev_klog.txt
@@ -0,0 +1,17 @@
+# Copyright 2019 syzkaller project authors. All rights reserved.
+# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+include <sys/ioccom.h>
+include <sys/syslog.h>
+include <sys/types.h>
+include <fcntl.h>
+
+resource fd_klog[fd]
+
+openat$klog(fd const[AT_FDCWD], file ptr[in, string["/dev/klog"]], flags flags[open_flags], mode const[0]) fd_klog
+
+ioctl$LIOCSFD(fd fd_klog, cmd const[LIOCSFD], arg ptr[in, sock])
+
+sendsyslog(msg buffer[in], len len[msg], flags flags[log_flags])
+
+log_flags = LOG_PID, LOG_CONS, LOG_ODELAY, LOG_NDELAY, LOG_NOWAIT, LOG_PERROR