about summary refs log tree commit diff
path: root/src/termios/tcdrain.c
blob: c51dd401fea4f223b91d251b52acbfff169f1d06 (plain) (blame)
1
2
3
4
5
6
7
#include <termios.h>
#include <sys/ioctl.h>

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