unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v7 0/3] y2038: Linux: Introduce __clock_settime64 function
@ 2019-09-06 14:59 Lukasz Majewski
  2019-09-06 14:59 ` [PATCH v7 1/3] y2038: Introduce internal for glibc struct __timespec64 Lukasz Majewski
                   ` (3 more replies)
  0 siblings, 4 replies; 24+ messages in thread
From: Lukasz Majewski @ 2019-09-06 14:59 UTC (permalink / raw)
  To: Joseph Myers, Zack Weinberg
  Cc: Alistair Francis, Arnd Bergmann, Alistair Francis, GNU C Library,
	Adhemerval Zanella, Florian Weimer, Carlos O'Donell,
	Stepan Golosunov, Lukasz Majewski

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


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2019-09-19 22:01 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-06 14:59 [PATCH v7 0/3] y2038: Linux: Introduce __clock_settime64 function Lukasz Majewski
2019-09-06 14:59 ` [PATCH v7 1/3] y2038: Introduce internal for glibc struct __timespec64 Lukasz Majewski
2019-09-06 14:59 ` [PATCH v7 2/3] y2038: Provide conversion helpers for " Lukasz Majewski
2019-09-06 14:59 ` [PATCH v7 3/3] y2038: linux: Provide __clock_settime64 implementation Lukasz Majewski
2019-09-06 16:52 ` [PATCH v7 0/3] y2038: Linux: Introduce __clock_settime64 function Alistair Francis
2019-09-06 21:28   ` Joseph Myers
2019-09-16 22:45     ` Alistair Francis
2019-09-17  0:44       ` Joseph Myers
2019-09-17 10:11       ` Lukasz Majewski
2019-09-17 13:42         ` Joseph Myers
2019-09-17 15:53           ` Lukasz Majewski
2019-09-17 16:51             ` Joseph Myers
2019-09-18 17:03               ` Alistair Francis
2019-09-18 17:25                 ` Joseph Myers
2019-09-18 21:37                   ` Lukasz Majewski
2019-09-18 21:45                     ` Joseph Myers
2019-09-19 21:56                   ` Alistair Francis
2019-09-18 21:28                 ` Lukasz Majewski
2019-09-18 22:26                   ` Alistair Francis
2019-09-19  7:50                     ` Lukasz Majewski
2019-09-06 21:55   ` Lukasz Majewski
2019-09-06 22:01     ` Alistair Francis
2019-09-13 14:36       ` Lukasz Majewski
2019-09-16 21:50         ` Alistair Francis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).