diff options
Diffstat (limited to 'libc-top-half/musl/src/termios/tcgetwinsize.c')
-rw-r--r-- | libc-top-half/musl/src/termios/tcgetwinsize.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/termios/tcgetwinsize.c b/libc-top-half/musl/src/termios/tcgetwinsize.c new file mode 100644 index 0000000..9b3a65a --- /dev/null +++ b/libc-top-half/musl/src/termios/tcgetwinsize.c @@ -0,0 +1,8 @@ +#include <termios.h> +#include <sys/ioctl.h> +#include "syscall.h" + +int tcgetwinsize(int fd, struct winsize *wsz) +{ + return syscall(SYS_ioctl, fd, TIOCGWINSZ, wsz); +} |