Correzioni rimaste indietro ed espansione funzioni del resolver.
[gapil.git] / listati / UnSetTermAttr.c
1 int UnSetTermAttr(int fd, tcflag_t flag) 
2 {
3     struct termios values;
4     int res;
5     if (res = tcgetattr(desc, &values)) {
6         perror("Cannot get attributes");
7         return res;
8     }
9     values.c_lflag &= (~flag);
10     if (res = tcsetattr(desc, TCSANOW, &values)) {
11         perror("Cannot set attributes");
12         return res;
13     }
14     return 0;
15 }