diff options
author | comex | 2015-01-25 01:52:49 -0500 |
---|---|---|
committer | comex | 2015-01-25 01:52:49 -0500 |
commit | d8e5824e8bdf89e95c618c554b34e8789e58bd3c (patch) | |
tree | 182049e6828c360e6aaa26e859a0da22ac5bd047 /lib/strerror.c | |
parent | Add an explanatory (and legally obligatory) notice to substrate.h. (diff) | |
download | substitute-d8e5824e8bdf89e95c618c554b34e8789e58bd3c.tar.gz |
fix strerror
Diffstat (limited to 'lib/strerror.c')
-rw-r--r-- | lib/strerror.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/strerror.c b/lib/strerror.c index ac72214..3cdecae 100644 --- a/lib/strerror.c +++ b/lib/strerror.c @@ -5,14 +5,20 @@ EXPORT const char *substitute_strerror(int err) { #define CASE(code) case code: return #code switch (err) { + /* substitute.h */ CASE(SUBSTITUTE_OK); CASE(SUBSTITUTE_ERR_FUNC_TOO_SHORT); CASE(SUBSTITUTE_ERR_FUNC_BAD_INSN_AT_START); CASE(SUBSTITUTE_ERR_FUNC_JUMPS_TO_START); CASE(SUBSTITUTE_ERR_OOM); CASE(SUBSTITUTE_ERR_VM); + CASE(SUBSTITUTE_ERR_NOT_ON_MAIN_THREAD); + CASE(SUBSTITUTE_ERR_UNEXPECTED_PC_ON_OTHER_THREAD); + CASE(SUBSTITUTE_ERR_OUT_OF_RANGE); CASE(SUBSTITUTE_ERR_UNKNOWN_RELOCATION_TYPE); CASE(SUBSTITUTE_ERR_NO_SUCH_SELECTOR); + CASE(SUBSTITUTE_ERR_ADJUSTING_THREADS); + /* substitute-internal.h */ CASE(SUBSTITUTE_ERR_TASK_FOR_PID); CASE(SUBSTITUTE_ERR_MISC); default: |