From 67c9dc06ca0b5aec6430d50af9444bbe85b6deb5 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 16 Apr 2022 20:27:46 +0300 Subject: initial thread id handling + At least initial in the sense that this seems like the smartest way to handle things, that is. --- include/apos/types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/apos/types.h') diff --git a/include/apos/types.h b/include/apos/types.h index 48972da..2f06ec4 100644 --- a/include/apos/types.h +++ b/include/apos/types.h @@ -184,6 +184,8 @@ typedef uint_fast16_t vmflags_t; /* negative error codes are reserved for general usage, positive error codes are * allowed to be function-specific. */ enum { + ERR_NOINIT = -7, /* not initialized */ + ERR_INVAL = -6, /* invalid value */ ERR_EXT = -5, /* already exists */ ERR_OOMEM = -4, /* out of memory */ ERR_ADDR = -3, /* illegal address */ -- cgit v1.3