Debian Codegraph @

libc-top-half/musl/src/termios/tcgetattr.c

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