FIONREAD
Curtis Yarvin
cgy at cs.brown.edu
Wed Mar 27 08:02:23 AEST 1991
In article <11473 at dog.ee.lbl.gov> torek at elf.ee.lbl.gov (Chris Torek) writes:
>In article <69819 at brunix.UUCP> cgy at cs.brown.edu (Curtis Yarvin) writes:
>>What is the most elegant way of duplicating Sun's FIONREAD ioctl, which
>>gets the number of bytes readable from a descriptor, on 4.3BSD systems?
>
>The `most elegant' is to avoid it altogether---FIONREAD tends to induce races
This is no doubt why Ultrix, at least, buried it deep within the bowels of
the tty(4) page. Thanks to everyone who replied.
curtis
"I tried living in the real world
Instead of a shell
But I was bored before I even began." - The Smiths
More information about the Comp.unix.wizards
mailing list