From owner-freebsd-current Wed Nov 13 11: 3:27 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCB6F37B401 for ; Wed, 13 Nov 2002 11:03:26 -0800 (PST) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11ABC43E3B for ; Wed, 13 Nov 2002 11:03:26 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.3/8.12.5) with ESMTP id gADJ3Oen066073 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Wed, 13 Nov 2002 14:03:24 -0500 (EST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.3/8.12.5/Submit) id gADJ3OuR066070; Wed, 13 Nov 2002 14:03:24 -0500 (EST) (envelope-from wollman) Date: Wed, 13 Nov 2002 14:03:24 -0500 (EST) From: Garrett Wollman Message-Id: <200211131903.gADJ3OuR066070@khavrinen.lcs.mit.edu> To: Nate Lawson Cc: Sheldon Hearn , current@FreeBSD.ORG Subject: Re: sleep(1) behavior In-Reply-To: References: <20021113080425.GO1278@starjuice.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.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