aboutsummaryrefslogtreecommitdiffstats
path: root/man2/syslog.2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2008-09-18 12:30:45 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2008-09-18 12:30:45 +0000
commit84db13a46fcc178bfd248ca459f0ce63216908a4 (patch)
tree2d913d6e8789ba130bff08b4adca107e2f2df92a /man2/syslog.2
parente7dfa844ec56a00dc9a1f3e46f308b3d94d9c883 (diff)
downloadman-pages-84db13a46fcc178bfd248ca459f0ce63216908a4.tar.gz
Document ENOSYS error, which can occur if kernel was built
without CONFIG_PRINTK.
Diffstat (limited to 'man2/syslog.2')
-rw-r--r--man2/syslog.29
1 files changed, 8 insertions, 1 deletions
diff --git a/man2/syslog.2 b/man2/syslog.2
index 4e8f48a993..b13e3cd604 100644
--- a/man2/syslog.2
+++ b/man2/syslog.2
@@ -26,7 +26,7 @@
.\" 2008-02-15, Michael Kerrisk <mtk.manpages@gmail.com>
.\" Update LOG_BUF_LEN details; update RETURN VALUE section.
.\"
-.TH SYSLOG 2 2008-02-15 "Linux" "Linux Programmer's Manual"
+.TH SYSLOG 2 2008-06-20 "Linux" "Linux Programmer's Manual"
.SH NAME
syslog, klogctl \- read and/or clear kernel message ring buffer;
set console_loglevel
@@ -235,6 +235,13 @@ capability).
.B ERESTARTSYS
System call was interrupted by a signal; nothing was read.
(This can be seen only during a trace.)
+.TP
+.B ENOSYS
+This
+.BR syslog ()
+system call is not available, because the kernel was compiled with the
+.BR CONFIG_PRINTK
+kernel-configuration option disabled.
.SH "CONFORMING TO"
This system call is Linux-specific and should not be used in programs
intended to be portable.