mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
linux-user: emulate msgsnd(), msgrcv() and semtimedop()
When we have updated kernel headers to 5.2-rc1 we have introduced
new syscall numbers that can be not supported by older kernels
and fail with ENOSYS while the guest emulation succeeded before
because the syscalls were emulated with ipc().
This patch fixes the problem by using ipc() if the new syscall
returns ENOSYS.
Fixes: 86e636951d
("linux-user: fix __NR_semtimedop undeclared error")
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20190529084804.25950-1-laurent@vivier.eu>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
f3a8bdc1d5
commit
524fa3408e
2 changed files with 31 additions and 31 deletions
|
@ -32,6 +32,7 @@
|
|||
#define TARGET_SYS_RECVMMSG 19 /* recvmmsg() */
|
||||
#define TARGET_SYS_SENDMMSG 20 /* sendmmsg() */
|
||||
|
||||
#define IPCOP_CALL(VERSION, OP) ((VERSION) << 16 | (OP))
|
||||
#define IPCOP_semop 1
|
||||
#define IPCOP_semget 2
|
||||
#define IPCOP_semctl 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue