FIONREAD
Chris Torek
torek at elf.ee.lbl.gov
Wed Mar 27 05:48:15 AEST 1991
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---but by far the simplest method of duplicating Sun's FIONREAD
ioctl is to note that Sun *got* it from 4BSD. All you have to do is
use it.
--
In-Real-Life: Chris Torek, Lawrence Berkeley Lab CSE/EE (+1 415 486 5427)
Berkeley, CA Domain: torek at ee.lbl.gov
More information about the Comp.unix.wizards
mailing list