I need a SysV select()

Tim Olson tim at amdcad.AMD.COM
Wed May 18 02:19:42 AEST 1988


In article <10293 at ulysses.homer.nj.att.com> ekrell at hector (Eduardo Krell) writes:
| In article <9738 at sol.ARPA> jpayne at rochester.UUCP writes:
| 
| >Hi.  The simple version of my question is, is there an equivalent
| >function in SysV for BSD's select()?
| 
| The simple version of my answer is NO.
| 
| >If the answer is no, here's what I am trying to do.  I want to get input
| >from either the keyboard or from some other file description.
| 
| System V Release 3 and up have a poll() system call which acts like
| select(), but works only on stream file descriptors.  Currently, the
| tty driver is not streams-based (it will be in the future), so poll()
| won't help you either.
|     

The only way I have found to do this kind of thing under SYSV is to
restructure the program to have a child process dedicated for each fd of
the select(), and have them communicate through shared memory, or
perhaps named pipes.

	-- Tim Olson
	Advanced Micro Devices
	(tim at amdcad.amd.com)



More information about the Comp.unix.wizards mailing list