]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man2/syslog.2
pipe.2: Note that 'pipefd' is left unchanged in the event of an error
[thirdparty/man-pages.git] / man2 / syslog.2
index 8946c0e2d2d84fbb90b6d41573b394f650ec7516..99d4ff854f809a012f6a253190b6e061f51abc55 100644 (file)
@@ -30,7 +30,7 @@
 .\" 2008-02-15, Michael Kerrisk <mtk.manpages@gmail.com>
 .\"     Update LOG_BUF_LEN details; update RETURN VALUE section.
 .\"
-.TH SYSLOG 2  2015-05-07 "Linux" "Linux Programmer's Manual"
+.TH SYSLOG 2  2017-09-15 "Linux" "Linux Programmer's Manual"
 .SH NAME
 syslog, klogctl \- read and/or clear kernel message ring buffer;
 set console_loglevel
@@ -40,7 +40,6 @@ set console_loglevel
 .B  "                /* No wrapper provided in glibc */"
 .PP
 /* The glibc interface */
-.br
 .B "#include <sys/klog.h>"
 .PP
 .BI "int klogctl(int " type ", char *" bufp ", int " len );
@@ -54,7 +53,7 @@ which talks to
 see
 .BR syslog (3)
 for details.
-
+.PP
 This page describes the kernel
 .BR syslog ()
 system call, which is used to control the kernel
@@ -158,7 +157,7 @@ to
 See the discussion of
 .IR /proc/sys/kernel/printk ,
 below.
-
+.IP
 The
 .I bufp
 and
@@ -181,7 +180,7 @@ to
 See the discussion of
 .IR /proc/sys/kernel/printk ,
 below.
-
+.IP
 The
 .I bufp
 and
@@ -261,7 +260,7 @@ and to 15 in case
 of a kernel fault (the 10 and 15 are just silly, and equivalent to 8).
 The value of
 .IR console_loglevel
-can be set (to a value in the range 1-8) by a
+can be set (to a value in the range 1\(en8) by a
 .BR syslog ()
 call with a
 .I type
@@ -311,7 +310,7 @@ KERN_NOTICE 5       Normal but significant condition
 KERN_INFO      6       Informational
 KERN_DEBUG     7       Debug-level messages
 .TE
-
+.sp 1
 The kernel
 .IR printk()
 routine will print a message on the
@@ -330,7 +329,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
 In case of error, \-1 is returned,
 and \fIerrno\fP is set to indicate the error.
 .SH ERRORS