9 date 93.02.26.21.56.04; author jromine; state Exp;
14 date 92.12.15.00.20.22; author jromine; state Exp;
19 date 92.12.14.17.36.16; author jromine; state Exp;
24 date 90.04.05.15.31.32; author sources; state Exp;
29 date 90.04.05.14.45.54; author sources; state Exp;
34 date 90.02.05.15.01.21; author sources; state Exp;
39 date 90.02.05.15.01.16; author sources; state Exp;
53 @/* discard.c - discard output on a file pointer */
55 static char ident[] = "@@(#)$Id: discard.c,v 1.6 1992/12/15 00:20:22 jromine Exp jromine $";
66 #include <sys/types.h>
69 #include <sys/ioctl.h>
90 tcflush (fileno (io), TCOFLUSH);
93 if (ioctl (fileno (io), TIOCGETP, (char *) &sg) != NOTOK)
94 (void) ioctl (fileno (io), TIOCSETP, (char *) &sg);
96 if (ioctl (fileno (io), TCGETA, &sg) != NOTOK)
97 (void) ioctl (fileno (io), TCSETA, &sg);
104 if (io -> _ptr = io -> _base)
118 static char ident[] = "@@(#)$Id: discard.c,v 1.5 1992/12/14 17:36:16 jromine Exp jromine $";
132 @*** empty log message ***
137 static char ident[] = "@@(#)$Id: discard.c,v 1.4 90/04/05 15:31:32 sources Exp $";
168 static char ident[] = "@@(#)$Id:$";
179 static char ident[] = "$Id:";
185 @*** empty log message ***