From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id E45FC1F461 for ; Fri, 6 Sep 2019 14:59:36 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=aAk1DKk2QOPaczzxjCXlfaGfpCYdMSwWMBWA/eE1nW+U+uA6cneSe gLkdHVIYxEuqeUqFRVK7jzviMCTY5aYr6mr8Lo5oWlEo+xGRI5gTRIxT4PQs1DLa Lsp6Yldmh8TTozJ96ZXTsdhMLovPJe2eNwnK3LGhaFu3DxlPrhEKN8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=Sq7BjYCfHFpnIHU4X4y4OYb3p98=; b=yle0G7w9zfWY3l1ZSmVJ3MxxiLY+ FbzPDPuxenSHmkQXnG3dfJTwuqo9xLI1TpjGk20BGZ/nBV5IF6beA6ct2G5xYYiA fW2ZjjMisOOxx69Eipb6Hm4V+fT4Nv1P81a0sDybedtlhCIplZ5m0t6gKMHhLeUj ohR1URCfH4uijg4= Received: (qmail 63870 invoked by alias); 6 Sep 2019 14:59:34 -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 Received: (qmail 63788 invoked by uid 89); 6 Sep 2019 14:59:34 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mail-out.m-online.net From: Lukasz Majewski 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 Subject: [PATCH v7 0/3] y2038: Linux: Introduce __clock_settime64 function Date: Fri, 6 Sep 2019 16:59:08 +0200 Message-Id: <20190906145911.30207-1-lukma@denx.de> 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