* [Patch] Add the ENOSYS description for syslog(2)
@ 2008-06-19 16:29 WANG Cong
2008-06-20 7:51 ` Michael Kerrisk
0 siblings, 1 reply; 2+ messages in thread
From: WANG Cong @ 2008-06-19 16:29 UTC (permalink / raw)
To: mtk.manpages; +Cc: LKML
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.
Sigend-off-by: WANG Cong <wcong@critical-links.com>
---
diff -Nrup man-pages-3.00/man2/syslog.2 man-pages-3.00.modified/man2/syslog.2
--- man-pages-3.00/man2/syslog.2 2008-06-11 05:20:46.000000000 +0100
+++ man-pages-3.00.modified/man2/syslog.2 2008-06-19 17:13:00.000000000 +0100
@@ -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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Patch] Add the ENOSYS description for syslog(2)
2008-06-19 16:29 [Patch] Add the ENOSYS description for syslog(2) WANG Cong
@ 2008-06-20 7:51 ` Michael Kerrisk
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk @ 2008-06-20 7:51 UTC (permalink / raw)
To: WANG Cong; +Cc: mtk.manpages, LKML
On Thu, Jun 19, 2008 at 6:29 PM, WANG Cong <wcong@critical-links.com> wrote:
>
> 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.
>
> Sigend-off-by: WANG Cong <wcong@critical-links.com>
Thanks! I've rewritten the text a bit, and applied this change for
man-pages-3.01.
Cheers,
Michael
> ---
> diff -Nrup man-pages-3.00/man2/syslog.2 man-pages-3.00.modified/man2/syslog.2
> --- man-pages-3.00/man2/syslog.2 2008-06-11 05:20:46.000000000 +0100
> +++ man-pages-3.00.modified/man2/syslog.2 2008-06-19 17:13:00.000000000 +0100
> @@ -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.
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-20 7:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-19 16:29 [Patch] Add the ENOSYS description for syslog(2) WANG Cong
2008-06-20 7:51 ` Michael Kerrisk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox