Skip to contentSkip to conversation

linux-user/syscall.c: Add EAGAIN to host_to_target_errno_table for

PATCH In review [email protected] 2 participants 2 messages Sep 7, 2015 – Sep 8, 2015

lore
Share & tools
lore
#0 lore raw

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.

---
 linux-user/syscall.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
linux-user/syscall.c +1 -0
index f62c698..380f5a8 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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.

---
 linux-user/syscall.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
linux-user/syscall.c +0 -0
index f62c698..380f5a8 100644

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,

thanks
-- PMM