Message ID | da2a34f7f9999da09f6c307b40b66eba8cc38283.1465392531.git.riku.voipio@linaro.org |
---|---|
State | Accepted |
Commit | da2a34f7f9999da09f6c307b40b66eba8cc38283 |
Headers | show |
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 262c645..bd8095c 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -632,6 +632,13 @@ static inline int is_error(abi_long ret) const char *target_strerror(int err) { + if (err == TARGET_ERESTARTSYS) { + return "To be restarted"; + } + if (err == TARGET_QEMU_ESIGRETURN) { + return "Successful exit from sigreturn"; + } + if ((err >= ERRNO_TABLE_SIZE) || (err < 0)) { return NULL; }