Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!genrad!decvax!harpo!floyd!vax135!cornell!uw-beaver!tektronix!richl From: richl@tektronix.UUCP Newsgroups: net.unix-wizards Subject: Re: TIOCFLUSH of input only - any way to do it? Message-ID: <1200@tektroni.UUCP> Date: Thu, 23-Jun-83 23:04:20 EDT Article-I.D.: tektroni.1200 Posted: Thu Jun 23 23:04:20 1983 Date-Received: Mon, 27-Jun-83 14:11:59 EDT Lines: 18 The documentation states that an ioctl(fd,TIOCGETP,&foo) will "wait until output is quiescent", and then fetch the parameters. So what I did is do two consecutive ioctl calls: ioctl(fd,TIOCGETP,&foo); ioctl(fd,TIOCSETP,&foo); where foo is the appropriate structure. Yes, it is two system calls where one should do, but unless you have local mods, it seems to be the only standard way to do it. The TIOCSETP, of course, flushes both queues, but output is now empty). Rick Lindsley richl@tektronix ..!tektronix!richl