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