[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 01/12] linux-user/alpha: Handle TARGET_EWOULDBLOCK as TARGET_
From: |
Laurent Vivier |
Subject: |
Re: [PATCH 01/12] linux-user/alpha: Handle TARGET_EWOULDBLOCK as TARGET_EAGAIN |
Date: |
Wed, 7 Jul 2021 21:25:24 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
Le 04/07/2021 à 20:37, Philippe Mathieu-Daudé a écrit :
> Linux kernel defines EWOULDBLOCK as EAGAIN (since before v2.6.12-rc2).
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> linux-user/alpha/target_syscall.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/linux-user/alpha/target_syscall.h
> b/linux-user/alpha/target_syscall.h
> index fd389422e31..4e6f9360566 100644
> --- a/linux-user/alpha/target_syscall.h
> +++ b/linux-user/alpha/target_syscall.h
> @@ -44,6 +44,8 @@ struct target_pt_regs {
> #define UNAME_MACHINE "alpha"
> #define UNAME_MINIMUM_RELEASE "2.6.32"
>
> +#undef TARGET_EWOULDBLOCK
> +#define TARGET_EWOULDBLOCK TARGET_EAGAIN /* Operation would block */
> #undef TARGET_EDEADLK
> #define TARGET_EDEADLK 11
> #undef TARGET_EAGAIN
>
Applied to my linux-user-for-6.1 branch.
Thanks,
Laurent
- [PATCH 00/12] linux-user: Extract target errno related functions to 'target_errno.h', Philippe Mathieu-Daudé, 2021/07/04
- [PATCH 01/12] linux-user/alpha: Handle TARGET_EWOULDBLOCK as TARGET_EAGAIN, Philippe Mathieu-Daudé, 2021/07/04
- [PATCH 02/12] linux-user/hppa: Handle TARGET_EWOULDBLOCK as TARGET_EAGAIN, Philippe Mathieu-Daudé, 2021/07/04
- [PATCH 03/12] linux-user/mips: Handle TARGET_EWOULDBLOCK as TARGET_EAGAIN, Philippe Mathieu-Daudé, 2021/07/04
- [PATCH 04/12] linux-user/sparc: Rename target_errno.h -> target_errno_defs.h, Philippe Mathieu-Daudé, 2021/07/04
- [PATCH 05/12] linux-user: Extract target errno to 'target_errno_defs.h', Philippe Mathieu-Daudé, 2021/07/04