X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/59ecf21e36b2332f6adf2a568ef555283d8c119a..HEAD:/lunaix-os/includes/usr/lunaix/term.h diff --git a/lunaix-os/includes/usr/lunaix/term.h b/lunaix-os/includes/usr/lunaix/term.h index 8866b30..e9d7902 100644 --- a/lunaix-os/includes/usr/lunaix/term.h +++ b/lunaix-os/includes/usr/lunaix/term.h @@ -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) @@ -67,6 +67,18 @@ #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 */