LibC/Kernel: Cleanup termios code

This is still not correct, but much better than it used to be
This commit is contained in:
2024-07-30 11:10:43 +03:00
parent 9bc02c81f8
commit 681d8327f5
9 changed files with 99 additions and 49 deletions

View File

@@ -15,8 +15,8 @@ __BEGIN_DECLS
O(SYS_OPENAT, openat) \
O(SYS_SEEK, seek) \
O(SYS_TELL, tell) \
O(SYS_GET_TERMIOS, gettermios) \
O(SYS_SET_TERMIOS, settermios) \
O(SYS_TCGETATTR, tcgetattr) \
O(SYS_TCSETATTR, tcsetattr) \
O(SYS_FORK, fork) \
O(SYS_EXEC, exec) \
O(SYS_SLEEP, sleep) \

View File

@@ -35,6 +35,8 @@ struct termios
tcflag_t c_cflag; /* Control modes. */
tcflag_t c_lflag; /* Local modes. */
cc_t c_cc[NCCS]; /* Control characters. */
speed_t c_ospeed;
speed_t c_ispeed;
};
#define BRKINT 0x001