From: "jesus.otero " <jesus.otero-zg5kjA6Mr10@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: A bug? in the perror man page
Date: Fri, 9 Mar 2012 11:36:14 +0100 (CET) [thread overview]
Message-ID: <27915272.87611331289374219.JavaMail.defaultUser@defaultHost> (raw)
Hi!
Not sure if this is a bug, but, just in case...
When searching how to print error messages without using perror, the man page
of perror says
"The global error list sys_errlist[] indexed by errno can be used to obtain
the error message without the newline. The largest message number provided in
the table is sys_nerr -1. Be careful when directly accessing this list
because new error values may not have been added to sys_errlist[]."
Searching for sys_errlist on the kernel includes pointed me to the file
<bits/sys_errlist.h> where it says that sys_errlist[] is deprecated,
recommending you to use strerror. Doing a google search confirm me this.
Shouldn't this be reflected on perror's man page?
I'm running an Ubuntu 10.04.4 LTS
My kernel version 2.6.32-39-generic-pae
I've installed the man page for perror version 3.23-1
Thanks
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2012-03-09 10:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-09 10:36 jesus.otero [this message]
2012-04-15 10:37 ` A bug? in the perror man page Michael Kerrisk (man-pages)
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=27915272.87611331289374219.JavaMail.defaultUser@defaultHost \
--to=jesus.otero-zg5kja6mr10@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/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.