termios: stub

This commit is contained in:
Matheus
2022-09-29 18:51:51 -03:00
parent 91a1781ecb
commit a30c79d951
2 changed files with 110 additions and 30 deletions
+23
View File
@@ -0,0 +1,23 @@
#ifndef _TERMIOS_H_INCLUDE
#define _TERMIOS_H_INCLUDE
typedef unsigned char cc_t;
typedef unsigned int speed_t;
typedef unsigned int tcflag_t;
#define NCCS 32
#define ECHO 0000010
#define ICANON 0000002
#define VMIN 6
typedef struct{
tcflag_t c_iflag;
tcflag_t c_oflag;
tcflag_t c_cflag;
tcflag_t c_lflag;
cc_t c_line;
cc_t c_cc[NCCS];
speed_t ibaud;
speed_t obaud;
} termios;
#endif