[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 02/19] linux-user: return target error codes for socket() and p
From: |
Laurent Vivier |
Subject: |
[PULL v2 02/19] linux-user: return target error codes for socket() and prctl() |
Date: |
Sat, 6 Jun 2020 15:15:50 +0200 |
From: Helge Deller <deller@gmx.de>
Return target error codes instead of host error codes.
Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200424220033.GA28140@ls3530.fritz.box>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
linux-user/syscall.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index e89b815ce983..fd5c4f1d73e6 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -2987,7 +2987,7 @@ static abi_long do_socket(int domain, int type, int
protocol)
#endif
protocol == NETLINK_KOBJECT_UEVENT ||
protocol == NETLINK_AUDIT)) {
- return -EPFNOSUPPORT;
+ return -TARGET_EPFNOSUPPORT;
}
if (domain == AF_PACKET ||
@@ -5856,7 +5856,7 @@ static abi_long do_get_thread_area(CPUX86State *env,
abi_ulong ptr)
abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr)
{
- return -ENOSYS;
+ return -TARGET_ENOSYS;
}
#else
abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr)
--
2.26.2
- [PULL v2 00/19] Linux user for 5.1 patches, Laurent Vivier, 2020/06/06
- [PULL v2 00/19] Linux user for 5.1 patches, Laurent Vivier, 2020/06/06
- [PULL v2 01/19] linux-user, alpha: fix oldumount syscall, Laurent Vivier, 2020/06/06
- [PULL v2 02/19] linux-user: return target error codes for socket() and prctl(),
Laurent Vivier <=
- [PULL v2 07/19] Makefile: Only build virtiofsd if system-mode is enabled, Laurent Vivier, 2020/06/06
- [PULL v2 03/19] linux-user: Add support for /proc/cpuinfo on hppa platform, Laurent Vivier, 2020/06/06
- [PULL v2 05/19] linux-user/mmap.c: fix integer underflow in target_mremap, Laurent Vivier, 2020/06/06
- [PULL v2 12/19] stubs/Makefile: Reduce the user-mode object list, Laurent Vivier, 2020/06/06
- [PULL v2 11/19] util/Makefile: Reduce the user-mode object list, Laurent Vivier, 2020/06/06
- [PULL v2 16/19] target/i386: Restrict CpuClass::get_crash_info() to system-mode, Laurent Vivier, 2020/06/06
- [PULL v2 04/19] linux-user/strace.list: fix epoll_create{, 1} -strace output, Laurent Vivier, 2020/06/06
- [PULL v2 06/19] linux-user: implement OFD locks, Laurent Vivier, 2020/06/06
- [PULL v2 18/19] hw/core: Restrict CpuClass::get_crash_info() to system-mode, Laurent Vivier, 2020/06/06
- [PULL v2 10/19] tests/Makefile: Restrict some softmmu-only tests, Laurent Vivier, 2020/06/06