[tyndur-devel] [PATCH] libc: POSIX: Div. Header erweitern
Antoine Kaufmann ·
+ libc: POSIX: Div. Header erweitern Signed-off-by: Antoine Kaufmann <toni at tyndur.org> --- src/modules/include/sys/types.h | 10 ++++++++++ src/modules/include/termios.h | 30 +++++++++++++++++++----------- 2 files changed, 29 insertions(+), 11 deletions(-) diff --git a/src/modules/include/sys/types.h b/src/modules/include/sys/types.h index 0e538c5..f443e5a 100644 --- a/src/modules/include/sys/types.h +++ b/src/modules/include/sys/types.h @@ -28,6 +28,8 @@ #ifndef _SYS_TYPES_H_ #define _SYS_TYPES_H_ +#include <stdint.h> + // FIXME #define _NO_LOST_TYPES #include <types.h> @@ -45,5 +47,13 @@ typedef unsigned int blkcnt_t; typedef long time_t; typedef unsigned long suseconds_t; +typedef uint64_t clock_t; + +typedef uint8_t u_int8_t; +typedef uint16_t u_int16_t; +typedef uint32_t u_int32_t; +typedef uint64_t u_int64_t; +typedef unsigned int u_int; +typedef unsigned long u_long; #endif //ifndef _SYS_TYPES_H_ diff --git a/src/modules/include/termios.h b/src/modules/include/termios.h index bd54fe8..06a23b9 100644 --- a/src/modules/include/termios.h +++ b/src/modules/include/termios.h @@ -31,18 +31,26 @@ #ifndef CONFIG_LIBC_NO_STUBS -// Anzahl der Kontrollzeichen -#define NCCS 10 - -// Namen fuer Zeichen in c_cc -/// Ein Zeichen loeschen -#define VERASE 0 -/// -#define VKILL 1 -/// -#define VMIN 2 -/// -#define VTIME 3 +/// Namen fuer Zeichen in c_cc +enum { + VINTR, + VQUIT, + VERASE, + VKILL, + VEOF, + VTIME, + VMIN, + VSTART, + VSTOP, + VSUSP, + VEOL, + VWERASE, + VLNEXT, + VEOL2, + + /// Anzahl der Kontrollzeichen + NCCS +}; // Eingabeflags /// CR => NL bei der Eingabe -- 1.6.0.6