2 * Acess2 POSIX Emulation
3 * - By John Hodge (thePowersGang)
13 int tcgetattr(int fd, struct termios *termios_p)
19 // Double-check `fd` describes a terminal
22 memset(termios_p, 0, sizeof(struct termios));
24 // Query kernel for other params
29 int tcsetattr(int fd, int optional_actions, const struct termios *termios_p)
36 if( !termios_p || (optional_actions & ~(7)) ) {