refactor: separate syscall interfaces from kernel space, into posix compliant structure.
[lunaix-os.git] / lunaix-os / includes / lunaix / types.h
index 0d1ad197fa05c8bb75bf4916ab7192c1e97ea431..7e6562c55c204d330b62e357a0be74b3d2cea7ba 100644 (file)
@@ -5,21 +5,6 @@
 #include <stdint.h>
 #include <usr/sys/types.h>
 
-#define PEXITTERM 0x100
-#define PEXITSTOP 0x200
-#define PEXITSIG 0x400
-
-#define PEXITNUM(flag, code) (flag | (code & 0xff))
-
-#define WNOHANG 1
-#define WUNTRACED 2
-#define WEXITSTATUS(wstatus) ((wstatus & 0xff))
-#define WIFSTOPPED(wstatus) ((wstatus & PEXITSTOP))
-#define WIFEXITED(wstatus)                                                     \
-    ((wstatus & PEXITTERM) && ((char)WEXITSTATUS(wstatus) >= 0))
-
-#define WIFSIGNALED(wstatus) ((wstatus & PEXITSIG))
-
 #define PACKED __attribute__((packed))
 
 // TODO: WTERMSIG