From owner-freebsd-arch Mon Jul 3 22:31:43 2000 Delivered-To: freebsd-arch@freebsd.org Received: from jade.chc-chimes.com (jade.chc-chimes.com [216.28.46.6]) by hub.freebsd.org (Postfix) with ESMTP id 8DF7137BCF7 for ; Mon, 3 Jul 2000 22:31:41 -0700 (PDT) (envelope-from billf@jade.chc-chimes.com) Received: by jade.chc-chimes.com (Postfix, from userid 1001) id 985BB1C6C; Tue, 4 Jul 2000 01:31:40 -0400 (EDT) Date: Tue, 4 Jul 2000 01:31:40 -0400 From: Bill Fumerola To: Bruce Evans Cc: Sheldon Hearn , arch@FreeBSD.ORG Subject: Re: truncate(1) implementation details Message-ID: <20000704013140.F4034@jade.chc-chimes.com> References: <904.962613305@axl.ops.uunet.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from bde@zeta.org.au on Tue, Jul 04, 2000 at 03:16:37PM +1000 X-Operating-System: FreeBSD 3.3-STABLE i386 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Jul 04, 2000 at 03:16:37PM +1000, Bruce Evans wrote: > > > Use EXIT_SUCCESS and EXIT_FAILURE for exit() and EX_* for > > > errx(). > > > > yes :) > > No. Use EXIT_* for errx() too. Magic error exit codes are especially > useless when a human-readable error message is printed. Just to butt into this conversation... I know this from my dealings with the Teachings of Bruce, but style(9) dictates that exit() use the sysexits(3) when appropriate. I can see where people could be confused. -- Bill Fumerola - Network Architect / Computer Horizons Corp - CHIMES e-mail: billf@chimesnet.com / billf@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message