From 32cc54f11b27c83709b776efa8958ebfff400fcd Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 29 Aug 2016 16:49:43 +0100 Subject: [PATCH] includes: add the extra tty ioctls --- Library/include/termios.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Library/include/termios.h b/Library/include/termios.h index c26ab890..29264d97 100644 --- a/Library/include/termios.h +++ b/Library/include/termios.h @@ -141,6 +141,18 @@ struct termios { #define TIOCHANGUP 7 /* vhangup() */ #define TIOCOSTOP 8 #define TIOCOSTART 9 +#define TIOCGWINSZ 10 +#define TIOCSWINSZ 11 +#define TIOCGPGRP 12 +#define TIOCSPGRP 13 + + +struct winsize { + unsigned short ws_row; + unsigned short ws_col; + unsigned short ws_xpixel; + unsigned short ws_ypixel; +}; extern speed_t cfgetispeed(const struct termios *__termios_p); extern speed_t cfgetospeed(const struct termios *__termios_p); -- 2.34.1