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