diff options
Diffstat (limited to 'man2/syslog.2')
-rw-r--r-- | man2/syslog.2 | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/man2/syslog.2 b/man2/syslog.2 index 4e90778..a799c82 100644 --- a/man2/syslog.2 +++ b/man2/syslog.2 @@ -10,7 +10,7 @@ .\" 2008-02-15, Michael Kerrisk <mtk.manpages@gmail.com> .\" Update LOG_BUF_LEN details; update RETURN VALUE section. .\" -.TH syslog 2 2023-03-30 "Linux man-pages 6.05.01" +.TH syslog 2 2023-10-31 "Linux man-pages 6.7" .SH NAME syslog, klogctl \- read and/or clear kernel message ring buffer; set console_loglevel @@ -22,12 +22,12 @@ Standard C library .BR "#include <sys/klog.h>" " /* Definition of " SYSLOG_* " constants */" .BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */" .B #include <unistd.h> -.PP +.P .BI "int syscall(SYS_syslog, int " type ", char *" bufp ", int " len ); -.PP +.P /* The glibc interface */ .B #include <sys/klog.h> -.PP +.P .BI "int klogctl(int " type ", char *" bufp ", int " len ); .fi .SH DESCRIPTION @@ -39,7 +39,7 @@ which talks to see .BR syslog (3) for details. -.PP +.P This page describes the kernel .BR syslog () system call, which is used to control the kernel @@ -208,7 +208,7 @@ The and .I len arguments are ignored. -.PP +.P All commands except 3 and 10 require privilege. In Linux kernels before Linux 2.6.37, command types 3 and 10 are allowed to unprivileged processes; @@ -300,7 +300,7 @@ T} KERN_INFO 6 Informational KERN_DEBUG 7 Debug-level messages .TE -.sp 1 +.P The kernel .I printk() routine will print a message on the @@ -319,7 +319,7 @@ For \fItype\fP 10, .BR syslog () returns the total size of the kernel log buffer. For other values of \fItype\fP, 0 is returned on success. -.PP +.P In case of error, \-1 is returned, and \fIerrno\fP is set to indicate the error. .SH ERRORS |