From owner-freebsd-bugs Mon Mar 12 0:20: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0A20737B71B for ; Mon, 12 Mar 2001 00:20:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2C8K1K65385; Mon, 12 Mar 2001 00:20:01 -0800 (PST) (envelope-from gnats) Date: Mon, 12 Mar 2001 00:20:01 -0800 (PST) Message-Id: <200103120820.f2C8K1K65385@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ruslan Ermilov Subject: Re: bin/25654: minor style(9) fix for sleep Reply-To: Ruslan Ermilov Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/25654; it has been noted by GNATS. From: Ruslan Ermilov To: Bruce Evans Cc: bug-followup@FreeBSD.org Subject: Re: bin/25654: minor style(9) fix for sleep Date: Mon, 12 Mar 2001 10:16:52 +0200 On Sat, Mar 10, 2001 at 08:50:03AM -0800, Bruce Evans wrote: > > On Sun, 11 Mar 2001 andrew@ugh.net.au wrote: > > > >Description: > > > > sleep should exit with EX_USAGE if given incorrect arguments. > > sleep shouldn't exit with EX_USAGE. > > The bug is style(9) saying to use sysexits.h. Correct style may be found > in old BSD sources like sleep.c Only 3 non-contrib'ed files in the entire > 4.4BSDLite2 /usr/src use sysexits.h. These are rmail.c, mail.local.c and > sccs.c. > But POSIX does not deny this: : EXIT STATUS : The following exit values shall be returned: : 0 The execution was successfully suspended for at least time : seconds, or a SIGALRM signal was received. See the : ASYNCHRONOUS EVENTS section. : >0 An error occurred. So EX_USAGE falls nicely into ``>0'' clause. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message