From owner-freebsd-hackers Mon Jan 24 13:13:58 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id 56648153A1; Mon, 24 Jan 2000 13:13:40 -0800 (PST) (envelope-from eischen@vigrid.com) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.8.7/PCNet) id QAA13445; Mon, 24 Jan 2000 16:11:30 -0500 (EST) Date: Mon, 24 Jan 2000 16:11:30 -0500 (EST) From: Daniel Eischen To: Alfred Perlstein Cc: Matthew Dillon , Mikhail Teterin , David Schwartz , imp@village.org, hackers@FreeBSD.ORG, bde@FreeBSD.ORG Subject: Re: kern/13644 In-Reply-To: <20000124130228.F26520@fw.wintelcom.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 24 Jan 2000, Alfred Perlstein wrote: > * Matthew Dillon [000124 12:59] wrote: > > > > :The manpage has been updated in -current: > > : > > : If timeout is a non-nil pointer, it specifies the maximum interval to > > : wait for the selection to complete. System activity can lengthen the in- > > : terval by an indeterminate amount. > > : > > : If timeout is a nil pointer, the select blocks indefinitely. > > : > > : To effect a poll, the timeout argument should be non-nil, pointing to a > > : zero-valued timeval structure. > > : > > :If no one objects I'll be committing it to -stable and praying to the > > :gods that this thread dies. > > : > > :-Alfred > > > > 'nil' ? 'nil' is the designation for an ascii 0, not a pointer. > > Please use 'null' or 'NULL' -- for example, look at the gettimeofday > > man page. 'nil' has nothing to do with pointers. > > I'll wait for more feedback and include this request in the final > update, even if it's the only change. 'nil' doesn't cut it for me either. I don't like the first stanza and prefer wording more like what Solaris has for poll(): If none of the defined events have occurred on any selected file descriptor, poll() waits at least 'timeout' milliseconds for an event to occur on any of the selected file descrip- tors. On a computer where millisecond timing accuracy is not available, 'timeout' is rounded up to the nearest legal value available on that system. The "maximum interval to wait for the selection to complete" isn't really the maximum, but more like the lower bounds of the time to wait for the selection. Dan Eischen eischen@vigrid.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message