From owner-freebsd-hackers Sun Dec 15 05:04:13 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id FAA24622 for hackers-outgoing; Sun, 15 Dec 1996 05:04:13 -0800 (PST) Received: from haywire.DIALix.COM (news@haywire.DIALix.COM [192.203.228.65]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id FAA24594 for ; Sun, 15 Dec 1996 05:04:02 -0800 (PST) Received: (from news@localhost) by haywire.DIALix.COM (8.8.3/8.8.2) id VAA04382 for freebsd-hackers@freebsd.org; Sun, 15 Dec 1996 21:03:49 +0800 (WST) X-Authentication-Warning: haywire.DIALix.COM: news set sender to usenet-request@haywire.dialix.com using -f Received: from GATEWAY by haywire.DIALix.COM with netnews for freebsd-hackers@freebsd.org (problems to: usenet@haywire.dialix.com) To: freebsd-hackers@freebsd.org Date: 15 Dec 1996 13:03:47 GMT From: peter@spinner.DIALix.COM (Peter Wemm) Message-ID: <590svj$3dp$1@haywire.DIALix.COM> Organization: DIALix Services, Perth, Australia. References: <199612092304.PAA11079@lestat.nas.nasa.gov> Subject: Re: poll(2) Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article <199612092304.PAA11079@lestat.nas.nasa.gov>, thorpej@nas.nasa.gov (Jason Thorpe) writes: > > 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). I did some code to do this about 6 months ago, it's still in my checked out -current kernel and still works. I had seen OpenBSD's code (a lot) so it's not purely independent, but it is quite different in certain areas. While I was there, I got carried away and implemented the feature described in the "BUGS" section right at the end of the select(2) man page. -Peter