TIOCFLUSH of input only - any way to do it?

guy at rlgvax.UUCP guy at rlgvax.UUCP
Tue Jun 28 16:23:11 AEST 1983


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



More information about the Comp.unix.wizards mailing list