From owner-freebsd-questions Mon Mar 11 10:08:29 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA29792 for questions-outgoing; Mon, 11 Mar 1996 10:08:29 -0800 (PST) Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA29786 for ; Mon, 11 Mar 1996 10:08:27 -0800 (PST) Received: by halloran-eldar.lcs.mit.edu; (5.65/1.1.8.2/19Aug95-0530PM) id AA04075; Mon, 11 Mar 1996 13:07:12 -0500 Date: Mon, 11 Mar 1996 13:07:12 -0500 From: "Garrett A. Wollman" Message-Id: <9603111807.AA04075@halloran-eldar.lcs.mit.edu> To: "Brian J. McGovern" Cc: questions@FreeBSD.ORG Subject: TTY Input In-Reply-To: <199603091559.KAA12497@spoon.beta.com> References: <199603091559.KAA12497@spoon.beta.com> Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk < 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