Date: Mon, 12 Mar 2001 00:20:01 -0800 (PST) From: Ruslan Ermilov <ru@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/25654: minor style(9) fix for sleep Message-ID: <200103120820.f2C8K1K65385@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/25654; it has been noted by GNATS. From: Ruslan Ermilov <ru@FreeBSD.org> To: Bruce Evans <bde@zeta.org.au> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103120820.f2C8K1K65385>