aboutsummaryrefslogtreecommitdiff
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2020-04-25 00:00:33 +0200
committerLaurent Vivier <laurent@vivier.eu>2020-05-27 16:32:09 +0200
commit538fabcb46b956b65247b4e8cf701b63a58b70cc (patch)
treeba24b2a8e88de8e6a085f9054b85f5c8b5e0e3fc /linux-user/syscall.c
parent6eb9dbf6a744f07b437e07e5f590625ebb7ab4cc (diff)
downloadqemu-538fabcb46b956b65247b4e8cf701b63a58b70cc.zip
qemu-538fabcb46b956b65247b4e8cf701b63a58b70cc.tar.gz
qemu-538fabcb46b956b65247b4e8cf701b63a58b70cc.tar.bz2
linux-user: return target error codes for socket() and prctl()
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>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index e89b815..fd5c4f1 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)