musl-tcc/src/termios/tcdrain.c
2022-03-20 16:48:53 +08:00

9 lines
136 B
C

#include <termios.h>
#include <sys/ioctl.h>
#include "syscall.h"
int tcdrain(int fd)
{
return syscall_cp(SYS_ioctl, fd, TCSBRK, 1);
}