mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
y2038: fix: Add missing libc_hidden_def attribute for some syscall wrappers
During the conversion to support 64 bit time on some architectures with __WORDSIZE == 32 && __TIMESIZE != 64 the libc_hidden_def attribute for eligible functions was by mistake omitted. This patch fixes this issue and exports (and allows using) those functions when Y2038 support is enabled in glibc.
This commit is contained in:
parent
b8de7980c0
commit
0334369949
@ -72,6 +72,8 @@ __clock_getres64 (clockid_t clock_id, struct __timespec64 *res)
|
||||
}
|
||||
|
||||
#if __TIMESIZE != 64
|
||||
libc_hidden_def (__clock_getres64)
|
||||
|
||||
int
|
||||
__clock_getres (clockid_t clock_id, struct timespec *res)
|
||||
{
|
||||
|
@ -73,6 +73,8 @@ __clock_gettime64 (clockid_t clock_id, struct __timespec64 *tp)
|
||||
}
|
||||
|
||||
#if __TIMESIZE != 64
|
||||
libc_hidden_def (__clock_gettime64)
|
||||
|
||||
int
|
||||
__clock_gettime (clockid_t clock_id, struct timespec *tp)
|
||||
{
|
||||
|
@ -79,6 +79,8 @@ __clock_nanosleep_time64 (clockid_t clock_id, int flags, const struct __timespec
|
||||
}
|
||||
|
||||
#if __TIMESIZE != 64
|
||||
libc_hidden_def (__clock_nanosleep_time64)
|
||||
|
||||
int
|
||||
__clock_nanosleep (clockid_t clock_id, int flags, const struct timespec *req,
|
||||
struct timespec *rem)
|
||||
|
@ -55,6 +55,8 @@ __clock_settime64 (clockid_t clock_id, const struct __timespec64 *tp)
|
||||
}
|
||||
|
||||
#if __TIMESIZE != 64
|
||||
libc_hidden_def (__clock_settime64)
|
||||
|
||||
int
|
||||
__clock_settime (clockid_t clock_id, const struct timespec *tp)
|
||||
{
|
||||
|
@ -67,6 +67,8 @@ __ppoll64 (struct pollfd *fds, nfds_t nfds, const struct __timespec64 *timeout,
|
||||
}
|
||||
|
||||
#if __TIMESIZE != 64
|
||||
libc_hidden_def (__ppoll64)
|
||||
|
||||
int
|
||||
__ppoll (struct pollfd *fds, nfds_t nfds, const struct timespec *timeout,
|
||||
const sigset_t *sigmask)
|
||||
|
Loading…
Reference in New Issue
Block a user