Message ID | 20210704183755.655002-4-f4bug@amsat.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | linux-user: Extract target errno related functions to 'target_errno.h' | expand |
On 7/4/21 11:37 AM, Philippe Mathieu-Daudé wrote: > Linux kernel defines EWOULDBLOCK as EAGAIN (since before v2.6.12-rc2). > > Signed-off-by: Philippe Mathieu-Daudé<f4bug@amsat.org> > --- > linux-user/mips/target_syscall.h | 2 ++ > linux-user/mips64/target_syscall.h | 2 ++ > 2 files changed, 4 insertions(+) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
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/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 dd6fd7af8ea..3e558fdb4b4 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 8594955eec2..c54374c5a29 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 > Applied to my linux-user-for-6.1 branch. Thanks, Laurent
diff --git a/linux-user/mips/target_syscall.h b/linux-user/mips/target_syscall.h index dd6fd7af8ea..3e558fdb4b4 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 8594955eec2..c54374c5a29 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
Linux kernel defines EWOULDBLOCK as EAGAIN (since before v2.6.12-rc2). Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> --- linux-user/mips/target_syscall.h | 2 ++ linux-user/mips64/target_syscall.h | 2 ++ 2 files changed, 4 insertions(+)