[RFC,4/7] y2038: rt: clock_settime: Convert __clock_settime to __clock_settime64
Commit Message
* rt/Versions: Replace __clock_settime with __clock_settime64 in GLIBC_PRIVATE
* rt/clock-compat.c:
Remove COMPAT_REDIRECT for clock_settime (redirection done in time/time.h)
* rt/clock_settime.c: Rename __clock_settime to __clock_settime64
---
rt/Versions | 2 +-
rt/clock-compat.c | 3 ---
rt/clock_settime.c | 4 ++--
3 files changed, 3 insertions(+), 6 deletions(-)
@@ -5,7 +5,7 @@ libc {
clock_nanosleep;
}
GLIBC_PRIVATE {
- __clock_getres; __clock_gettime; __clock_settime; __clock_getcpuclockid;
+ __clock_getres; __clock_gettime; __clock_settime64; __clock_getcpuclockid;
__clock_nanosleep;
}
}
@@ -48,9 +48,6 @@ COMPAT_REDIRECT (clock_getres,
COMPAT_REDIRECT (clock_gettime,
(clockid_t clock_id, struct timespec *tp),
(clock_id, tp))
-COMPAT_REDIRECT (clock_settime,
- (clockid_t clock_id, const struct timespec *tp),
- (clock_id, tp))
COMPAT_REDIRECT (clock_getcpuclockid,
(pid_t pid, clockid_t *clock_id),
(pid, clock_id))
@@ -21,10 +21,10 @@
/* Set CLOCK to value TP. */
int
-__clock_settime (clockid_t clock_id, const struct timespec *tp)
+__clock_settime64 (clockid_t clock_id, const struct __timespec64 *tp)
{
__set_errno (ENOSYS);
return -1;
}
-weak_alias (__clock_settime, clock_settime)
+weak_alias (__clock_settime64, clock_settime)
stub_warning (clock_settime)