blob: cb9b66a72b55b47c091ffee7bdb59a6bd443dfc5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <termios.h>
#include <sys/ioctl.h>
int tcgetattr(int fd, struct termios *tio)
{
if (ioctl(fd, TCGETS, tio))
return -1;
return 0;
}
#ifdef TEST
int
main(void) {
return 0;
}
#endif
|