LibC: Implement tc{get,set}winsize

These were added in POSIX issue 8 :^)
This commit is contained in:
2026-05-15 16:51:58 +03:00
parent 05c9f0640c
commit bf2121e166
5 changed files with 31 additions and 21 deletions

View File

@@ -42,15 +42,8 @@ __BEGIN_DECLS
#define FIONREAD 40 /* get number of input bytes available */
#define FIONBIO 41
struct winsize
{
unsigned short ws_row;
unsigned short ws_col;
unsigned short ws_xpixel; /* unused by kernel */
unsigned short ws_ypixel; /* unused by kernel */
};
#define TIOCGWINSZ 50
#define TIOCSWINSZ 51
#define TIOCGWINSZ 50
#define TIOCSWINSZ 51
#define TCGETS 52
#define TCSETS 53
#define TCSETSW 54