Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 1996 13:07:12 -0500
From:      "Garrett A. Wollman" <wollman@lcs.mit.edu>
To:        "Brian J. McGovern" <mcgovern@spoon.beta.com>
Cc:        questions@FreeBSD.ORG
Subject:   TTY Input
Message-ID:  <9603111807.AA04075@halloran-eldar.lcs.mit.edu>
In-Reply-To: <199603091559.KAA12497@spoon.beta.com>
References:  <199603091559.KAA12497@spoon.beta.com>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Sat, 09 Mar 1996 10:59:42 -0500, "Brian J. McGovern" <mcgovern@spoon.beta.com> said:

> Quick question.I see an ioctl() call for finding out how many characters
> are in the OUTPUT queue. Is there a similar ioctl for seeing how many
> characters are waiting to be read (or a way to safely do this
> short of reading them).

Use FIONREAD.

-GAWollman

--
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@lcs.mit.edu  | Shashish is the bonding of hearts in spite of distance.
Opinions not those of| It is a bond more powerful than absence.  We like people
MIT, LCS, ANA, or NSA| who like Shashish.  - Claude McKenzie + Florent Vollant



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9603111807.AA04075>