From owner-freebsd-bugs Mon Mar 12 9: 0: 6 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 7264037B718 for ; Mon, 12 Mar 2001 09:00:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2CH03Z53455; Mon, 12 Mar 2001 09:00:03 -0800 (PST) (envelope-from gnats) Date: Mon, 12 Mar 2001 09:00:03 -0800 (PST) Message-Id: <200103121700.f2CH03Z53455@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bruce Evans Subject: Re: bin/25654: minor style(9) fix for sleep Reply-To: Bruce Evans 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: Bruce Evans To: Ruslan Ermilov Cc: bug-followup@FreeBSD.org Subject: Re: bin/25654: minor style(9) fix for sleep Date: Tue, 13 Mar 2001 03:54:43 +1100 (EST) On Mon, 12 Mar 2001, Ruslan Ermilov wrote: > On Sat, Mar 10, 2001 at 08:50:03AM -0800, Bruce Evans wrote: > > 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. Similarly for FreeBSD. It is optional and not very useful since very few programs use it, so it shouldn't be required. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message