Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!brutus.cs.uiuc.edu!wuarchive!wugate!uunet!cme!durer!rowe From: rowe@cme.nist.gov (Walter Rowe) Newsgroups: comp.unix.wizards Subject: Re: Strange SUN behaviour. Message-ID: Date: 23 Oct 89 13:34:52 GMT References: <218@oasis.mrcu> <219@oasis.mrcu> Sender: news@cme.nbs.gov Organization: National Institute of Standards and Technology Lines: 16 In-reply-to: yh87@mrcu's message of 18 Oct 89 09:49:55 GMT -------------------------------------------------------- I tried replying directly, but it got sent back to me... -------------------------------------------------------- Here is another possibility for you: ioctl (fd, FIONREAD, &nchar) int fd; int nchar; The value returned in `nchar' is the number of characters waiting to be read from file descriptor `fd'. --- Walter Rowe, Sun Sys Admin Robot Systems Division, NIST rowe@cme.nist.gov