]> Git Repo - qemu.git/commitdiff
linux-user/mips: Handle TARGET_EWOULDBLOCK as TARGET_EAGAIN
authorPhilippe Mathieu-Daudé <[email protected]>
Sun, 4 Jul 2021 18:37:46 +0000 (20:37 +0200)
committerLaurent Vivier <[email protected]>
Wed, 7 Jul 2021 19:26:46 +0000 (21:26 +0200)
Linux kernel defines EWOULDBLOCK as EAGAIN (since before v2.6.12-rc2).

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-Id: <20210704183755[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
linux-user/mips/target_syscall.h
linux-user/mips64/target_syscall.h

index dd6fd7af8eac2fe1bde8e861796e19d1bd6a5239..3e558fdb4b40387fc99ce5ea6b0a0a66565198ac 100644 (file)
@@ -21,6 +21,8 @@ struct target_pt_regs {
 };
 
 /* Target errno definitions taken from asm-mips/errno.h */
+#undef TARGET_EWOULDBLOCK
+#define TARGET_EWOULDBLOCK     TARGET_EAGAIN /* Operation would block */
 #undef TARGET_ENOMSG
 #define TARGET_ENOMSG          35      /* Identifier removed */
 #undef TARGET_EIDRM
index 8594955eec260f5fcbbd69bdbf9ded58e50612ea..c54374c5a295c7e2898d97dfc84a3bf121e2145a 100644 (file)
@@ -18,6 +18,8 @@ struct target_pt_regs {
 };
 
 /* Target errno definitions taken from asm-mips/errno.h */
+#undef TARGET_EWOULDBLOCK
+#define TARGET_EWOULDBLOCK     TARGET_EAGAIN /* Operation would block */
 #undef TARGET_ENOMSG
 #define TARGET_ENOMSG          35      /* Identifier removed */
 #undef TARGET_EIDRM
This page took 0.027241 seconds and 4 git commands to generate.