mirror of https://github.com/mkerrisk/man-pages
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:
parent
635975d6c6
commit
e5a1738291
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue