1 #include <termios.h> 2 #include <sys/ioctl.h> 3 #include "syscall.h" 4 tcdrain(int fd)5 int tcdrain(int fd) 6 { 7 return syscall_cp(SYS_ioctl, fd, TCSBRK, 1); 8 } 9