From 765cdd0bffd77960ae852104fc4ea5edcdb8aed3 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 11 Oct 2019 11:39:04 -0300 Subject: sysvipc: Implement semop based on semtimedop Besides semop being a subset of semtimedop, new 32-bit architectures on Linux are not expected to provide the syscall (only the 64-bit time semtimedop). Also, Linux 5.1 only wired-up semtimedop for the 64-bit architectures that missed it (powerpc, s390, and sparc). This simplifies the code to support it. Checked on x86_64-linux-gnu and i686-linux-gnu. Reviewed-by: Florian Weimer --- sysdeps/unix/sysv/linux/semop.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sysdeps/unix/sysv/linux/semop.c') diff --git a/sysdeps/unix/sysv/linux/semop.c b/sysdeps/unix/sysv/linux/semop.c index 687fdcb..e111b9a 100644 --- a/sysdeps/unix/sysv/linux/semop.c +++ b/sysdeps/unix/sysv/linux/semop.c @@ -26,9 +26,5 @@ int semop (int semid, struct sembuf *sops, size_t nsops) { -#ifdef __ASSUME_DIRECT_SYSVIPC_SYSCALLS - return INLINE_SYSCALL_CALL (semop, semid, sops, nsops); -#else - return INLINE_SYSCALL_CALL (ipc, IPCOP_semop, semid, nsops, 0, sops); -#endif + return __semtimedop (semid, sops, nsops, NULL); } -- cgit v1.1