svn commit: r184509 - head/share/man/man9
des at des.no
Mon Nov 3 05:15:42 PST 2008
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 §18.104.22.168:
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.
Dag-Erling Smørgrav - des at des.no
More information about the svn-src-all