Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Nov 2008 14:15:40 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Bruce Evans <brde@optusnet.com.au>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Robert Watson <rwatson@freebsd.org>
Subject:   Re: svn commit: r184509 - head/share/man/man9
Message-ID:  <867i7lq7b7.fsf@ds4.des.no>
In-Reply-To: <20081101212937.D12448@delplex.bde.org> (Bruce Evans's message of "Sat, 1 Nov 2008 22:05:41 %2B1100 (EST)")
References:  <200810311447.m9VElFtp083250@svn.freebsd.org> <20081101212937.D12448@delplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans <brde@optusnet.com.au> writes:
> Robert Watson <rwatson@freebsd.org> writes:
> > In style(9) examples of err() and errx(), use sysexits(3) errors
> > rather than returning 1.
> style(9) was correct.  Using sysexits(3) is a style bug in most cases
> [...]

I agree.  If we must use symbolic names, I suggest we just follow the
standard, cf. ISO/IEC 9899:1999 =C2=A77.20.4.3:

  If the value of status is zero or EXIT_SUCCESS, an implementation-
  defined form of the status successful termination is returned. If the
  value of status is EXIT_FAILURE, an implementation-defined form of the
  status unsuccessful termination is returned. Otherwise the status
  returned is implementation-defined.

Note that our <stdlib.h> defines EXIT_FAILURE to 1.

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?867i7lq7b7.fsf>