diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-10-11 11:39:04 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-10-17 11:05:40 -0300 |
commit | 765cdd0bffd77960ae852104fc4ea5edcdb8aed3 (patch) | |
tree | 84fcbd5898b0a53b29af09ea49e07c28e21d6bd0 /include | |
parent | 06436acf819d9e6ada7be3ca977d5c0a23d3f138 (diff) | |
download | glibc-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 'include')
-rw-r--r-- | include/sys/sem.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/sys/sem.h b/include/sys/sem.h index b0fb201..69fdf1f 100644 --- a/include/sys/sem.h +++ b/include/sys/sem.h @@ -1 +1,9 @@ -#include <sysvipc/sys/sem.h> +#ifndef _SYS_SEM_H +# include <sysvipc/sys/sem.h> + +# ifndef _ISOMAC + +__typeof__ (semtimedop) __semtimedop attribute_hidden; + +# endif +#endif |