minix/lib/posix/_tcflush.c
2005-04-21 14:53:53 +00:00

13 lines
269 B
C
Executable file

/* 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));
}