about summary refs log tree commit diff
path: root/src/termios/tcdrain.c
blob: c0e542b3e5fbb1814d402ef941a1f545a15a17fd (plain) (blame)
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);
}