mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-08 10:20:15 +00:00
7c437d3778
Either the __NR_semtimedop_time64 (for 32-bit) or the __NR_semtimedop (for 64-bit) syscall is used as default. The 32-bit fallback is used iff __ASSUME_TIME64_SYSCALLS is not defined, which assumes the kernel ABI provides either __NR_ipc or __NR_semtimeop (for 32-bit time_t). Checked on x86_64-linux-gnu and i686-linux-gnu (on 5.4 and on 4.15 kernel). Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
23 lines
516 B
C
23 lines
516 B
C
#ifndef _SYS_SEM_H
|
|
# include <sysvipc/sys/sem.h>
|
|
|
|
# ifndef _ISOMAC
|
|
|
|
__typeof__ (semtimedop) __semtimedop attribute_hidden;
|
|
|
|
#if __TIMESIZE == 64
|
|
# define __semctl64 __semctl
|
|
# define __semtimedop64 __semtimedop
|
|
#else
|
|
# include <struct___timespec64.h>
|
|
|
|
extern int __semctl64 (int semid, int semnum, int cmd, ...);
|
|
libc_hidden_proto (__semctl64);
|
|
extern int __semtimedop64 (int semid, struct sembuf *sops, size_t nsops,
|
|
const struct __timespec64 *tmo);
|
|
libc_hidden_proto (__semtimedop64);
|
|
#endif
|
|
|
|
# endif
|
|
#endif
|