Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4788927imb; Thu, 7 Mar 2019 00:06:15 -0800 (PST) X-Google-Smtp-Source: APXvYqz9N7pgE62dGek6mYoRdtFT/cFsA+JHkfciZJca2r5u/ye0utOXLoB/JKjJvX9SQy1deu7l X-Received: by 2002:a17:902:6686:: with SMTP id e6mr11535208plk.208.1551945975210; Thu, 07 Mar 2019 00:06:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551945975; cv=none; d=google.com; s=arc-20160816; b=sv0pGffwcIJJDzbGIkYh/7Dtt5Gx1+Z1beY9wcRT1ajWm2CUO6oO9BZF7IaUEhh3LC h8e4IbFlcm98ybk+kjT1NXODzUqtaVviSJx2qtDBSxkmP+oU3ojRq4DsfL9Q4wAdAK7i Zy5QGY7oqN0v9n6QIAjXw5f3FsjSewQNiahBXDk1OKZgWafa0oaLtqCpS73dYfOtnZRi 9o48+t8H792hjnC/h81eOkqb1C6Xs+uqkQEsIp3ihB9I9Ick/6qJeU94UFMl27be0bGX 8r/IE9f028IAO9x1Tuw583muVj5mepYFsOK7DQedwVcUhQB1lz947NcJfGlSlVd5zuEN VXnA== 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=KyS5PIyHbEzMeUuqAgjGcHWeinlFgTIy5Dp7cS+QVdk=; b=dWZvXCiRJeK6PR0ySpvl2y4J4s44d74vQQKfzxLujRd3i/7wrkkLpBUZ4UL4ROpwFU imYDyTBy85Fdd0OSdW0rn+peoTuskHFvZIfED81G1s1F7cIvNYbinUNCcQG/CsEh+LAU mcHF3z4NBo/XUq1Vdi3MZr+7zLlDyBxGCWDcWPH4/5s4exLmnA0da23T9z1PDe2huOX6 cAVEG7k0I+QRVGoZv+jjbabzT6uJ4O8WAgmQN/0CnXGrBF0PSqpSei3p7lCOqaVDacBv kioAdFG9diabnfv+98kLM0odXPNbjE4FxCXwo8A/ooEbT7ynmc65vz6ZKOaWkpLkQ156 uQlw== 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 i63si3950357pli.40.2019.03.07.00.05.58; Thu, 07 Mar 2019 00:06:15 -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 S1726127AbfCGIFk (ORCPT + 99 others); Thu, 7 Mar 2019 03:05:40 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:35698 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725795AbfCGIFj (ORCPT ); Thu, 7 Mar 2019 03:05:39 -0500 Received: by mail-qt1-f193.google.com with SMTP id p48so16079962qtk.2 for ; Thu, 07 Mar 2019 00:05:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KyS5PIyHbEzMeUuqAgjGcHWeinlFgTIy5Dp7cS+QVdk=; b=uccuLIewYu57zZIiMNNTTLyoUlREoSRY4wiOlIiLMJ/1KIA4LcVjQTtndPTTb1zqT6 +ZtnjNqaVqlqkjJLL7Du/W1jFbTbPRRKkCbJDhHx4oGQUFv0pbcBJty3rIWWYe+H69HQ dwQ8iaDx5d8GvleI7SXcvOevT9UFYg5ms0FvTUvtARo/nxE7WtsesbJLxyU0J+OKCUOa aPzeBj5UxRbOcSkwOfImTUTp7bMPsiBQ7mJRD8ligiLDYRG8JNwtzMqtPWwa/DN07Nte acSsV8XHr58w5cBGvQ7P1Cj8AYsluWAYNUWvLWDDhXRxpktGppCzxfv4sxMjkfsA63oH TpVw== X-Gm-Message-State: APjAAAWYbpvFNFJ6/PEAIG3dbbS80IMXSojvEfIY7JbrVRqGbgKVUO3b qtdt7UzQVwpo7MUklHWvwLRTmzZMHQyyy72/OXI= X-Received: by 2002:ac8:33f1:: with SMTP id d46mr9049663qtb.319.1551945938715; Thu, 07 Mar 2019 00:05:38 -0800 (PST) MIME-Version: 1.0 References: <20190305162351.5aadde66@jawa> <20190307085329.2b6cbeb7@jawa> In-Reply-To: <20190307085329.2b6cbeb7@jawa> From: Arnd Bergmann Date: Thu, 7 Mar 2019 09:05:21 +0100 Message-ID: Subject: Re: [Y2038] Question regarding support of old time interfaces beyond y2038 To: Lukasz Majewski Cc: Zack Weinberg , 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 Thu, Mar 7, 2019 at 8:53 AM Lukasz Majewski wrote: > > Hi Zack, > > > 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). > > The question here is about the decision if even the old time APIs shall > be supported on 32 bit systems which are going to be Y2038 proof (like > the 'stime'). See my other reply. In the kernel, it won't be supported (the old syscall is of course still there, but we may have an option to remove all time32 interfaces). In glibc, it's probably there in a y2038-safe way since it is there now, other C libraries may take other decisions that are independent of y2038. Arnd