aboutsummaryrefslogtreecommitdiff
path: root/sysvipc
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-10-11 11:39:04 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-10-17 11:05:40 -0300
commit765cdd0bffd77960ae852104fc4ea5edcdb8aed3 (patch)
tree84fcbd5898b0a53b29af09ea49e07c28e21d6bd0 /sysvipc
parent06436acf819d9e6ada7be3ca977d5c0a23d3f138 (diff)
downloadglibc-765cdd0bffd77960ae852104fc4ea5edcdb8aed3.zip
glibc-765cdd0bffd77960ae852104fc4ea5edcdb8aed3.tar.gz
glibc-765cdd0bffd77960ae852104fc4ea5edcdb8aed3.tar.bz2
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 <fweimer@redhat.com>
Diffstat (limited to 'sysvipc')
-rw-r--r--sysvipc/semtimedop.c6
1 files changed, 4 insertions, 2 deletions
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)