From owner-freebsd-standards@freebsd.org Wed May 23 05:14:49 2018 Return-Path: Delivered-To: freebsd-standards@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 89C8AEEF7CA for ; Wed, 23 May 2018 05:14:49 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-yw0-x233.google.com (mail-yw0-x233.google.com [IPv6:2607:f8b0:4002:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1FE7877B46 for ; Wed, 23 May 2018 05:14:49 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: by mail-yw0-x233.google.com with SMTP id v68-v6so5754396ywd.3 for ; Tue, 22 May 2018 22:14:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=NSM1chfQEgUjCjkDGYlvKjrVPAzi2sKj+2z4fBHNP9Y=; b=dC1hVvAbXmo0ozUVL0szX9XtcD9M58bYbi4JVtzAnptlF7e1NhdJJUw85aLeYoAKUj x/akBgPQQSxl5lv+ZPA5TL7zIHsaxRBTQcJ/9BTGl5yM2snA51va3BfL+WyP0ZqoWbuN U3hqk4IK39KdNIZtqYNr+SYuypzEDlVXDk/9s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=NSM1chfQEgUjCjkDGYlvKjrVPAzi2sKj+2z4fBHNP9Y=; b=bnJUdSBSbM74TQxrH/9aFsB+QH3jJv8x6T60XTmPeSz1s6fwkBjNsN9ESa6ArrDKJ9 WQ19n0Ykork/e0oem6042U5VE+1ji1jET6pXQhdY70+NptVcvgGpO7vdfq106YfBm+/5 yLbcSYvPOrIxuzEiC5P65Qgy+nZgkWdNWlBLH2C/oX0W+6FWCvlhlWBtgvwM5k78UnpQ QlEm1FS5GQTVLyfTcRGihrpEm2ysgntQlqFHNt4ZmRTeDp5e7j9iauEByVvWHKBzizMu lXrQ1n4zBUbWczqZ6KU7wEA/Pj3BwvpL8ua4Bl+mWSQ30RmAP+mpIh7E13tZKUkCoHB7 OXcw== X-Gm-Message-State: ALKqPwcvMSOG5gV5NTOAYjIT6a/VjaQsi3dKNQMYSJqX/PpR+GqQtfLW l/NzSVm80o/p/4hAgC1Hx7ZFF1e9LAO8IMIA33k6sA== X-Google-Smtp-Source: AB8JxZp6eIcnTKSDHJrPXtsKLccuQ+eUHqeFTyrU4rAtucsiF2WkBlwq7DDrsqEY2fTzK49XFFgkHZJFX2qy9Oa7zF0= X-Received: by 2002:a81:3e1f:: with SMTP id l31-v6mr661576ywa.37.1527052488377; Tue, 22 May 2018 22:14:48 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:c709:0:0:0:0:0 with HTTP; Tue, 22 May 2018 22:14:17 -0700 (PDT) In-Reply-To: References: <091FB496-1C89-4146-8EFB-8D43FD0F7C0F@csail.mit.edu> From: Eitan Adler Date: Tue, 22 May 2018 22:14:17 -0700 Message-ID: Subject: Re: gmtime is not POSIX compliant due to leap seconds To: Warner Losh Cc: Garrett Wollman , FreeBSD Standards Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2018 05:14:49 -0000 On 20 May 2018 at 11:14, Warner Losh wrote: > On Sun, May 20, 2018 at 11:18 AM, Garrett Wollman > wrote: > >> On May 20, 2018 1:08:13 PM EDT, Eitan Adler wrote: >> > This means that gmtime ought not to be affected by leap seconds. >> >> If you are getting leap-second adjustments, then you are using a >> nonstandard build of the data files with that feature enabled. Don't do >> that if POSIX behavior is what you want. FWIW one thing did come out of this: the functions posix2time and its inverse are not in any header. https://reviews.freebsd.org/D15530 fixes this, but am not certain about hiding it behind _BSD_VISIBLE. -- Eitan Adler