Date: 15 Dec 1996 13:03:47 GMT From: peter@spinner.DIALix.COM (Peter Wemm) To: freebsd-hackers@freebsd.org Subject: Re: poll(2) Message-ID: <590svj$3dp$1@haywire.DIALix.COM> References: <199612092304.PAA11079@lestat.nas.nasa.gov>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?590svj$3dp$1>