Question about ioctl

rf at wu1.UUCP rf at wu1.UUCP
Fri Feb 10 07:11:03 AEST 1984


On UniSoft v7 Unix there is an ioctl call which works this way:

   int navail;
   . . . 
   ioctl (fildes, FIONREAD, &navail);

This call returns the number of characters which you can read
from fildes in navail.  When fildes refers to a terminal, this
ioctl call returns the number of characters waiting to be read.

*** What versions of Unix will this work under? ***


				Randolph Fritz
				Western Union Telegraph



More information about the Comp.unix.wizards mailing list