summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2004-10-04 14:04:37 +0000
committerjkoshy <jkoshy@FreeBSD.org>2004-10-04 14:04:37 +0000
commit1e91c0db486bcef900a786c6426f9771745812c2 (patch)
treeb2ad69eaac97f3a3cfc5f527bb09c3f7734e40d6 /lib
parentcd602b46faccdc2487835d180459445cc2d54439 (diff)
downloadFreeBSD-src-1e91c0db486bcef900a786c6426f9771745812c2.zip
FreeBSD-src-1e91c0db486bcef900a786c6426f9771745812c2.tar.gz
Mutually cross-reference sysexits(3) and err(3). Add text to err(3)
recommending that the standard exit codes in sysexits(3) be used. Reviewed by: ru
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/err.37
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/gen/err.3 b/lib/libc/gen/err.3
index 753ef15..1e2d7c3 100644
--- a/lib/libc/gen/err.3
+++ b/lib/libc/gen/err.3
@@ -158,6 +158,10 @@ and
.Fn verrx
functions do not return, but exit with the value of the argument
.Fa eval .
+It is recommended that the standard values defined in
+.Xr sysexits 3
+be used for the value of
+.Fa eval .
The
.Fn err_set_exit
function can be used to specify a function which is called before
@@ -209,7 +213,8 @@ if (error != 0)
.Xr exit 3 ,
.Xr fmtmsg 3 ,
.Xr printf 3 ,
-.Xr strerror 3
+.Xr strerror 3 ,
+.Xr sysexits 3
.Sh HISTORY
The
.Fn err
OpenPOWER on IntegriCloud