From 1e91c0db486bcef900a786c6426f9771745812c2 Mon Sep 17 00:00:00 2001 From: jkoshy Date: Mon, 4 Oct 2004 14:04:37 +0000 Subject: 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 --- lib/libc/gen/err.3 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/libc') 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 -- cgit v1.1