diff options
Diffstat (limited to 'source/kit/status.h')
-rw-r--r-- | source/kit/status.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/source/kit/status.h b/source/kit/status.h index be54aad..7ea1c4d 100644 --- a/source/kit/status.h +++ b/source/kit/status.h @@ -1,11 +1,13 @@ #ifndef KIT_STATUS_H #define KIT_STATUS_H -#include "types.h" +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif enum { KIT_OK = 0, - KIT_ERROR_INTERNAL = 1, + KIT_PARSING_FAILED = 1, KIT_ERROR_BAD_ALLOC = (1 << 1), KIT_ERROR_INVALID_ARGUMENT = (1 << 2), KIT_ERROR_MKDIR_FAILED = (1 << 3), @@ -27,9 +29,15 @@ enum { KIT_ERROR_SYNC_FAILED = (1 << 19), KIT_ERROR_CLOSE_FAILED = (1 << 20), KIT_ERROR_RESOURCE_UNAVAILABLE = (1 << 21), - KIT_ERROR_NOT_IMPLEMENTED = (1 << 30), + KIT_ERROR_FORK_FAILED = (1 << 22), + KIT_ERROR_EXECVE_FAILED = (1 << 23), + KIT_ERROR_WAITPID_FAILED = (1 << 24), + KIT_ERROR_PIPE_FAILED = (1 << 25), + KIT_ERROR_DUP2_FAILED = (1 << 26), + KIT_ERROR_CHDIR_FAILED = (1 << 27), + KIT_ERROR_KILL_FAILED = (1 << 28), + KIT_ERROR_INTERNAL = (1 << 30), + KIT_ERROR_NOT_IMPLEMENTED = -1, }; -typedef i32 kit_status_t; - #endif |