fix dependency check logic cause config always disabled
[lunaix-os.git] / lunaix-os / includes / usr / lunaix / term.h
index 8866b308971a38adbe8a25b44d16ce27ac3c46af..e9d79024819698d3bee7ff66ffb0e8b5ec523a16 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __LUNAIX_UTERM_H
-#define __LUNAIX_UTERM_H
+#ifndef _LUNAIX_UHDR_UTERM_H
+#define _LUNAIX_UHDR_UTERM_H
 
 #define _BRKINT (1)
 #define _ICRNL (1 << 1)
 #define _B19200 19200
 #define _B38400 38400
 
+#define _CLOCAL 1
+#define _CREAD (1 << 1)
+#define _CSZ_MASK (0b11 << 2)
+#define _CS5 (0b00 << 2)
+#define _CS6 (0b01 << 2)
+#define _CS7 (0b10 << 2)
+#define _CS8 (0b11 << 2)
+#define _CSTOPB (1 << 4)
+#define _CHUPCL (1 << 5)
+#define _CPARENB (1 << 6)
+#define _CPARODD (1 << 7)
+
 #define _TCSANOW 1
 #define _TCSADRAIN 2
 #define _TCSAFLUSH 3
@@ -82,7 +94,7 @@ typedef int tcflag_t;
 typedef char cc_t;
 typedef unsigned int speed_t;
 
-struct _termios
+struct termios
 {
     tcflag_t c_iflag;
     tcflag_t c_oflag;
@@ -92,4 +104,4 @@ struct _termios
     speed_t c_baud;
 };
 
-#endif /* __LUNAIX_UTERM_H */
+#endif /* _LUNAIX_UHDR_UTERM_H */