From owner-svn-src-head@FreeBSD.ORG Mon Nov 3 18:46:16 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9089A1065674; Mon, 3 Nov 2008 18:46:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2B63C8FC1D; Mon, 3 Nov 2008 18:46:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id mA3IjdRT091877; Mon, 3 Nov 2008 13:46:08 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Dag-Erling =?utf-8?q?Sm=C3=B8rgrav?= Date: Mon, 3 Nov 2008 14:44:00 -0500 User-Agent: KMail/1.9.7 References: <200810311447.m9VElFtp083250@svn.freebsd.org> <20081101212937.D12448@delplex.bde.org> <867i7lq7b7.fsf@ds4.des.no> In-Reply-To: <867i7lq7b7.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200811031444.00816.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Mon, 03 Nov 2008 13:46:08 -0500 (EST) X-Virus-Scanned: ClamAV 0.93.1/8559/Mon Nov 3 11:41:26 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Robert Watson , Bruce Evans Subject: Re: svn commit: r184509 - head/share/man/man9 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2008 18:46:16 -0000 On Monday 03 November 2008 08:15:40 am Dag-Erling Sm=C3=B8rgrav wrote: > Bruce Evans writes: > > Robert Watson 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 defines EXIT_FAILURE to 1. I agree as well. I always use 'err(1,...)' or 'errx(1,...)'. =2D-=20 John Baldwin