summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-tumbleweed/man2/syslog.2
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:51:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:51:52 +0000
commit4ad94864781f48b1a4b77f9cfb934622bf756ba1 (patch)
tree3900955c1886e6d2570fea7125ee1f01bafe876d /upstream/opensuse-tumbleweed/man2/syslog.2
parentAdding upstream version 4.22.0. (diff)
downloadmanpages-l10n-4ad94864781f48b1a4b77f9cfb934622bf756ba1.tar.xz
manpages-l10n-4ad94864781f48b1a4b77f9cfb934622bf756ba1.zip
Adding upstream version 4.23.0.upstream/4.23.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'upstream/opensuse-tumbleweed/man2/syslog.2')
-rw-r--r--upstream/opensuse-tumbleweed/man2/syslog.216
1 files changed, 8 insertions, 8 deletions
diff --git a/upstream/opensuse-tumbleweed/man2/syslog.2 b/upstream/opensuse-tumbleweed/man2/syslog.2
index 4e907781..fe095640 100644
--- a/upstream/opensuse-tumbleweed/man2/syslog.2
+++ b/upstream/opensuse-tumbleweed/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 2024-05-02 "Linux man-pages (unreleased)"
.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