diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-07-06 13:27:12 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-09-11 16:20:49 -0300 |
commit | a92f4e6299fe0e3cb6f77e79de00817aece501ce (patch) | |
tree | 93d759cefc0864dff904e40608ec7435bd8a2f8a /include/sys | |
parent | 7c437d37789939a1411da0c04f748384bc5aee59 (diff) | |
download | glibc-a92f4e6299fe0e3cb6f77e79de00817aece501ce.tar.gz glibc-a92f4e6299fe0e3cb6f77e79de00817aece501ce.tar.xz glibc-a92f4e6299fe0e3cb6f77e79de00817aece501ce.zip |
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>
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/select.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/sys/select.h b/include/sys/select.h index 07bb49b994..b5ae9af861 100644 --- a/include/sys/select.h +++ b/include/sys/select.h @@ -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, |