[comp.unix.misc] PLEXUS UNIX BOX and Amiga

peter@sugar.hackercorp.com (Peter da Silva) (10/06/90)

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.   `-_-'
<peter@sugar.hackercorp.com>.