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
/
tcgetattr.c
1
#include <termios.h>
2
#include <sys/ioctl.h>
3
#include <string.h>
4
5
int tcgetattr(int fd, struct termios *tio)
6
{
7
if (ioctl(fd, TCGETS, tio))
8
return -1;
9
return 0;
10
}