[RFC 4/7] y2038: rt: clock_settime: Convert __clock_settime to __clock_settime64
Lukasz Majewski
lukma@denx.de
Wed Mar 27 08:52:00 GMT 2019
* 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(-)
diff --git a/rt/Versions b/rt/Versions
index 91e3fd2a20..d1cf04a56d 100644
--- a/rt/Versions
+++ b/rt/Versions
@@ -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;
}
}
diff --git a/rt/clock-compat.c b/rt/clock-compat.c
index d8ced3cdc1..6987a0b6bf 100644
--- a/rt/clock-compat.c
+++ b/rt/clock-compat.c
@@ -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))
diff --git a/rt/clock_settime.c b/rt/clock_settime.c
index 891925ab2c..598eb3edc5 100644
--- a/rt/clock_settime.c
+++ b/rt/clock_settime.c
@@ -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)
--
2.11.0
More information about the Libc-alpha
mailing list