home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume32
/
pol
/
part01
/
README
< prev
next >
Wrap
Text File
|
1992-10-18
|
2KB
|
42 lines
INSTALL - this file
Makefile - Makefile to compile pol and poltest
README - readme file
pol.c - device driver
pol.lib.c - C library module
pol.h - /usr/include/sys/pol.h file
selec.h - /usr/include/sys/selec.h file
poltest.c - used to test the device driver
pty.c - the PD sys5 pty device driver, with modifications
----------------------------------------------------------------------
Basically, this package implements poll() and select() as a device
driver. It is called pol() and selec() so as not to be confused with
the real thing.
It operates on standard tty devices, pty devices, pipes, and sxt devices.
The driver accepts bit masks of read and write file descriptors. It
follows the descriptors to the file, then inode tables and gets the
major and minor device numbers. It then finds the tty structures
associated with those devices and stores their addresses.
It scans through the addresses once, looking for read or written
characters, then either returns or goes to sleep. Upon invocation, it
replaces the standard tty input/output functions with its own functions,
which wake up the driver and call the usual tty functions. In this way,
the driver is woken up when tty activity occurs. When pol is closed,
the standard tty functions are reinstalled.
A C library library is provided to translate the normal poll() and
select() parameters into pol device driver parameters, and then call the
device driver.
I have also provided a file called pty.c that is a modified version of
the PD System V pty device driver written by Jens-Uwe Mager, with
System V changes by Michael Bloom. To build this, you should follow the
directions in the second part of the INSTALL file. Several PD pty
drivers are available in pub/micro/sysv-386 on gatekeeper.dec.com, or in
pub/sysvX86 on ftp.win.tue.nl.
Bruce Momjian, root@candle.uucp (root%candle.uucp@bts.com)