☰
Debian Codegraph
@
0.0~git20260129.ec0effd-3
0.0~git20260129.ec0effd-2
/
/
libc-top-half
/
musl
/
src
/
termios
/
tcsetattr.c
☽
☼
libc-top-half/musl/src/termios/tcsetattr.c
code
plain
raw
MIT
2005-2019 Rich Felker <
[email protected]
>; 2005-2019 Many other contributors
debian/copyright
1
#include <termios.h>
2
#include <sys/ioctl.h>
3
#include <errno.h>
4
5
int tcsetattr(int fd, int act, const struct termios *tio)
6
{
7
if (act < 0 || act > 2) {
8
errno = EINVAL;
9
return -1;
10
}
11
return ioctl(fd, TCSETS+act, tio);
12
}