* [patch] error.3: change perror(errnum) to strerror(errnum)
@ 2010-07-13 1:17 Linus Nilsson
0 siblings, 0 replies; only message in thread
From: Linus Nilsson @ 2010-07-13 1:17 UTC (permalink / raw)
To: tk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
As I was reading "man 3 error", I noticed that it mentioned
"perror(errnum)", but it is "strerror" that gives back a string
description given an error code.
The problem was noticed in man-pages 3.25, and the patch was made
against current git.
diff --git a/man3/error.3 b/man3/error.3
index fc4dfbe..f2fcf8c 100644
--- a/man3/error.3
+++ b/man3/error.3
@@ -55,7 +55,7 @@ the program name, a colon and a space, the message
specified by the
.BR printf (3)-style
format string \fIformat\fP, and, if \fIerrnum\fP is
nonzero, a second colon and a space followed by the string given by
-\fBperror(\fIerrnum\fB)\fP.
+\fBstrerror(\fIerrnum\fB)\fP.
Any arguments required for
.I format
should follow
--
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-13 1:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-13 1:17 [patch] error.3: change perror(errnum) to strerror(errnum) Linus Nilsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).