This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH v7 0/3] y2038: Linux: Introduce __clock_settime64 function
- From: Lukasz Majewski <lukma at denx dot de>
- To: Joseph Myers <joseph at codesourcery dot com>, Zack Weinberg <zackw at panix dot com>
- Cc: Alistair Francis <alistair23 at gmail dot com>, Arnd Bergmann <arnd at arndb dot de>, Alistair Francis <alistair dot francis at wdc dot com>, GNU C Library <libc-alpha at sourceware dot org>, Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, Florian Weimer <fweimer at redhat dot com>, Carlos O'Donell <carlos at redhat dot com>, Stepan Golosunov <stepan at golosunov dot pp dot ru>, Lukasz Majewski <lukma at denx dot de>
- Date: Fri, 6 Sep 2019 16:59:08 +0200
- Subject: [PATCH v7 0/3] y2038: Linux: Introduce __clock_settime64 function
This patch set introduces the conversion of clock_settime to explicit
64 bit struct __timespec64 arguments. As a result this function is now
Y2038 safe.
This work is (loosely) based on a previous development/patches:
https://libc-alpha.sourceware.narkive.com/zniMOWui/rfc-patch-00-52-make-glibc-y2038-proof#post68
Github branch (including the y2038 conversion example):
https://github.com/lmajewski/y2038_glibc/commits/glibc__clock_settime-conversion-v7
Those patches have been applied on top of master branch:
SHA1: a26918cfda4bc4b9dad8aae1496e3ef7cbb63d96
Shall be used with provided meta-y2038 for development and testing:
https://github.com/lmajewski/meta-y2038
I've used guidelines from:
https://www.gnu.org/software/libc/manual/html_mono/libc.html
"D.2.1 64-bit time symbol handling in the GNU C Library"
to convert *clock_settime*.
and most notably from:
https://sourceware.org/glibc/wiki/Y2038ProofnessDesign#clock_gettime.28.29
Lukasz Majewski (3):
y2038: Introduce internal for glibc struct __timespec64
y2038: Provide conversion helpers for struct __timespec64
y2038: linux: Provide __clock_settime64 implementation
include/time.h | 116 ++++++++++++++++++++++++
sysdeps/unix/sysv/linux/clock_settime.c | 38 +++++++-
2 files changed, 150 insertions(+), 4 deletions(-)
--
2.20.1