Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3448250imb; Tue, 5 Mar 2019 09:32:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxeqNfR77FLPWQqnob44JOwINNbey0UiQiXV/KGZtc2aDXxetcZ5Wtc9YHhYA0R5uJHK28P X-Received: by 2002:a17:902:31a4:: with SMTP id x33mr2322668plb.198.1551807157109; Tue, 05 Mar 2019 09:32:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551807157; cv=none; d=google.com; s=arc-20160816; b=SQmPiWvu2IWFwNXSzWhBVbbxmyU6eOj0ve3TONmHRpCNp4HUKDzcijEQdse5BBMEVo ziRzpFowi9YDtmrnuMEbVuDwWTEb6di9yelfL9bWqU3xwlwRtHthUx0ab40tRZhBdjrI uqoOraDtK2fypBA/mEmxwrXjcXtKHl64fzrP/ICtQ2vno0+e0prPv4iWv7WQniHapaCE S3NVtX1x4KX3BDwNWxnYvHB1tcrsT5dGHuW6ODptSJrDaUbPtjpVmHiJFABr9+Q6lgXw j7i/NS06Q7g2Iw/ipRuB+b6lVZDFHFrO0cHO2KrYOOJJEZIFhNd9zFaoThVw1BY599AZ jV+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=OzTnK7cGDCEV7YYcrQqge+0DqaRNnMu48BN+2Q+OshQ=; b=LrIi4OMDHGBvBUhnBEaT1RIIN4Y5FOzpEfvIkltz3OivchrwApYSFwS4UryFnpubLc Cf6f7tItKOt4lTToHsNsBX+MwnoF+OhnJZ/TGBFJRaV7Fxo4qbsj8/eFbtFqyMszGLfA AMvUpUTxVvZtpBdXfsLGVpjwDa0mNZTKq9LWsnCYBt7gua4AfV1/lkgmBlLwbuItfN67 WRRYqpKsJUn8BnkoSqn9xgnv+b96jlDsLP7Da1UfwNpgiRd4ifs7VfF/kcX1kek2nHkk 7mqLlM52g7KXcVunHDwWXxNzB/bwM+WP9HIeiniuSCWpfymRxXkmUZcCFbTVnLO8YuMV DiPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i62si1814612pli.218.2019.03.05.09.32.21; Tue, 05 Mar 2019 09:32:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726361AbfCEQWB (ORCPT + 99 others); Tue, 5 Mar 2019 11:22:01 -0500 Received: from l2mail1.panix.com ([166.84.1.75]:55292 "EHLO l2mail1.panix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726069AbfCEQWB (ORCPT ); Tue, 5 Mar 2019 11:22:01 -0500 X-Greylist: delayed 954 seconds by postgrey-1.27 at vger.kernel.org; Tue, 05 Mar 2019 11:21:59 EST Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by l2mail1.panix.com (Postfix) with ESMTPS id 44DMFV0DxSzDV3 for ; Tue, 5 Mar 2019 11:06:05 -0500 (EST) Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) by mailbackend.panix.com (Postfix) with ESMTPSA id 44DMFT1fPWz1np6 for ; Tue, 5 Mar 2019 11:06:04 -0500 (EST) Received: by mail-oi1-f173.google.com with SMTP id s16so7215976oih.9 for ; Tue, 05 Mar 2019 08:06:04 -0800 (PST) X-Gm-Message-State: APjAAAWbiPMo4W58POVN1lJzW8DUrcdoq80yGbyeAoVJKHBDvUQ2W1P3 v79M1V1OQhrpGe6KA4UHX3qV89zquyWItGMemHM= X-Received: by 2002:aca:4305:: with SMTP id q5mr14495990oia.121.1551801963809; Tue, 05 Mar 2019 08:06:03 -0800 (PST) MIME-Version: 1.0 References: <20190305162351.5aadde66@jawa> In-Reply-To: <20190305162351.5aadde66@jawa> From: Zack Weinberg Date: Tue, 5 Mar 2019 11:05:52 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [Y2038] Question regarding support of old time interfaces beyond y2038 To: Lukasz Majewski Cc: Arnd Bergmann , Linux Kernel Mailing List , Joseph Myers , GNU C Library Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 5, 2019 at 10:24 AM Lukasz Majewski wrote: > From other discussion [4] - regarding the following system calls: > time, stime, gettimeofday, settimeofday, adjtimex, nanosleep, alarm, > getitimer, setitimer, select, utime, utimes, futimesat, and > {old,new}{l,f,}stat{,64}. > > "These all pass 32-bit time_t arguments on 32-bit > architectures and are replaced by other interfaces (e.g. posix > timers and clocks, statx). C libraries implementing 64-bit time_t in > 32-bit architectures have to implement the handles by wrapping > around the newer interfaces." 1) We should be clear that most of these will continue to be supported as C library interfaces even if they are not system calls. Some of them are obsolete enough and/or rarely used enough that we might not bother (the older ways to set the system clock, for instance). 2) I know of one case where the new interfaces don't cover all of the functionality of the old ones: timers started by setitimer continue to run after an execve, timers started by timer_create don't. This means setitimer(ITIMER_VIRTUAL) can be used to impose a CPU time limit on a program you didn't write, and timer_create can't. If new kernels are not going to have setitimer as a primitive, we need some other way of getting the same effect. zw