[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 6/8] linux-user/mips: Handle TARGET_EWOULDBLOCK as TARGET_EAGAIN
From: |
Laurent Vivier |
Subject: |
[PULL 6/8] linux-user/mips: Handle TARGET_EWOULDBLOCK as TARGET_EAGAIN |
Date: |
Thu, 8 Jul 2021 12:07:54 +0200 |
From: Philippe Mathieu-Daudé <f4bug@amsat.org>
Linux kernel defines EWOULDBLOCK as EAGAIN (since before v2.6.12-rc2).
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210704183755.655002-4-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
linux-user/mips/target_syscall.h | 2 ++
linux-user/mips64/target_syscall.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/linux-user/mips/target_syscall.h b/linux-user/mips/target_syscall.h
index dd6fd7af8eac..3e558fdb4b40 100644
--- a/linux-user/mips/target_syscall.h
+++ b/linux-user/mips/target_syscall.h
@@ -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
diff --git a/linux-user/mips64/target_syscall.h
b/linux-user/mips64/target_syscall.h
index 8594955eec26..c54374c5a295 100644
--- a/linux-user/mips64/target_syscall.h
+++ b/linux-user/mips64/target_syscall.h
@@ -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
--
2.31.1
- [PULL 0/8] Linux user for 6.1 patches, Laurent Vivier, 2021/07/08
- [PULL 1/8] linux-user/elfload: Implement ELF_HWCAP for RISC-V, Laurent Vivier, 2021/07/08
- [PULL 2/8] linux-user: fill ppid field in /proc/self/stat, Laurent Vivier, 2021/07/08
- [PULL 4/8] linux-user/alpha: Handle TARGET_EWOULDBLOCK as TARGET_EAGAIN, Laurent Vivier, 2021/07/08
- [PULL 3/8] linux-user: Fix style problems in linuxload.c, Laurent Vivier, 2021/07/08
- [PULL 5/8] linux-user/hppa: Handle TARGET_EWOULDBLOCK as TARGET_EAGAIN, Laurent Vivier, 2021/07/08
- [PULL 7/8] linux-user/alpha: Remove hardcoded tabs (code style), Laurent Vivier, 2021/07/08
- [PULL 6/8] linux-user/mips: Handle TARGET_EWOULDBLOCK as TARGET_EAGAIN,
Laurent Vivier <=
- [PULL 8/8] linux-user/syscall: Remove hardcoded tabs (code style), Laurent Vivier, 2021/07/08
- Re: [PULL 0/8] Linux user for 6.1 patches, Peter Maydell, 2021/07/08