1#include <sys/ioctl.h> 2#include <termios.h> 3 4int tcflush(int fd, int queue) { 5 return ioctl(fd, TCFLSH, queue); 6} 7