aboutsummaryrefslogtreecommitdiff
path: root/include/apos/types.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-01-07 17:33:55 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2022-01-07 17:33:55 +0200
commitebe6fe5d44d58fcb1b9d0ac52fa98a0a3ff309a7 (patch)
tree1273c7815d6790e746f6e7ecfcd464e5cab39f2e /include/apos/types.h
parentbe78fcb0acc665d4db8edb9cda53f6863d27dd85 (diff)
downloadkmi-ebe6fe5d44d58fcb1b9d0ac52fa98a0a3ff309a7.tar.gz
kmi-ebe6fe5d44d58fcb1b9d0ac52fa98a0a3ff309a7.zip
Steps towards better status/debugging control
Diffstat (limited to 'include/apos/types.h')
-rw-r--r--include/apos/types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/apos/types.h b/include/apos/types.h
index 7d690de..2d9bef1 100644
--- a/include/apos/types.h
+++ b/include/apos/types.h
@@ -178,12 +178,14 @@ typedef intmax_t ssize_t;
/* 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;
+typedef uint_fast8_t vmflags_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_EXT = -5, /* already exists */
+ ERR_OOMEM = -4, /* out of memory */
ERR_ADDR = -3, /* illegal address */
ERR_ALIGN = -2, /* wrong alignment */
ERR_NF = -1, /* not found */