linux-user/syscall.c: Add EAGAIN to host_to_target_errno_table for
PATCH 1/1 linux-user/syscall.c: Add EAGAIN to host_to_target_errno_table for
From: Chen Gang <[email protected]>
Under Alpha host, EAGAIN is redefined to 35, so it need be remapped too.
Signed-off-by Chen Gang <[email protected]>
--- linux-user/syscall.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
linux-user/syscall.c +1 -0
@@ -457,6 +457,7 @@ static uint16_t target_to_host_errno_table[ERRNO_TABLE_SIZE] = {* minus the errnos that are not actually generic to all archs. */ static uint16_t host_to_target_errno_table[ERRNO_TABLE_SIZE ] = { + [EAGAIN ] =TARGET_EAGAIN , [EIDRM ] =TARGET_EIDRM , [ECHRNG ] =TARGET_ECHRNG , [EL2NSYNC ] =TARGET_EL2NSYNC ,
Signature · 1 line
1.7.3.4
Quoted 14 lines · On 7 September 2015 at 03:35, <[email protected]> wrote:
From: Chen Gang <[email protected]>
Under Alpha host, EAGAIN is redefined to 35, so it need be remapped too.
Signed-off-by Chen Gang <[email protected]>--- linux-user/syscall.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)linux-user/syscall.c +0
-0
linux-user/syscall.c static uint16_t target_to_host_errno_table[ERRNO_TABLE_SIZE] = { · line 463
Quoted 7 lines
linux-user/syscall.c +1
-0@@ -457,6 +457,7 @@ static uint16_t target_to_host_errno_table[ERRNO_TABLE_SIZE] = {* minus the errnos that are not actually generic to all archs. */ static uint16_t host_to_target_errno_table[ERRNO_TABLE_SIZE ] = { + [EAGAIN ] =TARGET_EAGAIN , [EIDRM ] =TARGET_EIDRM , [ECHRNG ] =TARGET_ECHRNG , [EL2NSYNC ] =TARGET_EL2NSYNC ,
Reviewed-by Peter Maydell <[email protected]>
thanks
-- PMM