LibC: Define winsize in both termios.h and sys/ioctl.h

This commit is contained in:
2026-07-20 04:07:23 +03:00
parent 2c340c5532
commit 87006e277f
3 changed files with 24 additions and 8 deletions
+2 -8
View File
@@ -10,6 +10,8 @@ __BEGIN_DECLS
#define __need_pid_t
#include <sys/types.h>
#include <bits/types/winsize.h>
typedef unsigned int cc_t;
typedef unsigned int speed_t;
typedef unsigned int tcflag_t;
@@ -39,14 +41,6 @@ struct termios
speed_t c_ispeed;
};
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 BRKINT 0x001
#define ICRNL 0x002
#define IGNBRK 0x004