Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site wu1.UUCP Path: utzoo!linus!philabs!cmcl2!rocky2!cubsvax!wu1!rf From: rf@wu1.UUCP Newsgroups: net.unix-wizards Subject: Question about ioctl Message-ID: <247@wu1.UUCP> Date: Thu, 9-Feb-84 16:11:03 EST Article-I.D.: wu1.247 Posted: Thu Feb 9 16:11:03 1984 Date-Received: Sun, 12-Feb-84 09:27:21 EST Organization: Western Union Telegraph, Mahwah, NJ Lines: 15 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