From cc5aedfb1a1217f597900cca1923d625ea3514bc Mon Sep 17 00:00:00 2001 From: Tim Vanderhoek Date: Sun, 1 Aug 1999 20:46:45 +0000 Subject: [PATCH] Mention that EXIT_SUCCESS and EXIT_FAILURE are preferred over sysexits.h-values as exit codes for portable programs. --- lib/libc/stdlib/exit.3 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/libc/stdlib/exit.3 b/lib/libc/stdlib/exit.3 index 837b8c83d8db..6f6465e5ff67 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