Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2002 11:26:44 -0800 (PST)
From:      Nate Lawson <nate@root.org>
To:        Garrett Wollman <wollman@lcs.mit.edu>
Cc:        Sheldon Hearn <sheldonh@starjuice.net>, current@FreeBSD.ORG
Subject:   Re: sleep(1) behavior
Message-ID:  <Pine.BSF.4.21.0211131125300.39871-100000@root.org>
In-Reply-To: <200211131903.gADJ3OuR066070@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 13 Nov 2002, Garrett Wollman wrote:
> <<On Wed, 13 Nov 2002 10:07:22 -0800 (PST), Nate Lawson <nate@root.org> said:
> 
> > Thanks, that's what I was expecting.  The attached patch provides the
> > following behavior:
> 
> > sleep 0 = exit 0 immediately
> > sleep [ \t]*1AAAA = sleep 1 second
> > sleep [ \t]*\.2zzz = sleep .2 seconds
> > sleep [ \t]*-.* = usage()
> 
> I believe that the language in the Standard was adopted so that an
> implementation can just use strtoul() and have the Standard Thing
> happen.

So "sleep -1" should sleep for ~0UL seconds?  And should usage() ever be
called then?

-Nate


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0211131125300.39871-100000>