syslog.2: Use syscall(SYS_...); for raw system calls

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-06-12 10:31:30 +02:00 committed by Michael Kerrisk
parent 635975d6c6
commit e5a1738291
1 changed files with 6 additions and 2 deletions

View File

@ -35,10 +35,14 @@ syslog, klogctl \- read and/or clear kernel message ring buffer;
set console_loglevel
.SH SYNOPSIS
.nf
.BI "int syslog(int " type ", char *" bufp ", int " len );
.BR "#include <sys/klog.h>" " /* Definition of " SYSLOG_* " constants */"
.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
.B #include <unistd.h>
.PP
.BI "int syscall(SYS_syslog, int " type ", char *" bufp ", int " len );
.PP
/* The glibc interface */
.B "#include <sys/klog.h>"
.B #include <sys/klog.h>
.PP
.BI "int klogctl(int " type ", char *" bufp ", int " len );
.fi