console: poll, ioctl and a few additions to the console thread

This commit is contained in:
Matheus
2023-07-08 22:06:14 -03:00
parent b4b18e7a69
commit bc6f56de6c
2 changed files with 129 additions and 6 deletions
+11
View File
@@ -16,6 +16,17 @@ typedef unsigned int tcflag_t;
#define ICRNL 0000400
#define OCRNL 0000010
#define TCGETS 0x5401
#define TCSETS 0x5402
#define TIOCGWINSZ 0x5413
typedef struct {
unsigned short ws_row;
unsigned short ws_col;
unsigned short ws_xpixel;
unsigned short ws_ypixel;
} winsize_t;
typedef struct {
tcflag_t c_iflag;
tcflag_t c_oflag;