about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2020-01-27 10:05:53 +0100
committerAndreas Schwab <schwab@suse.de>2020-02-03 12:16:09 +0100
commit6befb33f31f034a0e8876ce6427dacdfa0cd7ea7 (patch)
treeddbddafff15825f47898a1ffd77072febacb39ee /include
parentcdeae33d71696bb0e81667d4788d0b38606aefb6 (diff)
downloadglibc-6befb33f31f034a0e8876ce6427dacdfa0cd7ea7.tar.gz
glibc-6befb33f31f034a0e8876ce6427dacdfa0cd7ea7.tar.xz
glibc-6befb33f31f034a0e8876ce6427dacdfa0cd7ea7.zip
rt: avoid PLT setup in timer_[sg]ettime
The functions __timer_gettime64 and __timer_settime64 live in librt, not
libc.  Use proper hidden aliases so that the callers do not need to set up
the PLT register.

Fixes commits cae1635a70 ("y2038: linux: Provide __timer_settime64
implementation") and 562cdc19c7 ("y2038: linux: Provide __timer_gettime64
implementation").
Diffstat (limited to 'include')
-rw-r--r--include/time.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/time.h b/include/time.h
index 558923274a..f712a0e167 100644
--- a/include/time.h
+++ b/include/time.h
@@ -185,7 +185,7 @@ libc_hidden_proto (__futimens64);
 #else
 extern int __timer_gettime64 (timer_t timerid, struct __itimerspec64 *value);
 extern int __timerfd_gettime64 (int fd, struct __itimerspec64 *value);
-libc_hidden_proto (__timer_gettime64);
+librt_hidden_proto (__timer_gettime64);
 libc_hidden_proto (__timerfd_gettime64);
 #endif
 
@@ -199,7 +199,7 @@ extern int __timer_settime64 (timer_t timerid, int flags,
 extern int __timerfd_settime64 (int fd, int flags,
                                 const struct __itimerspec64 *value,
                                 struct __itimerspec64 *ovalue);
-libc_hidden_proto (__timer_settime64);
+librt_hidden_proto (__timer_settime64);
 libc_hidden_proto (__timerfd_settime64);
 #endif