From f15d2e466a0d6dc3ec30e9de57fbe8f0fce52621 Mon Sep 17 00:00:00 2001 From: mycroft Date: Fri, 28 Apr 1995 23:01:45 +0000 Subject: Use POSIX tty semantics. --- robots/flush_in.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'robots') diff --git a/robots/flush_in.c b/robots/flush_in.c index efe088d2..fecc4838 100644 --- a/robots/flush_in.c +++ b/robots/flush_in.c @@ -1,4 +1,4 @@ -/* $NetBSD: flush_in.c,v 1.3 1995/04/22 10:08:51 cgd Exp $ */ +/* $NetBSD: flush_in.c,v 1.4 1995/04/28 23:09:08 mycroft Exp $ */ /* * Copyright (c) 1980, 1993 @@ -37,11 +37,12 @@ #if 0 static char sccsid[] = "@(#)flush_in.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: flush_in.c,v 1.3 1995/04/22 10:08:51 cgd Exp $"; +static char rcsid[] = "$NetBSD: flush_in.c,v 1.4 1995/04/28 23:09:08 mycroft Exp $"; #endif #endif /* not lint */ -# include +# include +# include /* * flush_in: @@ -49,9 +50,5 @@ static char rcsid[] = "$NetBSD: flush_in.c,v 1.3 1995/04/22 10:08:51 cgd Exp $"; */ flush_in() { -# ifdef TIOCFLUSH - ioctl(fileno(stdin), TIOCFLUSH, NULL); -# else TIOCFLUSH - crmode(); -# endif TIOCFLUSH + tcflush(fileno(stdin), TCIFLUSH); } -- cgit v1.2.3