summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorhoek <hoek@FreeBSD.org>1999-08-01 20:46:45 +0000
committerhoek <hoek@FreeBSD.org>1999-08-01 20:46:45 +0000
commit6a572156072aa10677fe402b5b7995b0754131d6 (patch)
tree35a27b92ec2154b1bba8fa78ab68b399b651594d /lib
parent737bcd68088e6c8f35202c962eaebf8276d437bd (diff)
downloadFreeBSD-src-6a572156072aa10677fe402b5b7995b0754131d6.zip
FreeBSD-src-6a572156072aa10677fe402b5b7995b0754131d6.tar.gz
Mention that EXIT_SUCCESS and EXIT_FAILURE are preferred over
sysexits.h-values as exit codes for portable programs.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdlib/exit.38
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc/stdlib/exit.3 b/lib/libc/stdlib/exit.3
index 837b8c8..6f6465e 100644
--- a/lib/libc/stdlib/exit.3
+++ b/lib/libc/stdlib/exit.3
@@ -69,7 +69,13 @@ function.
.Pp
Passing arbitrary values back to the environment as
.Ar status
-is considered bad style. Instead, use the values as described in
+is considered bad style;
+you should use the values
+.Dv EXIT_SUCCESS
+and
+.Dv EXIT_FAILURE .
+If portability is not a concern, you may
+use the values described in
.Xr sysexits 3 .
.Sh RETURN VALUES
The
OpenPOWER on IntegriCloud