From patchwork Wed Jul 29 20:51:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 40189 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3244F3860C3C; Wed, 29 Jul 2020 20:51:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3244F3860C3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1596055890; bh=1VstSp+PYky8lb8Ew4H/gdqq1r/9rvm5db2xWl8TAcg=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=tEo6ZKncO3HUHocSgxSvQgkvmW8fMp3Kd6H3jXLVxPC0clFOyaOm7ECWZt1t7soJC uvYtMeCD2oZYpNFOzia2aoqef6WAFRasi0QWeCa2r6N0mXIGKiwluf2CCMQOQCENEJ 8OtfwhKyZTwAMxjdkAT9KNkVf+KzDlT3LM2p8ZQ8= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by sourceware.org (Postfix) with ESMTPS id B8C7F3851C01 for ; Wed, 29 Jul 2020 20:51:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B8C7F3851C01 Received: by mail-qt1-x844.google.com with SMTP id k18so18718238qtm.10 for ; Wed, 29 Jul 2020 13:51:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1VstSp+PYky8lb8Ew4H/gdqq1r/9rvm5db2xWl8TAcg=; b=ekKDGGzxiZKzkkXsnfQc2bDc2sdp3Qri4S/R/sjX+fajeGe3qIC4H0iRGE5uk9kiEc ZxJYYmDRKryLazkEEJ1unzs7Jc7hQfuimujLcHOLp6ZifdxvEDhLN/S04CS7gUceenwt N8qBFeVumd6HEnPZ5zcaPUl/UqABhSOJFV6v0qaVkg84k+J9adovaKD7crUt/tuK3tTP ds6gTWaWIAEM0t3DL7VbGCWC3xJzc6UQatylbaAffUOlkrrnQfmkQRT2ljaiGaqNOiTX D7aAR05wB0nB74Xy3slC3w1dIh3kQjvH5dXfROmZVSKn36NDH8MtyqUKSoLDLOJiRarB GlCQ== X-Gm-Message-State: AOAM532MIfuNWdTwt1HqkVx5YiUfOi8rH0IwenNpljZjYETgVAMk/q2H ENu+LQXtoZYtXBaYcJTpG9kv6km67dI= X-Google-Smtp-Source: ABdhPJzmJQfpmHYSw2fWZaaokSlXLV08+Iz5cNrn2fjFYkWo8N35JnvIczOycEoL4+Um/MqYAioMcg== X-Received: by 2002:ac8:7046:: with SMTP id y6mr206190qtm.329.1596055887166; Wed, 29 Jul 2020 13:51:27 -0700 (PDT) Received: from localhost.localdomain ([177.194.48.209]) by smtp.googlemail.com with ESMTPSA id v58sm2827230qtj.56.2020.07.29.13.51.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2020 13:51:26 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH 4/5] login: User 64-bit time on struct lastlog Date: Wed, 29 Jul 2020 17:51:16 -0300 Message-Id: <20200729205117.2925113-4-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200729205117.2925113-1-adhemerval.zanella@linaro.org> References: <20200729205117.2925113-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-13.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-Patchwork-Original-From: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Cc: Alistair Francis Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" It is not used directly on any symbol, so there is no need to add compat ones. Reviewed-by: Lukasz Majewski --- bits/struct_lastlog.h | 4 +-- .../sysv/linux/s390/bits/struct_lastlog.h | 35 ------------------- 2 files changed, 2 insertions(+), 37 deletions(-) delete mode 100644 sysdeps/unix/sysv/linux/s390/bits/struct_lastlog.h diff --git a/bits/struct_lastlog.h b/bits/struct_lastlog.h index 122a44abd0..6882015d7c 100644 --- a/bits/struct_lastlog.h +++ b/bits/struct_lastlog.h @@ -24,8 +24,8 @@ previous logins. */ struct lastlog { -#if __WORDSIZE_TIME64_COMPAT32 - int32_t ll_time; +#if __TIMESIZE != 64 + int64_t ll_time; #else __time_t ll_time; #endif diff --git a/sysdeps/unix/sysv/linux/s390/bits/struct_lastlog.h b/sysdeps/unix/sysv/linux/s390/bits/struct_lastlog.h deleted file mode 100644 index 2fa409aeec..0000000000 --- a/sysdeps/unix/sysv/linux/s390/bits/struct_lastlog.h +++ /dev/null @@ -1,35 +0,0 @@ -/* The 'struct lastlog' type. - Copyright (C) 2020 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _UTMP_H -# error "Never include directly; use instead." -#endif - -/* The structure describing an entry in the database of - previous logins. */ -struct lastlog - { -#if __WORDSIZE == 32 - int64_t ll_time; -#else - __time_t ll_time; -#endif - char ll_line[UT_LINESIZE]; - char ll_host[UT_HOSTSIZE]; - }; -