diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-01-07 16:32:05 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-01-07 16:32:05 +0200 |
| commit | be78fcb0acc665d4db8edb9cda53f6863d27dd85 (patch) | |
| tree | e9e33e9e48983f630098eedd3d931edbe86e4410 /include/apos/types.h | |
| parent | 9cc125fb3cfdc2c8ae7153b5ae0fe705980835fb (diff) | |
| download | kmi-be78fcb0acc665d4db8edb9cda53f6863d27dd85.tar.gz kmi-be78fcb0acc665d4db8edb9cda53f6863d27dd85.zip | |
Improved header dependency tree
Diffstat (limited to 'include/apos/types.h')
| -rw-r--r-- | include/apos/types.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/apos/types.h b/include/apos/types.h index 7cc4e28..7d690de 100644 --- a/include/apos/types.h +++ b/include/apos/types.h @@ -175,4 +175,21 @@ typedef intmax_t ssize_t; #define NULL 0 +/* some common types used throughout the kernel */ +typedef int_fast8_t stat_t; +typedef uint_fast32_t id_t; +typedef uint_fast8_t mflags_t; + +/* error types (should this go somewhere else? */ +/* negative error codes are reserved for general usage, positive error codes are + * allowed to be function-specific. */ +enum { + ERR_ADDR = -3, /* illegal address */ + ERR_ALIGN = -2, /* wrong alignment */ + ERR_NF = -1, /* not found */ + OK = 0, /* OK */ +}; + +#include <types.h> /* arch-specific type definitions (pm_t/vm_t etc) */ + #endif /* APOS_TYPES_H */ |
