summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/termios/tcdrain.c
blob: c0e542b3e5fbb1814d402ef941a1f545a15a17fd (plain)
1
2
3
4
5
6
7
8
#include <termios.h>
#include <sys/ioctl.h>
#include "syscall.h"

int tcdrain(int fd)
{
	return syscall_cp(SYS_ioctl, fd, TCSBRK, 1);
}