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 --- sysvipc/semtimedop.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sysvipc/semtimedop.c') diff --git a/sysvipc/semtimedop.c b/sysvipc/semtimedop.c index 5ca4d47..68707d6 100644 --- a/sysvipc/semtimedop.c +++ b/sysvipc/semtimedop.c @@ -22,11 +22,13 @@ /* Perform user-defined atomical operation of array of semaphores. */ int -semtimedop (int semid, struct sembuf *sops, size_t nsops, - const struct timespec *timeout) +__semtimedop (int semid, struct sembuf *sops, size_t nsops, + const struct timespec *timeout) { __set_errno (ENOSYS); return -1; } +weak_alias (__semtimedop, semtimedop) +libc_hidden_def (__semtimedop) stub_warning (semtimedop) -- cgit v1.1