From patchwork Fri Mar 5 20:14:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 42312 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 84BF3399C03D; Fri, 5 Mar 2021 20:16:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 84BF3399C03D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1614975362; bh=lbL/cPXCKCF79/1JvcA8qLDF8xxni16PCBmFU7SSQoI=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Wa1rP959bsUnJoAOj9yey+S8t8c98nikSdE2VnyG50GNnkAVGZsWezv4NLlVO3s8V SRlensuVJVtEo4OtjzL0QWzlfhJKkWRBKR8y10N7zrLdjTUrS2FhTj1AeNXQONaXIQ QfGjudZezf7OnYrY5emhNq4BX5MQrw3uVatF2Guc= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by sourceware.org (Postfix) with ESMTPS id 30CAD399F00F for ; Fri, 5 Mar 2021 20:16:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 30CAD399F00F Received: by mail-qk1-x734.google.com with SMTP id z128so3239980qkc.12 for ; Fri, 05 Mar 2021 12:16:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lbL/cPXCKCF79/1JvcA8qLDF8xxni16PCBmFU7SSQoI=; b=Pxvo+dVYOgtzgz8axpG1WPN7oYI7GskHUXUG2FVTpluMu4bXLUA7C11O/Y3czar/he kN6j5/OnCMQu8zMuH10teETfNw+cCwq5kiCE3JsEKgnoOIwIIMDeZOnZnAlQLZzRva6N 5kZAqn/GdW84HnnxBsRuNdukUfvw2GNIv9m2DRQX8/MXuhnJja7FDPj4caTXGkLncbNw P/KbQBSwq9JoFCU1ReGL4nc5KVpzcti49bu5W5CjE/7whPZYJGQsHW5za4fWJPOyfYoG /bnw8x+SKolbiWprn7XiT4S+KlUzdaQfGPPKjnmtcF/XtXAuOEnhbMAmaDYZRN/wBoot /ePw== X-Gm-Message-State: AOAM5323OW/4/CEHtghuGPZLCBLp/3IlkXBbPk3qmxXQ6qd2Op9bab7f X/3AcL/xWpzPriQTr/ZawHYLN4nnNUg7Zg== X-Google-Smtp-Source: ABdhPJxrjvx+PW6cz0I+oOoTLirfHxU4U4w3BFGIjyjDxmZLlym34FWUBpj7vOBFVkHwqFbjkK2m/w== X-Received: by 2002:a37:584:: with SMTP id 126mr10287425qkf.274.1614975359627; Fri, 05 Mar 2021 12:15:59 -0800 (PST) Received: from localhost.localdomain ([177.194.48.209]) by smtp.googlemail.com with ESMTPSA id c5sm2526145qkl.21.2021.03.05.12.15.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 12:15:59 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH 31/52] y2038: linux: Add __USE_TIME_BITS64 support for struct timex Date: Fri, 5 Mar 2021 17:14:57 -0300 Message-Id: <20210305201518.798584-32-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210305201518.798584-1-adhemerval.zanella@linaro.org> References: <20210305201518.798584-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-13.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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 Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" The __USE_TIME_BITS64 is not defined internally yet. --- sysdeps/unix/sysv/linux/bits/timex.h | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/sysdeps/unix/sysv/linux/bits/timex.h b/sysdeps/unix/sysv/linux/bits/timex.h index 9b2e30f3e0..ee37694e8f 100644 --- a/sysdeps/unix/sysv/linux/bits/timex.h +++ b/sysdeps/unix/sysv/linux/bits/timex.h @@ -25,6 +25,36 @@ struct timex { +# ifdef __USE_TIME_BITS64 + unsigned int modes; /* mode selector */ + int :32; /* pad */ + long long offset; /* time offset (usec) */ + long long freq; /* frequency offset (scaled ppm) */ + long long maxerror; /* maximum error (usec) */ + long long esterror; /* estimated error (usec) */ + int status; /* clock command/status */ + int :32; /* pad */ + long long constant; /* pll time constant */ + long long precision; /* clock precision (usec) (read only) */ + long long tolerance; /* clock frequency tolerance (ppm) (ro) */ + struct timeval time; /* (read only, except for ADJ_SETOFFSET) */ + long long tick; /* (modified) usecs between clock ticks */ + long long ppsfreq; /* pps frequency (scaled ppm) (ro) */ + long long jitter; /* pps jitter (us) (ro) */ + int shift; /* interval duration (s) (shift) (ro) */ + int :32; /* pad */ + long long stabil; /* pps stability (scaled ppm) (ro) */ + long long jitcnt; /* jitter limit exceeded (ro) */ + long long calcnt; /* calibration intervals (ro) */ + long long errcnt; /* calibration errors (ro) */ + long long stbcnt; /* stability limit exceeded (ro) */ + + int tai; /* TAI offset (ro) */ + + int :32; int :32; int :32; int :32; + int :32; int :32; int :32; int :32; + int :32; int :32; int :32; +# else unsigned int modes; /* mode selector */ __syscall_slong_t offset; /* time offset (usec) */ __syscall_slong_t freq; /* frequency offset (scaled ppm) */ @@ -51,6 +81,7 @@ struct timex int :32; int :32; int :32; int :32; int :32; int :32; int :32; int :32; int :32; int :32; int :32; +# endif }; /* Mode codes (timex.mode) */