github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/openbsd/dev_klog.txt (about) 1 # Copyright 2019 syzkaller project authors. All rights reserved. 2 # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 3 4 include <sys/ioccom.h> 5 include <sys/syslog.h> 6 include <sys/types.h> 7 include <fcntl.h> 8 9 resource fd_klog[fd] 10 11 openat$klog(fd const[AT_FDCWD], file ptr[in, string["/dev/klog"]], flags flags[open_flags], mode const[0]) fd_klog 12 13 ioctl$LIOCSFD(fd fd_klog, cmd const[LIOCSFD], arg ptr[in, sock]) 14 15 sendsyslog(msg buffer[in], len len[msg], flags flags[log_flags]) 16 17 log_flags = LOG_PID, LOG_CONS, LOG_ODELAY, LOG_NDELAY, LOG_NOWAIT, LOG_PERROR