--- freebsd/lib/libc/gen/termios.c 2020-12-15 07:40:10.442863441 -0600 +++ ./termios.c 2020-12-15 07:04:06.227911814 -0600 @@ -51,7 +51,6 @@ int tcgetattr(int fd, struct termios *t) { - return (_ioctl(fd, TIOCGETA, t)); } @@ -275,3 +274,15 @@ } /* NOTREACHED */ } + +int +tcgetwinsize(int fd, struct winsize *w) +{ + return (_ioctl(fd, TIOCGWINSZ, w)); +} + +int +tcsetwinsize(int fd, const struct winsize *w) +{ + return (_ioctl(fd, TIOCSWINSZ, w)); +}