[patch] error.3: change perror(errnum) to strerror(errnum)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux