mirror of https://github.com/xemu-project/xemu.git
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>
This commit is contained in:
parent
6eb9dbf6a7
commit
538fabcb46
|
@ -2987,7 +2987,7 @@ static abi_long do_socket(int domain, int type, int protocol)
|
||||||
#endif
|
#endif
|
||||||
protocol == NETLINK_KOBJECT_UEVENT ||
|
protocol == NETLINK_KOBJECT_UEVENT ||
|
||||||
protocol == NETLINK_AUDIT)) {
|
protocol == NETLINK_AUDIT)) {
|
||||||
return -EPFNOSUPPORT;
|
return -TARGET_EPFNOSUPPORT;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (domain == AF_PACKET ||
|
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)
|
abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr)
|
||||||
{
|
{
|
||||||
return -ENOSYS;
|
return -TARGET_ENOSYS;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr)
|
abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr)
|
||||||
|
|
Loading…
Reference in New Issue