linux-user: Special-case ERESTARTSYS in target_strerror()
commitda2a34f7f9999da09f6c307b40b66eba8cc38283
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Jun 2016 18:58:19 +0000 (6 19:58 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Wed, 8 Jun 2016 09:06:57 +0000 (8 12:06 +0300)
tree8143433a8cafa45a4eff948cef87f80b6ff0ea44
parent7dcdaeafe07dd87079c4e073bced4cfc8bf5fdf3
linux-user: Special-case ERESTARTSYS in target_strerror()

Since TARGET_ERESTARTSYS and TARGET_ESIGRETURN are internal-to-QEMU
error numbers, handle them specially in target_strerror(), to avoid
confusing strace output like:

9521 rt_sigreturn(14,8,274886297808,8,0,268435456) = -1 errno=513 (Unknown error 513)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c