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: AS17314 8.43.84.0/22 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 7F6191F8C1 for ; Fri, 8 May 2020 14:57:04 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B434F396ECCD; Fri, 8 May 2020 14:57:03 +0000 (GMT) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by sourceware.org (Postfix) with ESMTPS id 0D38F385DC1B for ; Fri, 8 May 2020 14:57:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0D38F385DC1B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=lukma@denx.de Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 49JYMH1wbSz1rsXc; Fri, 8 May 2020 16:56:59 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 49JYMG6hRWz1r79j; Fri, 8 May 2020 16:56:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 3cmfw5WR1fMf; Fri, 8 May 2020 16:56:57 +0200 (CEST) X-Auth-Info: cnzKRJrsUu08XQyk76zkj/9OZ/kDq6QfNQiofQ9xhhE= Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 8 May 2020 16:56:57 +0200 (CEST) From: Lukasz Majewski To: Joseph Myers , Adhemerval Zanella Subject: [PATCH v2 0/7] y2038: Convert clock_adjtime related syscalls to support 64 bit time Date: Fri, 8 May 2020 16:56:33 +0200 Message-Id: <20200508145640.16336-1-lukma@denx.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Florian Weimer , GNU C Library , Andreas Schwab , Alistair Francis Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" This patch series converts clock_adjtime to support 64 bit time (by using clock_adjtime64) when __ASSUME_TIME64_SYSCALLS is defined. This change required introduction of new internal type - struct __ntptimeval64 to accomodate 64 bit time on architectures with __TIMESIZE != 64 and __WORDSIZE == 32. In several places in the glibc the struct timeval has been replaced with struct __timeval64. As a result new, 64 bit supporting functions: __adjtime64 __adjtimex64 __ntp_gettime64 __ntp_gettimex64 were introduced. Moreover, the clock_adjtime64 syscall handling in Linux kernel has been broken up till v5.4. Lukasz Majewski (7): y2038: linux: Provide __clock_adjtime64 implementation y2038: linux: Provide ___adjtimex64 implementation y2038: linux: Provide __adjtime64 implementation y2038: Introduce struct __ntptimeval64 - new internal glibc type y2038: Provide conversion helpers for struct __ntptimeval64 y2038: linux: Provide __ntp_gettime64 implementation y2038: linux: Provide __ntp_gettimex64 implementation include/sys/time.h | 9 +++ sysdeps/unix/sysv/linux/Makefile | 2 +- sysdeps/unix/sysv/linux/adjtime.c | 26 ++++++-- sysdeps/unix/sysv/linux/adjtimex.c | 21 +++++- sysdeps/unix/sysv/linux/clock_adjtime.c | 71 +++++++++++++++++++++ sysdeps/unix/sysv/linux/include/sys/timex.h | 63 ++++++++++++++++++ sysdeps/unix/sysv/linux/ntp_gettime.c | 24 ++++++- sysdeps/unix/sysv/linux/ntp_gettimex.c | 24 ++++++- sysdeps/unix/sysv/linux/syscalls.list | 1 - 9 files changed, 227 insertions(+), 14 deletions(-) create mode 100644 sysdeps/unix/sysv/linux/clock_adjtime.c -- 2.20.1