projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
yet another ugly legacy syscall rename...
[oweals/musl.git]
/
src
/
termios
/
tcsetattr.c
1
#include <termios.h>
2
#include <sys/ioctl.h>
3
#include <string.h>
4
#include <errno.h>
5
6
int tcsetattr(int fd, int act, const struct termios *tio)
7
{
8
if (act < 0 || act > 2) {
9
errno = EINVAL;
10
return -1;
11
}
12
return ioctl(fd, TCSETS+act, tio);
13
}