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? Curtis