Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!genrad!decvax!harpo!seismo!rlgvax!guy From: guy@rlgvax.UUCP Newsgroups: net.unix-wizards Subject: Re: TIOCFLUSH of input only - any way to do it? Message-ID: <709@rlgvax.UUCP> Date: Tue, 28-Jun-83 02:23:11 EDT Article-I.D.: rlgvax.709 Posted: Tue Jun 28 02:23:11 1983 Date-Received: Tue, 28-Jun-83 08:39:11 EDT Lines: 10 The code to support passing an argument (FREAD, FWRITE, or FREAD|FWRITE) to the TIOCFLUSH ioctl (or, to be precise, passing the address of an int which has the desired value) is present in vanilla 4.1BSD. It is not present in vanilla V7. The most portable way of doing it is to do a TIOCGETP followed by a TIOCSETP of the values gotten with the GETP. Guy Harris Computer Consoles, Inc. Office Systems Group {seismo,mcnc,we13,brl-bmd,allegra}!rlgvax!guy