Path: utzoo!attcan!uunet!husc6!bloom-beacon!mit-eddie!ll-xn!ames!amdahl!amdcad!tim From: tim@amdcad.AMD.COM (Tim Olson) Newsgroups: comp.unix.wizards Subject: Re: I need a SysV select() Message-ID: <21654@amdcad.AMD.COM> Date: 17 May 88 16:19:42 GMT References: <9738@sol.ARPA> <10293@ulysses.homer.nj.att.com> Reply-To: tim@amdcad.UUCP (Tim Olson) Organization: Advanced Micro Devices Lines: 25 In article <10293@ulysses.homer.nj.att.com> ekrell@hector (Eduardo Krell) writes: | In article <9738@sol.ARPA> jpayne@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@amdcad.amd.com)