minix/lib/libc/posix/_tcflush.c

13 lines
269 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
/* tcflush() - flush buffered characters Author: Kees J. Bot
* 13 Jan 1994
*/
#define tcflush _tcflush
#define ioctl _ioctl
#include <termios.h>
#include <sys/ioctl.h>
int tcflush(int fd, int queue_selector)
{
return(ioctl(fd, TCFLSH, &queue_selector));
}