select()/poll() source code posting

select()/poll() source code posting

Post by Bruce Momji » Wed, 02 Sep 1992 10:45:21



I have written an implementation of poll() and select() for systems that
lack them.  It is implemented as a device driver.  I have called it
pol() and selec() so as not to confuse them with the originals.  It only
works on reads and writes.

I have tested it using pcomm 2.0 and ptyshl with the PD pty driver.

The shar file is 17k.  My thanks to those people in comp.unix.internals
who helped me with some of the details.  This code was written by
looking at other PD device driver implementaions, like fas(async),
pty(ptys), herc(hercules graphics), and mouse(mouse).  

The code was developed on AT&T 386 Unix SVr3.1, which has poll(), but
only for streams.  

If you would like a copy, please mail me a request.

--
Bruce Momjian                      |  830 Blythe Avenue

                                   |  (215) 353-9879(w)  853-3000(h)

--
Bruce Momjian                      |  830 Blythe Avenue

                                   |  (215) 353-9879(w)  853-3000(h)