Debian Codegraph @

templates/man2/syslog.2.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "syslog"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid ""
50 "syslog, klogctl - read and/or clear kernel message ring buffer; set "
51 "console_loglevel"
52 msgstr ""
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr ""
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr ""
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr ""
73
74 #. type: Plain text
75 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
76 #: opensuse-tumbleweed
77 #, no-wrap
78 msgid ""
79 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
80 "B<#include E<lt>unistd.hE<gt>>\n"
81 msgstr ""
82
83 #. type: Plain text
84 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
85 #: opensuse-leap-16-1 opensuse-tumbleweed
86 #, no-wrap
87 msgid "B<int syscall(SYS_syslog, int >I<type>B<, char *>I<bufp>B<, int >I<size>B<);>\n"
88 msgstr ""
89
90 #. type: Plain text
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid ""
95 "/* The glibc interface */\n"
96 "B<#include E<lt>sys/klog.hE<gt>>\n"
97 msgstr ""
98
99 #. type: Plain text
100 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
101 #: opensuse-leap-16-1 opensuse-tumbleweed
102 #, no-wrap
103 msgid "B<int klogctl(int >I<type>B<, char *>I<bufp>B<, int >I<size>B<);>\n"
104 msgstr ""
105
106 #. type: SH
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, no-wrap
110 msgid "DESCRIPTION"
111 msgstr ""
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 msgid ""
117 "I<Note>: Probably, you are looking for the C library function B<syslog>(), "
118 "which talks to B<syslogd>(8); see B<syslog>(3) for details."
119 msgstr ""
120
121 #. type: Plain text
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 msgid ""
125 "This page describes the kernel B<syslog>() system call, which is used to "
126 "control the kernel I<printk>() buffer; the glibc wrapper function for the "
127 "system call is called B<klogctl>()."
128 msgstr ""
129
130 #. type: SS
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 #, no-wrap
134 msgid "The kernel log buffer"
135 msgstr ""
136
137 #. Under "General setup" ==> "Kernel log buffer size"
138 #. For Linux 2.6, precisely the option seems to have appeared in Linux 2.5.55.
139 #. type: Plain text
140 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
141 #: opensuse-leap-16-1 opensuse-tumbleweed
142 msgid ""
143 "The kernel has a cyclic buffer of size B<LOG_BUF_LEN> in which messages "
144 "given as arguments to the kernel function B<printk>() are stored "
145 "(regardless of their log level). In early kernels, B<LOG_BUF_LEN> had the "
146 "value 4096; from Linux 1.3.54, it was 8192; from Linux 2.1.113, it was "
147 "16384; since Linux 2.4.23/2.6, the value is a kernel configuration option "
148 "(B<CONFIG_LOG_BUF_SHIFT>, default value dependent on the architecture). "
149 "Since Linux 2.6.6, the size can be queried with command type 10 (see below)."
150 msgstr ""
151
152 #. type: SS
153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
155 #, no-wrap
156 msgid "Commands"
157 msgstr ""
158
159 #. type: Plain text
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 msgid ""
163 "The I<type> argument determines the action taken by this function. The list "
164 "below specifies the values for I<type>. The symbolic names are defined in "
165 "the kernel source, but are not exported to user space; you will either need "
166 "to use the numbers, or define the names yourself."
167 msgstr ""
168
169 #. type: TP
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 #, no-wrap
173 msgid "B<SYSLOG_ACTION_CLOSE> (0)"
174 msgstr ""
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid "Close the log. Currently a NOP."
180 msgstr ""
181
182 #. type: TP
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 #, no-wrap
186 msgid "B<SYSLOG_ACTION_OPEN> (1)"
187 msgstr ""
188
189 #. type: Plain text
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 msgid "Open the log. Currently a NOP."
193 msgstr ""
194
195 #. type: TP
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 #, no-wrap
199 msgid "B<SYSLOG_ACTION_READ> (2)"
200 msgstr ""
201
202 #. type: Plain text
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 msgid ""
206 "Read from the log. The call waits until the kernel log buffer is nonempty, "
207 "and then reads at most I<len> bytes into the buffer pointed to by I<bufp>. "
208 "The call returns the number of bytes read. Bytes read from the log "
209 "disappear from the log buffer: the information can be read only once. This "
210 "is the function executed by the kernel when a user program reads I</proc/"
211 "kmsg>."
212 msgstr ""
213
214 #. type: TP
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 #, no-wrap
218 msgid "B<SYSLOG_ACTION_READ_ALL> (3)"
219 msgstr ""
220
221 #. type: Plain text
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 msgid ""
225 "Read all messages remaining in the ring buffer, placing them in the buffer "
226 "pointed to by I<bufp>. The call reads the last I<len> bytes from the log "
227 "buffer (nondestructively), but will not read more than was written into the "
228 "buffer since the last \"clear ring buffer\" command (see command 5 below)). "
229 "The call returns the number of bytes read."
230 msgstr ""
231
232 #. type: TP
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 #, no-wrap
236 msgid "B<SYSLOG_ACTION_READ_CLEAR> (4)"
237 msgstr ""
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 msgid ""
243 "Read and clear all messages remaining in the ring buffer. The call does "
244 "precisely the same as for a I<type> of 3, but also executes the \"clear ring "
245 "buffer\" command."
246 msgstr ""
247
248 #. type: TP
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 #, no-wrap
252 msgid "B<SYSLOG_ACTION_CLEAR> (5)"
253 msgstr ""
254
255 #. type: Plain text
256 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
257 #: opensuse-leap-16-1 opensuse-tumbleweed
258 msgid ""
259 "The call executes just the \"clear ring buffer\" command. The I<bufp> and "
260 "I<size> arguments are ignored."
261 msgstr ""
262
263 #. type: Plain text
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 msgid ""
267 "This command does not really clear the ring buffer. Rather, it sets a "
268 "kernel bookkeeping variable that determines the results returned by commands "
269 "3 (B<SYSLOG_ACTION_READ_ALL>) and 4 (B<SYSLOG_ACTION_READ_CLEAR>). This "
270 "command has no effect on commands 2 (B<SYSLOG_ACTION_READ>) and 9 "
271 "(B<SYSLOG_ACTION_SIZE_UNREAD>)."
272 msgstr ""
273
274 #. type: TP
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 #, no-wrap
278 msgid "B<SYSLOG_ACTION_CONSOLE_OFF> (6)"
279 msgstr ""
280
281 #. commit 1aaad49e856ce41adc07d8ae0c8ef35fc4483245
282 #. type: Plain text
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 msgid ""
286 "The command saves the current value of I<console_loglevel> and then sets "
287 "I<console_loglevel> to I<minimum_console_loglevel>, so that no messages are "
288 "printed to the console. Before Linux 2.6.32, the command simply sets "
289 "I<console_loglevel> to I<minimum_console_loglevel>. See the discussion of "
290 "I</proc/sys/kernel/printk>, below."
291 msgstr ""
292
293 #. type: Plain text
294 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
295 #: opensuse-leap-16-1 opensuse-tumbleweed
296 msgid "The I<bufp> and I<size> arguments are ignored."
297 msgstr ""
298
299 #. type: TP
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 #, no-wrap
303 msgid "B<SYSLOG_ACTION_CONSOLE_ON> (7)"
304 msgstr ""
305
306 #. commit 1aaad49e856ce41adc07d8ae0c8ef35fc4483245
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 msgid ""
311 "If a previous B<SYSLOG_ACTION_CONSOLE_OFF> command has been performed, this "
312 "command restores I<console_loglevel> to the value that was saved by that "
313 "command. Before Linux 2.6.32, this command simply sets I<console_loglevel> "
314 "to I<default_console_loglevel>. See the discussion of I</proc/sys/kernel/"
315 "printk>, below."
316 msgstr ""
317
318 #. type: TP
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 #, no-wrap
322 msgid "B<SYSLOG_ACTION_CONSOLE_LEVEL> (8)"
323 msgstr ""
324
325 #. type: Plain text
326 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
327 #: opensuse-leap-16-1 opensuse-tumbleweed
328 msgid ""
329 "The call sets I<console_loglevel> to the value given in I<size>, which must "
330 "be an integer between 1 and 8 (inclusive). The kernel silently enforces a "
331 "minimum value of I<minimum_console_loglevel> for I<size>. See the I<log "
332 "level> section for details. The I<bufp> argument is ignored."
333 msgstr ""
334
335 #. type: TP
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 #, no-wrap
339 msgid "B<SYSLOG_ACTION_SIZE_UNREAD> (9) (since Linux 2.4.10)"
340 msgstr ""
341
342 #. type: Plain text
343 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
344 #: opensuse-leap-16-1 opensuse-tumbleweed
345 msgid ""
346 "The call returns the number of bytes currently available to be read from the "
347 "kernel log buffer via command 2 (B<SYSLOG_ACTION_READ>). The I<bufp> and "
348 "I<size> arguments are ignored."
349 msgstr ""
350
351 #. type: TP
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 #, no-wrap
355 msgid "B<SYSLOG_ACTION_SIZE_BUFFER> (10) (since Linux 2.6.6)"
356 msgstr ""
357
358 #. type: Plain text
359 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
360 #: opensuse-leap-16-1 opensuse-tumbleweed
361 msgid ""
362 "This command returns the total size of the kernel log buffer. The I<bufp> "
363 "and I<size> arguments are ignored."
364 msgstr ""
365
366 #. type: Plain text
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 msgid ""
370 "All commands except 3 and 10 require privilege. In Linux kernels before "
371 "Linux 2.6.37, command types 3 and 10 are allowed to unprivileged processes; "
372 "since Linux 2.6.37, these commands are allowed to unprivileged processes "
373 "only if I</proc/sys/kernel/dmesg_restrict> has the value 0. Before Linux "
374 "2.6.37, \"privileged\" means that the caller has the B<CAP_SYS_ADMIN> "
375 "capability. Since Linux 2.6.37, \"privileged\" means that the caller has "
376 "either the B<CAP_SYS_ADMIN> capability (now deprecated for this purpose) or "
377 "the (new) B<CAP_SYSLOG> capability."
378 msgstr ""
379
380 #. type: SS
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 #, no-wrap
384 msgid "/proc/sys/kernel/printk"
385 msgstr ""
386
387 #. type: Plain text
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 msgid ""
391 "I</proc/sys/kernel/printk> is a writable file containing four integer values "
392 "that influence kernel I<printk()> behavior when printing or logging error "
393 "messages. The four values are:"
394 msgstr ""
395
396 #. type: TP
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "I<console_loglevel>"
401 msgstr ""
402
403 #. since Linux 2.4
404 #. type: Plain text
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 msgid ""
408 "Only messages with a log level lower than this value will be printed to the "
409 "console. The default value for this field is B<DEFAULT_CONSOLE_LOGLEVEL> "
410 "(7), but it is set to 4 if the kernel command line contains the word "
411 "\"quiet\", 10 if the kernel command line contains the word \"debug\", and to "
412 "15 in case of a kernel fault (the 10 and 15 are just silly, and equivalent "
413 "to 8). The value of I<console_loglevel> can be set (to a value in the range "
414 "1\\[en]8) by a B<syslog>() call with a I<type> of 8."
415 msgstr ""
416
417 #. type: TP
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 #, no-wrap
421 msgid "I<default_message_loglevel>"
422 msgstr ""
423
424 #. commit 5af5bcb8d37f99ba415a1adc6da71051b84f93a5
425 #. type: Plain text
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 msgid ""
429 "This value will be used as the log level for I<printk()> messages that do "
430 "not have an explicit level. Up to and including Linux 2.6.38, the hard-"
431 "coded default value for this field was 4 (B<KERN_WARNING>); since Linux "
432 "2.6.39, the default value is defined by the kernel configuration option "
433 "B<CONFIG_DEFAULT_MESSAGE_LOGLEVEL>, which defaults to 4."
434 msgstr ""
435
436 #. type: TP
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 #, no-wrap
440 msgid "I<minimum_console_loglevel>"
441 msgstr ""
442
443 #. type: Plain text
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 msgid ""
447 "The value in this field is the minimum value to which I<console_loglevel> "
448 "can be set."
449 msgstr ""
450
451 #. type: TP
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 #, no-wrap
455 msgid "I<default_console_loglevel>"
456 msgstr ""
457
458 #. type: Plain text
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 msgid "This is the default value for I<console_loglevel>."
462 msgstr ""
463
464 #. type: SS
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 #, no-wrap
468 msgid "The log level"
469 msgstr ""
470
471 #. type: Plain text
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 msgid ""
475 "Every I<printk>() message has its own log level. If the log level is not "
476 "explicitly specified as part of the message, it defaults to "
477 "I<default_message_loglevel>. The conventional meaning of the log level is "
478 "as follows:"
479 msgstr ""
480
481 #. type: tbl table
482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
484 #, no-wrap
485 msgid "Kernel constant"
486 msgstr ""
487
488 #. type: tbl table
489 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
490 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
491 #, no-wrap
492 msgid "Level value"
493 msgstr ""
494
495 #. type: tbl table
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 #, no-wrap
499 msgid "Meaning"
500 msgstr ""
501
502 #. type: tbl table
503 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
504 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
505 #, no-wrap
506 msgid "KERN_EMERG"
507 msgstr ""
508
509 #. type: tbl table
510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
512 #, no-wrap
513 msgid "0"
514 msgstr ""
515
516 #. type: tbl table
517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
519 #, no-wrap
520 msgid "System is unusable"
521 msgstr ""
522
523 #. type: tbl table
524 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
525 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
526 #, no-wrap
527 msgid "KERN_ALERT"
528 msgstr ""
529
530 #. type: tbl table
531 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
532 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
533 #, no-wrap
534 msgid "1"
535 msgstr ""
536
537 #. type: tbl table
538 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
539 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
540 #, no-wrap
541 msgid "Action must be taken immediately"
542 msgstr ""
543
544 #. type: tbl table
545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
547 #, no-wrap
548 msgid "KERN_CRIT"
549 msgstr ""
550
551 #. type: tbl table
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 #, no-wrap
555 msgid "2"
556 msgstr ""
557
558 #. type: tbl table
559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
561 #, no-wrap
562 msgid "Critical conditions"
563 msgstr ""
564
565 #. type: tbl table
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 #, no-wrap
569 msgid "KERN_ERR"
570 msgstr ""
571
572 #. type: tbl table
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 #, no-wrap
576 msgid "3"
577 msgstr ""
578
579 #. type: tbl table
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 #, no-wrap
583 msgid "Error conditions"
584 msgstr ""
585
586 #. type: tbl table
587 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
588 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
589 #, no-wrap
590 msgid "KERN_WARNING"
591 msgstr ""
592
593 #. type: tbl table
594 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
595 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
596 #, no-wrap
597 msgid "4"
598 msgstr ""
599
600 #. type: tbl table
601 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
602 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
603 #, no-wrap
604 msgid "Warning conditions"
605 msgstr ""
606
607 #. type: tbl table
608 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
609 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
610 #, no-wrap
611 msgid "KERN_NOTICE"
612 msgstr ""
613
614 #. type: tbl table
615 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
616 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
617 #, no-wrap
618 msgid "5"
619 msgstr ""
620
621 #. type: tbl table
622 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
623 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
624 #, no-wrap
625 msgid "Normal but significant condition"
626 msgstr ""
627
628 #. type: tbl table
629 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
630 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
631 #, no-wrap
632 msgid "KERN_INFO"
633 msgstr ""
634
635 #. type: tbl table
636 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
637 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
638 #, no-wrap
639 msgid "6"
640 msgstr ""
641
642 #. type: tbl table
643 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
644 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
645 #, no-wrap
646 msgid "Informational"
647 msgstr ""
648
649 #. type: tbl table
650 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
651 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
652 #, no-wrap
653 msgid "KERN_DEBUG"
654 msgstr ""
655
656 #. type: tbl table
657 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
658 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
659 #, no-wrap
660 msgid "7"
661 msgstr ""
662
663 #. type: tbl table
664 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
665 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
666 #, no-wrap
667 msgid "Debug-level messages"
668 msgstr ""
669
670 #. type: Plain text
671 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
672 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
673 msgid ""
674 "The kernel I<printk()> routine will print a message on the console only if "
675 "it has a log level less than the value of I<console_loglevel>."
676 msgstr ""
677
678 #. type: SH
679 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
680 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
681 #, no-wrap
682 msgid "RETURN VALUE"
683 msgstr ""
684
685 #. type: Plain text
686 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
687 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
688 msgid ""
689 "For I<type> equal to 2, 3, or 4, a successful call to B<syslog>() returns "
690 "the number of bytes read. For I<type> 9, B<syslog>() returns the number of "
691 "bytes currently available to be read on the kernel log buffer. For I<type> "
692 "10, B<syslog>() returns the total size of the kernel log buffer. For other "
693 "values of I<type>, 0 is returned on success."
694 msgstr ""
695
696 #. type: Plain text
697 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
698 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
699 msgid ""
700 "In case of error, -1 is returned, and I<errno> is set to indicate the error."
701 msgstr ""
702
703 #. type: SH
704 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
705 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
706 #, no-wrap
707 msgid "ERRORS"
708 msgstr ""
709
710 #. type: TP
711 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
712 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
713 #, no-wrap
714 msgid "B<EINVAL>"
715 msgstr ""
716
717 #. type: Plain text
718 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
719 #: opensuse-leap-16-1 opensuse-tumbleweed
720 msgid ""
721 "Bad arguments (e.g., bad I<type>; or for I<type> 2, 3, or 4, I<buf> is NULL, "
722 "or I<size> is less than zero; or for I<type> 8, the I<level> is outside the "
723 "range 1 to 8)."
724 msgstr ""
725
726 #. type: TP
727 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
728 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
729 #, no-wrap
730 msgid "B<ENOSYS>"
731 msgstr ""
732
733 #. type: Plain text
734 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
735 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
736 msgid ""
737 "This B<syslog>() system call is not available, because the kernel was "
738 "compiled with the B<CONFIG_PRINTK> kernel-configuration option disabled."
739 msgstr ""
740
741 #. type: TP
742 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
743 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
744 #, no-wrap
745 msgid "B<EPERM>"
746 msgstr ""
747
748 #. type: Plain text
749 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
750 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
751 msgid ""
752 "An attempt was made to change I<console_loglevel> or clear the kernel "
753 "message ring buffer by a process without sufficient privilege (more "
754 "precisely: without the B<CAP_SYS_ADMIN> or B<CAP_SYSLOG> capability)."
755 msgstr ""
756
757 #. type: TP
758 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
759 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
760 #, no-wrap
761 msgid "B<ERESTARTSYS>"
762 msgstr ""
763
764 #. type: Plain text
765 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
766 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
767 msgid ""
768 "System call was interrupted by a signal; nothing was read. (This can be "
769 "seen only during a trace.)"
770 msgstr ""
771
772 #. type: SH
773 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
774 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
775 #, no-wrap
776 msgid "STANDARDS"
777 msgstr ""
778
779 #. type: Plain text
780 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
781 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
782 msgid "Linux."
783 msgstr ""
784
785 #. type: SH
786 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
787 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
788 #, no-wrap
789 msgid "HISTORY"
790 msgstr ""
791
792 #. In libc4 and libc5 the number of this call was defined by
793 #. .BR SYS_klog .
794 #. In glibc 2.0 the syscall is baptized
795 #. .BR klogctl ().
796 #. type: Plain text
797 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
798 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
799 msgid ""
800 "From the very start, people noted that it is unfortunate that a system call "
801 "and a library routine of the same name are entirely different animals."
802 msgstr ""
803
804 #. type: SH
805 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
806 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
807 #, no-wrap
808 msgid "SEE ALSO"
809 msgstr ""
810
811 #. type: Plain text
812 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
813 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
814 msgid "B<dmesg>(1), B<syslog>(3), B<capabilities>(7)"
815 msgstr ""
816
817 #. type: TH
818 #: debian-trixie
819 #, no-wrap
820 msgid "2024-05-02"
821 msgstr ""
822
823 #. type: TH
824 #: debian-trixie
825 #, no-wrap
826 msgid "Linux man-pages 6.9.1"
827 msgstr ""
828
829 #. type: Plain text
830 #: debian-trixie
831 msgid "Standard C library (I<libc>, I<-lc>)"
832 msgstr ""
833
834 #. type: Plain text
835 #: debian-trixie fedora-44 fedora-rawhide
836 #, no-wrap
837 msgid ""
838 "B<#include E<lt>sys/klog.hE<gt>> /* Definition of B<SYSLOG_*> constants */\n"
839 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
840 "B<#include E<lt>unistd.hE<gt>>\n"
841 msgstr ""
842
843 #. type: Plain text
844 #: debian-trixie
845 #, no-wrap
846 msgid "B<int syscall(SYS_syslog, int >I<type>B<, char *>I<bufp>B<, int >I<len>B<);>\n"
847 msgstr ""
848
849 #. type: Plain text
850 #: debian-trixie
851 #, no-wrap
852 msgid "B<int klogctl(int >I<type>B<, char *>I<bufp>B<, int >I<len>B<);>\n"
853 msgstr ""
854
855 #. Under "General setup" ==> "Kernel log buffer size"
856 #. For Linux 2.6, precisely the option seems to have appeared in Linux 2.5.55.
857 #. type: Plain text
858 #: debian-trixie
859 msgid ""
860 "The kernel has a cyclic buffer of length B<LOG_BUF_LEN> in which messages "
861 "given as arguments to the kernel function B<printk>() are stored "
862 "(regardless of their log level). In early kernels, B<LOG_BUF_LEN> had the "
863 "value 4096; from Linux 1.3.54, it was 8192; from Linux 2.1.113, it was "
864 "16384; since Linux 2.4.23/2.6, the value is a kernel configuration option "
865 "(B<CONFIG_LOG_BUF_SHIFT>, default value dependent on the architecture). "
866 "Since Linux 2.6.6, the size can be queried with command type 10 (see below)."
867 msgstr ""
868
869 #. type: Plain text
870 #: debian-trixie
871 msgid ""
872 "The call executes just the \"clear ring buffer\" command. The I<bufp> and "
873 "I<len> arguments are ignored."
874 msgstr ""
875
876 #. type: Plain text
877 #: debian-trixie
878 msgid "The I<bufp> and I<len> arguments are ignored."
879 msgstr ""
880
881 #. type: Plain text
882 #: debian-trixie
883 msgid ""
884 "The call sets I<console_loglevel> to the value given in I<len>, which must "
885 "be an integer between 1 and 8 (inclusive). The kernel silently enforces a "
886 "minimum value of I<minimum_console_loglevel> for I<len>. See the I<log "
887 "level> section for details. The I<bufp> argument is ignored."
888 msgstr ""
889
890 #. type: Plain text
891 #: debian-trixie
892 msgid ""
893 "The call returns the number of bytes currently available to be read from the "
894 "kernel log buffer via command 2 (B<SYSLOG_ACTION_READ>). The I<bufp> and "
895 "I<len> arguments are ignored."
896 msgstr ""
897
898 #. type: Plain text
899 #: debian-trixie
900 msgid ""
901 "This command returns the total size of the kernel log buffer. The I<bufp> "
902 "and I<len> arguments are ignored."
903 msgstr ""
904
905 #. type: Plain text
906 #: debian-trixie
907 msgid ""
908 "Bad arguments (e.g., bad I<type>; or for I<type> 2, 3, or 4, I<buf> is NULL, "
909 "or I<len> is less than zero; or for I<type> 8, the I<level> is outside the "
910 "range 1 to 8)."
911 msgstr ""
912
913 #. type: TH
914 #: fedora-44 fedora-rawhide
915 #, no-wrap
916 msgid "2024-11-17"
917 msgstr ""
918
919 #. type: TH
920 #: fedora-44 fedora-rawhide
921 #, no-wrap
922 msgid "Linux man-pages 6.13"
923 msgstr ""
924
925 #. type: TH
926 #: mageia-cauldron
927 #, no-wrap
928 msgid "Linux man-pages 6.17"
929 msgstr ""
930
931 #. type: TH
932 #: opensuse-leap-16-1 opensuse-tumbleweed
933 #, no-wrap
934 msgid "Linux man-pages (unreleased)"
935 msgstr ""