public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] err.3: clean up description of error message source
@ 2011-08-31 14:33 Seonghun Lim
       [not found] ` <4E5E4634.80609-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Seonghun Lim @ 2011-08-31 14:33 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

man-pages version: latest git repository
why:
In the second paragraph of DESCRIPTION section, one of the
sources of error messages is incorrect: the four functions obtain
error message only from errno, and "a code" is just relavant
with errc() and warnc(), which are not present on Linux.
see http://www.unix.com/man-page/freebsd/3/ERR/ .

Then, the third paragraph becomes a duplicate.


diff --git a/man3/err.3 b/man3/err.3
--- a/man3/err.3
+++ b/man3/err.3
@@ -83,7 +83,7 @@ and
.BR vwarn ()
functions append an error message obtained from
.BR strerror (3)
-based on a code or the global variable
+based on the global variable
.IR errno ,
preceded by another colon and space unless the
.I fmt
@@ -91,16 +91,6 @@ argument is
NULL.
.PP
The
-.BR err (),
-.BR verr (),
-.BR warn (),
-and
-.BR vwarn ()
-functions use the global variable
-.I errno
-to look up the error message.
-.PP
-The
.BR errx ()
and
.BR warnx ()

--
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	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-17  5:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-31 14:33 [patch] err.3: clean up description of error message source Seonghun Lim
     [not found] ` <4E5E4634.80609-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-09-17  5:15   ` Michael Kerrisk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox