+#: build/C/man2/syslog.2:45
+#, no-wrap
+msgid "B<#include E<lt>sys/klog.hE<gt>>\n"
+msgstr ""
+
+#. type: Plain text
+#: build/C/man2/syslog.2:47
+#, no-wrap
+msgid "B<int klogctl(int >I<type>B<, char *>I<bufp>B<, int >I<len>B<);>\n"
+msgstr ""
+
+#. type: Plain text
+#: build/C/man2/syslog.2:57
+msgid ""
+"I<Note>: Probably, you are looking for the C library function B<syslog>(), "
+"which talks to B<syslogd>(8); see B<syslog>(3) for details."
+msgstr ""
+
+#. type: Plain text
+#: build/C/man2/syslog.2:64
+msgid ""
+"This page describes the kernel B<syslog>() system call, which is used to "
+"control the kernel I<printk>() buffer; the glibc wrapper function for the "
+"system call is called B<klogctl>()."
+msgstr ""
+
+#. type: SS
+#: build/C/man2/syslog.2:64
+#, no-wrap
+msgid "The kernel log buffer"
+msgstr ""
+
+#. Under "General setup" ==> "Kernel log buffer size"
+#. For 2.6, precisely the option seems to have appeared in 2.5.55.
+#. type: Plain text
+#: build/C/man2/syslog.2:81
+msgid ""
+"The kernel has a cyclic buffer of length B<LOG_BUF_LEN> in which messages "
+"given as arguments to the kernel function B<printk>() are stored "
+"(regardless of their log level). In early kernels, B<LOG_BUF_LEN> had the "
+"value 4096; from kernel 1.3.54, it was 8192; from kernel 2.1.113, it was "
+"16384; since kernel 2.4.23/2.6, the value is a kernel configuration option "
+"(B<CONFIG_LOG_BUF_SHIFT>, default value dependent on the architecture). "
+"Since Linux 2.6.6, the size can be queried with command type 10 (see below)."
+msgstr ""
+
+#. type: SS
+#: build/C/man2/syslog.2:81
+#, no-wrap
+msgid "Commands"
+msgstr ""
+
+#. type: Plain text
+#: build/C/man2/syslog.2:88
+msgid ""
+"The I<type> argument determines the action taken by this function. The list "
+"below specifies the values for I<type>. The symbolic names are defined in "
+"the kernel source, but are not exported to user space; you will either need "
+"to use the numbers, or define the names yourself."
+msgstr ""
+
+#. type: TP
+#: build/C/man2/syslog.2:88
+#, no-wrap
+msgid "B<SYSLOG_ACTION_CLOSE> (0)"
+msgstr ""
+
+#. type: Plain text
+#: build/C/man2/syslog.2:92
+msgid "Close the log. Currently a NOP."
+msgstr ""
+
+#. type: TP
+#: build/C/man2/syslog.2:92
+#, no-wrap
+msgid "B<SYSLOG_ACTION_OPEN> (1)"
+msgstr ""
+
+#. type: Plain text
+#: build/C/man2/syslog.2:96
+msgid "Open the log. Currently a NOP."
+msgstr ""
+
+#. type: TP
+#: build/C/man2/syslog.2:96
+#, no-wrap
+msgid "B<SYSLOG_ACTION_READ> (2)"
+msgstr ""
+
+#. type: Plain text
+#: build/C/man2/syslog.2:108
+msgid ""
+"Read from the log. The call waits until the kernel log buffer is nonempty, "
+"and then reads at most I<len> bytes into the buffer pointed to by I<bufp>. "
+"The call returns the number of bytes read. Bytes read from the log "
+"disappear from the log buffer: the information can be read only once. This "
+"is the function executed by the kernel when a user program reads "
+"I</proc/kmsg>."
+msgstr ""
+
+#. type: TP
+#: build/C/man2/syslog.2:108
+#, no-wrap
+msgid "B<SYSLOG_ACTION_READ_ALL> (3)"
+msgstr ""
+
+#. type: Plain text
+#: build/C/man2/syslog.2:118
+msgid ""
+"Read all messages remaining in the ring buffer, placing them in the buffer "
+"pointed to by I<bufp>. The call reads the last I<len> bytes from the log "
+"buffer (nondestructively), but will not read more than was written into the "
+"buffer since the last \"clear ring buffer\" command (see command 5 below)). "
+"The call returns the number of bytes read."
+msgstr ""
+
+#. type: TP
+#: build/C/man2/syslog.2:118
+#, no-wrap
+msgid "B<SYSLOG_ACTION_READ_CLEAR> (4)"
+msgstr ""
+
+#. type: Plain text
+#: build/C/man2/syslog.2:124
+msgid ""
+"Read and clear all messages remaining in the ring buffer. The call does "
+"precisely the same as for a I<type> of 3, but also executes the \"clear ring "
+"buffer\" command."
+msgstr ""
+
+#. type: TP
+#: build/C/man2/syslog.2:124
+#, no-wrap
+msgid "B<SYSLOG_ACTION_CLEAR> (5)"
+msgstr ""
+
+#. type: Plain text
+#: build/C/man2/syslog.2:132
+msgid ""
+"The call executes just the \"clear ring buffer\" command. The I<bufp> and "
+"I<len> arguments are ignored."
+msgstr ""
+
+#. type: Plain text
+#: build/C/man2/syslog.2:143
+msgid ""
+"This command does not really clear the ring buffer. Rather, it sets a "
+"kernel bookkeeping variable that determines the results returned by commands "
+"3 (B<SYSLOG_ACTION_READ_ALL>) and 4 (B<SYSLOG_ACTION_READ_CLEAR>). This "
+"command has no effect on commands 2 (B<SYSLOG_ACTION_READ>) and 9 "
+"(B<SYSLOG_ACTION_SIZE_UNREAD>)."
+msgstr ""
+
+#. type: TP
+#: build/C/man2/syslog.2:143
+#, no-wrap
+msgid "B<SYSLOG_ACTION_CONSOLE_OFF> (6)"
+msgstr ""
+
+#. commit 1aaad49e856ce41adc07d8ae0c8ef35fc4483245
+#. type: Plain text
+#: build/C/man2/syslog.2:161
+msgid ""
+"The command saves the current value of I<console_loglevel> and then sets "
+"I<console_loglevel> to I<minimum_console_loglevel>, so that no messages are "
+"printed to the console. Before Linux 2.6.32, the command simply sets "
+"I<console_loglevel> to I<minimum_console_loglevel>. See the discussion of "
+"I</proc/sys/kernel/printk>, below."
+msgstr ""
+
+#. type: Plain text
+#: build/C/man2/syslog.2:167 build/C/man2/syslog.2:190
+msgid "The I<bufp> and I<len> arguments are ignored."
+msgstr ""
+
+#. type: TP
+#: build/C/man2/syslog.2:167