On Monday 03 November 2008 08:15:40 am Dag-Erling Smørgrav wrote: > Bruce Evans <[EMAIL PROTECTED]> writes: > > Robert Watson <[EMAIL PROTECTED]> 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 _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"