Skip to contentSkip to conversation

Add the ENOSYS description for syslog(2)

PATCH In review WANG Cong 2 participants 2 messages Jun 19, 2008 – Jun 20, 2008

lore
Share & tools
lore

WANG Cong

author
#0 lore raw

PATCH 1/1 Add the ENOSYS description for syslog(2)

Hi, Michael!

syslog(2) just returns ENOSYS when CONFIG_PRINTK is not enabled. This should be described in man pages, I think.

Patch is below.

Thanks.

---

man2/syslog.2 +6 -0
diff -Nrup man-pages-3.00/man2/syslog.2 man-pages-3.00.modified/man2/syslog.2
@@ -235,6 +235,12 @@ 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 system call is not enabled when the operating system
+kernel was compiled.
+The kernel configuration parameter controlling this is
+.BR CONFIG_PRINTK .
 .SH "CONFORMING TO"
 This system call is Linux-specific and should not be used in programs
 intended to be portable.
#1 lore raw
Quoted 11 lines · WANG Cong

Hi, Michael!

syslog(2) just returns ENOSYS when CONFIG_PRINTK is not enabled. This should be described in man pages, I think.

Patch is below.

Thanks.

Thanks! I've rewritten the text a bit, and applied this change for man-pages-3.01.

Cheers,

Michael

Quoted 17 lines

---
diff -Nrup man-pages-3.00/man2/syslog.2 man-pages-3.00.modified/man2/syslog.2

man2/syslog.2 2008-06-19 17:13:00.000000000 +0100 renamed from man2/syslog.2 2008-06-11 05:20:46.000000000 +0100 +6 -0
@@ -235,6 +235,12 @@ 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 system call is not enabled when the operating system
+kernel was compiled.
+The kernel configuration parameter controlling this is
+.BR CONFIG_PRINTK .
 .SH "CONFORMING TO"
 This system call is Linux-specific and should not be used in programs
 intended to be portable.
Signature · 4 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html