diff options
Diffstat (limited to 'libc-top-half/musl/src/termios/tcgetattr.c')
-rw-r--r-- | libc-top-half/musl/src/termios/tcgetattr.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/termios/tcgetattr.c b/libc-top-half/musl/src/termios/tcgetattr.c new file mode 100644 index 0000000..545a0bf --- /dev/null +++ b/libc-top-half/musl/src/termios/tcgetattr.c @@ -0,0 +1,9 @@ +#include <termios.h> +#include <sys/ioctl.h> + +int tcgetattr(int fd, struct termios *tio) +{ + if (ioctl(fd, TCGETS, tio)) + return -1; + return 0; +} |