Index: include/termios.h =================================================================== --- include/termios.h +++ include/termios.h @@ -92,12 +92,15 @@ void cfmakeraw(struct termios *); void cfmakesane(struct termios *); int cfsetspeed(struct termios *, speed_t); + +#include +int tcgetwinsize(int, struct winsize *); +int tcsetwinsize(int, const struct winsize *); #endif __END_DECLS #endif /* !_TERMIOS_H_ */ #if __BSD_VISIBLE -#include #include #endif Index: lib/libc/gen/Symbol.map =================================================================== --- lib/libc/gen/Symbol.map +++ lib/libc/gen/Symbol.map @@ -422,6 +422,8 @@ }; FBSD_1.6 { + tcgetwinsize; + tcsetwinsize; getlogin_r; memalign; scandir_b; Index: lib/libc/gen/termios.c =================================================================== --- lib/libc/gen/termios.c +++ lib/libc/gen/termios.c @@ -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)); +}