about summary refs log tree commit diff
path: root/src/termios/tcdrain.c
blob: 8e889b517a74bff799578b5e8847630f26bbb665 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <termios.h>
#include <sys/ioctl.h>
#include "libc.h"

int tcdrain(int fd)
{
	int ret;
	CANCELPT_BEGIN;
	ret = ioctl(fd, TCSBRK, 1);
	CANCELPT_END;
	return ret;
}