summaryrefslogtreecommitdiff
path: root/lib/libc/termios/tcsendbreak.c
blob: a6ed420d6954ee7c794430c7109e33663f4fa21f (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <termios.h>
#include <syscall.h>
#include <asm-generic/ioctls.h>

int tcsendbreak(int fildes, int duration)
{
	// IEEE Std 1003.1-2024
	// If duration is not 0, it shall send zero-valued
	// bits for an implementation-defined period of time.
	return syscall(ioctl, fildes, TCSBRK, 0);
}