Date: Mon, 3 Nov 2008 14:44:00 -0500 From: John Baldwin <jhb@freebsd.org> To: Dag-Erling =?utf-8?q?Sm=C3=B8rgrav?= <des@des.no> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Robert Watson <rwatson@freebsd.org>, Bruce Evans <brde@optusnet.com.au> Subject: Re: svn commit: r184509 - head/share/man/man9 Message-ID: <200811031444.00816.jhb@freebsd.org> In-Reply-To: <867i7lq7b7.fsf@ds4.des.no> References: <200810311447.m9VElFtp083250@svn.freebsd.org> <20081101212937.D12448@delplex.bde.org> <867i7lq7b7.fsf@ds4.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 03 November 2008 08:15:40 am Dag-Erling Sm=C3=B8rgrav wrote: > 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 > > [...] >=20 > 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: >=20 > 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. >=20 > Note that our <stdlib.h> defines EXIT_FAILURE to 1. I agree as well. I always use 'err(1,...)' or 'errx(1,...)'. =2D-=20 John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811031444.00816.jhb>