Xref: utzoo comp.sys.amiga.hardware:3895 comp.unix.misc:264 Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!rpi!zaphod.mps.ohio-state.edu!lavaca.uh.edu!menudo.uh.edu!sugar!peter From: peter@sugar.hackercorp.com (Peter da Silva) Newsgroups: comp.sys.amiga.hardware,comp.unix.misc Subject: Re: PLEXUS UNIX BOX and Amiga Message-ID: <6714@sugar.hackercorp.com> Date: 6 Oct 90 12:29:06 GMT References: <1990Oct3.042810.17799@caen.engin.umich.edu> <1990Oct3.043213.18022@caen.engin.umich.edu> <8032@gollum.twg.com> Reply-To: peter@sugar.hackercorp.com (Peter da Silva) Distribution: na Organization: Sugar Land Unix - Houston Lines: 17 In article <8032@gollum.twg.com> david@twg.com (David S. Herron) writes: > SysVr2 simply didn't have anything similar. In r3+streams you have > this system call which looks promising: poll(). But it only works > on a "stream", and doesn't work on a real tty device even though the > tty drivers had become streams based. As of R3.2.2 the TTY drivers are still not streams based. :-< One of these days they'll all conform to POSIX.4 and have *real* async I/O with none of this special-cases-for-streams-and-sockets crapola. To do the equivalent of a select() on a TTY on System V, you have to open it O_NDELAY and busy-wait, or set a timeout in V_TIME/V_MIN in the termio structure and busy-wait :-<. It can be done, but it's a pain. -- Peter da Silva. `-_-' .