]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
syslog.2: Use syscall(SYS_...); for raw system calls
authorAlejandro Colomar <alx.manpages@gmail.com>
Sat, 12 Jun 2021 08:31:30 +0000 (10:31 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 20 Jun 2021 02:43:43 +0000 (14:43 +1200)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/syslog.2

index b3b2051729c5c0aa26e1f8d90d8e3a9d14b153aa..46928df496d57f3373cf840490eeaf269a1f733d 100644 (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