From 6a572156072aa10677fe402b5b7995b0754131d6 Mon Sep 17 00:00:00 2001 From: hoek Date: Sun, 1 Aug 1999 20:46:45 +0000 Subject: 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(-) (limited to 'lib') 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 -- cgit v1.1