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

int tcsendbreak(int fildes, int __unused 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);
}