]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
y2038: fix: Add missing libc_hidden_def attribute for some syscall wrappers
authorLukasz Majewski <lukma@denx.de>
Sat, 14 Mar 2020 23:18:36 +0000 (00:18 +0100)
committerLukasz Majewski <lukma@denx.de>
Mon, 23 Mar 2020 20:21:28 +0000 (21:21 +0100)
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.

sysdeps/unix/sysv/linux/clock_getres.c
sysdeps/unix/sysv/linux/clock_gettime.c
sysdeps/unix/sysv/linux/clock_nanosleep.c
sysdeps/unix/sysv/linux/clock_settime.c
sysdeps/unix/sysv/linux/ppoll.c

index fee693c36f3406bb51f2aac316ca4cc898bb852e..5f6955ab10ce5ea0ca5cf3cfb31ccfaa0f7327b2 100644 (file)
@@ -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)
 {
index d6c0b4f637adda7fb0b249a12d683ef606e7911b..bfe3823b68759a73587b4d115b77d6820f5b162f 100644 (file)
@@ -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)
 {
index 48175ef1dacf26edaebee1d53b7fb8b9be23ec62..cc7a09569d75eeda0eb6313ef207a1680107052f 100644 (file)
@@ -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)
index e704e1dbe7ef62e2cfa5ba5d9d9e60bf844e7e72..ebda871f4cde1eae501199ebbf0866bd3b2429a8 100644 (file)
@@ -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)
 {
index 3fcd19efb4f395f6cb7a60e5f98cc603b9c0bcb6..4ffb23710e5365a221aedef10f98107a52f735a9 100644 (file)
@@ -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)