From patchwork Sat Jan 18 07:20:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1225111 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-108790-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha1 header.s=default header.b=Z5gf5tS5; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 4808W11VNRz9sPK for ; Sat, 18 Jan 2020 18:21:33 +1100 (AEDT) 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 :mime-version:content-transfer-encoding; q=dns; s=default; b=CLi IPO75CiXC1vJyHrFt1PsrhMEM1e/H6XWUMQ4meBZJx7ny//1K6rEBdA2mWfJzbeH aUoDYIJ5opvY2LhFX0gkoCr4bBIaB3238fgJuhebjZA6ccKSGLcrpZ/pjfh5NLD0 IB4xzK3l9R7D3QStyzXyB5Ky4NvRNd5JgDZ9D7D4= 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 :mime-version:content-transfer-encoding; s=default; bh=FwmTcl8X3 pT5s5I6GufQCzJBxKs=; b=Z5gf5tS5YXuf1duuVNVQ0S8wRk2yK22wCo2XoAgwI qZ7V/vQnDa4e/q9w63foxFA5K+Vs79gPJ1/X3HWQ9WqsAon9F/tbLNQQVJrUXZWn j1j6HiyV6jDvy1g4SPAyWfBUaV7g7HfvDjg8INCpxNm/olojU4lYZbgiCTH0dWU/ AQ= Received: (qmail 58627 invoked by alias); 18 Jan 2020 07:21:18 -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 58613 invoked by uid 89); 18 Jan 2020 07:21:18 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_3, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy= X-HELO: mail-out.m-online.net From: Lukasz Majewski To: Joseph Myers , Paul Eggert , Adhemerval Zanella , Samuel Thibault Cc: Alistair Francis , Alistair Francis , GNU C Library , Siddhesh Poyarekar , Florian Weimer , Florian Weimer , Zack Weinberg , Carlos O'Donell , Andreas Schwab , Lukasz Majewski Subject: [PATCH 0/6] y2038: Convert settimeofday to be Y2038 safe Date: Sat, 18 Jan 2020 08:20:41 +0100 Message-Id: <20200118072047.23071-1-lukma@denx.de> MIME-Version: 1.0 In this patch series the settimeofday undergoes some rework to internally use __clock_settime64, which now supports 64 bit time (even on machines with __TIMESIZE != 64). It is now possible to use settimeofday in Y2038 systems (when proper redirection is used). To allow this conversion it was necessary to modify some alpha code and # include in ./include/time.h The repository with Y2038 supprt (which uses this work) https://github.com/lmajewski/y2038_glibc/commits/glibc_settimeofday_64bit_conversion_v1 Lukasz Majewski (6): y2038: Use __clock_settime64 in deprecated stime function y2038: hurd: Provide __clock_settime64 function y2038: Introduce struct __timeval64 - new internal glibc type y2038: alpha: Rename valid_timeval_to_timeval64 to valid_timeval32_to_timeval y2038: Provide conversion helpers for struct __timeval64 y2038: linux: Provide __settimeofday64 implementation include/time.h | 59 +++++++++++++++++++ sysdeps/mach/hurd/clock_settime.c | 9 +++ sysdeps/unix/sysv/linux/alpha/osf_adjtime.c | 4 +- sysdeps/unix/sysv/linux/alpha/osf_setitimer.c | 4 +- sysdeps/unix/sysv/linux/alpha/osf_utimes.c | 4 +- sysdeps/unix/sysv/linux/alpha/tv32-compat.h | 2 +- time/settimeofday.c | 19 ++++-- time/stime.c | 4 +- 8 files changed, 92 insertions(+), 13 deletions(-)