From patchwork Wed Mar 27 08:52:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 32003 Received: (qmail 16767 invoked by alias); 27 Mar 2019 08:52:41 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 16676 invoked by uid 89); 27 Mar 2019 08:52:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=__set_errno, H*Ad:D*edu X-HELO: mail-out.m-online.net From: Lukasz Majewski To: libc-alpha@sourceware.org, Joseph Myers Cc: Paul Eggert , Zack Weinberg , Lukasz Majewski Subject: [RFC 4/7] y2038: rt: clock_settime: Convert __clock_settime to __clock_settime64 Date: Wed, 27 Mar 2019 09:52:07 +0100 Message-Id: <20190327085210.22019-5-lukma@denx.de> In-Reply-To: <20190327085210.22019-1-lukma@denx.de> References: <20190327085210.22019-1-lukma@denx.de> * 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)