svn commit: r184509 - head/share/man/man9
John Baldwin
jhb at freebsd.org
Mon Nov 3 10:46:16 PST 2008
On Monday 03 November 2008 08:15:40 am Dag-Erling Smørgrav wrote:
> Bruce Evans <brde at optusnet.com.au> writes:
> > Robert Watson <rwatson at 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 §7.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.
I agree as well. I always use 'err(1,...)' or 'errx(1,...)'.
--
John Baldwin
More information about the svn-src-all
mailing list