>The ioctl parameters TIOCQCNT (Terminal Input Output Control Queue CouNT) >or FIONREAD also work nicely everywhere but system V. One or the other will, perhaps; neither 4.xBSD nor SunOS have TIOCQCNT, although they have FIONREAD. Do all systems lacking FIONREAD really have TIOCQCNT?