Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!linus!genrad!mit-eddi!mit-vax!eagle!harpo!seismo!hao!hplabs!sri-unix!gwyn@brl-vld
From: gwyn%brl-vld@sri-unix.UUCP
Newsgroups: net.unix-wizards
Subject: Re:  TIOCFLUSH of input only - any way to do it?
Message-ID: <2527@sri-arpa.UUCP>
Date: Fri, 24-Jun-83 14:25:45 EDT
Article-I.D.: sri-arpa.2527
Posted: Fri Jun 24 14:25:45 1983
Date-Received: Sun, 26-Jun-83 22:18:26 EDT
Lines: 12

From:      Doug Gwyn (VLD/VMB) 

I assume you are on a 4.1?BSD system.

You must gobble up the input in a loop to simulate "flush input only"
unless you have one of the newer (4.1c for example) BSDs in which case:

	int	arg = 1;	/* 1 is "FREAD" bit */

	ioctl( fd, TIOCFLUSH, &arg );

which flushes input only.