Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2002 14:03:24 -0500 (EST)
From:      Garrett Wollman <wollman@lcs.mit.edu>
To:        Nate Lawson <nate@root.org>
Cc:        Sheldon Hearn <sheldonh@starjuice.net>, current@FreeBSD.ORG
Subject:   Re: sleep(1) behavior
Message-ID:  <200211131903.gADJ3OuR066070@khavrinen.lcs.mit.edu>
In-Reply-To: <Pine.BSF.4.21.0211131003010.39871-200000@root.org>
References:  <20021113080425.GO1278@starjuice.net> <Pine.BSF.4.21.0211131003010.39871-200000@root.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<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.

-GAWollman


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?200211131903.gADJ3OuR066070>