Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Mar 2001 09:00:03 -0800 (PST)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/25654: minor style(9) fix for sleep
Message-ID:  <200103121700.f2CH03Z53455@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: Bruce Evans <bde@zeta.org.au>
To: Ruslan Ermilov <ru@FreeBSD.org>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103121700.f2CH03Z53455>