X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=Usermode%2FLibraries%2Flibposix.so_src%2Finclude_exp%2Ftermios.h;h=bb3cf884d6b3a804fe9d6a749c9d53deb29ad30d;hb=e7a76b0d8a0cc6aa77966509780973a6f8216ef7;hp=a200f2c4a5f75ba7d78cab574d25b076f7c0d8fa;hpb=6cca7994b0b4b232df98a7c3856197d6075bf1cc;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libposix.so_src/include_exp/termios.h b/Usermode/Libraries/libposix.so_src/include_exp/termios.h index a200f2c4..bb3cf884 100644 --- a/Usermode/Libraries/libposix.so_src/include_exp/termios.h +++ b/Usermode/Libraries/libposix.so_src/include_exp/termios.h @@ -131,5 +131,27 @@ struct termios cc_t c_cc[NCCS]; }; +extern int tcgetattr(int fd, struct termios *termios_p); + +#define TCSANOW 0x01 +#define TCSADRAIN 0x02 +#define TCSAFLUSH 0x04 +extern int tcsetattr(int fd, int optional_actions, const struct termios *termios_p); + +// ioctl() calls for terminals +enum +{ + TIOCGWINSZ, + TIOCSWINSZ +}; + +struct winsize { + unsigned short ws_row; + unsigned short ws_col; + unsigned short ws_xpixel; /* unused */ + unsigned short ws_ypixel; /* unused */ +}; + + #endif