summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/termios/tcgetwinsize.c
blob: 9b3a65a40d3ee5dfd680a7ba1711291294970232 (plain)
1
2
3
4
5
6
7
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);
}