All of lore.kernel.org
 help / color / mirror / Atom feed
From: WANG Cong <wcong@critical-links.com>
To: mtk.manpages@gmail.com
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [Patch] Add the ENOSYS description for syslog(2)
Date: Thu, 19 Jun 2008 17:29:32 +0100	[thread overview]
Message-ID: <20080619172932.0509e359@hack> (raw)


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.


             reply	other threads:[~2008-06-19 16:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-19 16:29 WANG Cong [this message]
2008-06-20  7:51 ` [Patch] Add the ENOSYS description for syslog(2) Michael Kerrisk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080619172932.0509e359@hack \
    --to=wcong@critical-links.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.