Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Dec 1996 15:04:22 -0800
From:      Jason Thorpe <thorpej@nas.nasa.gov>
To:        Terry Lambert <terry@lambert.org>
Cc:        jb@cimlogic.com.au (John Birrell), hackers@freebsd.org
Subject:   Re: poll(2) 
Message-ID:  <199612092304.PAA11079@lestat.nas.nasa.gov>

next in thread | raw e-mail | index | archive | help
On Mon, 9 Dec 1996 15:40:03 -0700 (MST) 
 Terry Lambert <terry@lambert.org> wrote:

 > It's relatively trivial to build a poll() using select() (ie: library
 > wrapper).

...indeed.  I did that once (in 1994), so that I could compile some
SVR4 sources under NetBSD/hp300.  However, doing that limits poll()
to select()'s functionality.

 > If someone decides to add poll, note: the tiemout is only good to 1ms
 > theoretical (argument resolution) or 10ms actual (system clock update
 > frequency), so it isn't suitable for doing a lot of things that select()
 > *is* suitable for doing...

I'd like to see a upoll(2), as well... an extension, that gives the
funtionality of poll, but takes a more reasonable timeout (like,
probably a struct timespec).

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939



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