mirror of
git://sourceware.org/git/glibc.git
synced 2026-11-16 09:52:40 +08:00
linux: Add time64 pselect support
The syscall __NR_pselect6_time64 (32-bit) or __NR_pselect6 (64-bit) is used as default. For architectures with __ASSUME_TIME64_SYSCALLS the 32-bit fallback uses __NR_pselec6. To accomodate microblaze missing pselect6 support on kernel older than 3.15 the fallback is moved to its own function to the microblaze specific implementation can override it. 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>
This commit is contained in:
@@ -3,6 +3,22 @@
|
||||
|
||||
#ifndef _ISOMAC
|
||||
/* Now define the internal interfaces. */
|
||||
# if __TIMESIZE == 64
|
||||
# define __pselect64 __pselect
|
||||
#else
|
||||
# include <struct___timespec64.h>
|
||||
extern int __pselect64 (int __nfds, fd_set *__readfds,
|
||||
fd_set *__writefds, fd_set *__exceptfds,
|
||||
const struct __timespec64 *__timeout,
|
||||
const __sigset_t *__sigmask);
|
||||
libc_hidden_proto (__pselect64)
|
||||
|
||||
extern int __pselect32 (int __nfds, fd_set *__readfds,
|
||||
fd_set *__writefds, fd_set *__exceptfds,
|
||||
const struct __timespec64 *__timeout,
|
||||
const __sigset_t *__sigmask)
|
||||
attribute_hidden;
|
||||
#endif
|
||||
extern int __pselect (int __nfds, fd_set *__readfds,
|
||||
fd_set *__writefds, fd_set *__exceptfds,
|
||||
const struct timespec *__timeout,
|
||||
|
||||
Reference in New Issue
Block a user