Message ID | 20200219181057.10297-4-alistair.francis@wdc.com |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-return-109936-incoming=patchwork.ozlabs.org@sourceware.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-109936-incoming=patchwork.ozlabs.org@sourceware.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha1 header.s=default header.b=S2Cj7Gvt; dkim=pass (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.a=rsa-sha256 header.s=dkim.wdc.com header.b=S0z0PDte; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48N5ZZ2X7yz9sRm for <incoming@patchwork.ozlabs.org>; Thu, 20 Feb 2020 05:18:46 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; q=dns; s= default; b=aV7hTeFgxl9LaXeribonieRIy9EbXxma6BdJ/aONEaOXCxGp2sNWO yy+ZIxzRNd1sgfBiOjha9twj9bPwZK8OfgP7EOHS2vXm0n/ZenKADkhyuyLaQm9w Jv9PE6t82wy9WnEAKUMFCjCfNjRp8Nv+D+OtrhyMwFWkEpunhMrycY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; s=default; bh=kKAwj2nFoViripJIaLDcQt5Nchs=; b=S2Cj7Gvtyw+lvhzszGeaVJ9kdRq7 s9V+iSPpIbCmijMicNJ1Hoxe5OD98eTG/QAMpbyICqWQvlq6LMaAZKFAhLYQx6wb 7WolOS17JYOYHC+eKE49/m0/kejSGcjK1vV7dGpqZn/nh4kmJKqFO2kq/Bld9pG3 pDRsW1JuWgSoTvw= Received: (qmail 5141 invoked by alias); 19 Feb 2020 18:18:07 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: <libc-alpha.sourceware.org> List-Unsubscribe: <mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org> List-Subscribe: <mailto:libc-alpha-subscribe@sourceware.org> List-Archive: <http://sourceware.org/ml/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-help@sourceware.org>, <http://sourceware.org/ml/#faqs> Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 4787 invoked by uid 89); 19 Feb 2020 18:18:05 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: esa2.hgst.iphmx.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1582136305; x=1613672305; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JqoeeaaOGnPCABuxI3xpinMokhjnHqGb5EIPJKwoQpE=; b=S0z0PDte9ZhSnFvNsCcdO7i6LVso3j5/TuFWWafEpbuEVqU29qSAhsUX Fk2ZB5qzNhJoEL8ORyGC4nRxCN6VwCgB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uIG+d6NfNC6j2ssB8o6s+kBt0FmJ/ULEZreyzm5Aam2ecWGxt2CIRptA0UV/E/1qoj AFLoqBEqxytdDLXEyX0sexdmgVZOh0cGrdbh7lz/4kNHxafg6fqJyyIVhE4UTXSTMKtk+/Pvj+ D3Q= WDCIronportException: Internal From: Alistair Francis <alistair.francis@wdc.com> To: libc-alpha@sourceware.org Cc: alistair23@gmail.com, Alistair Francis <alistair.francis@wdc.com>, Lukasz Majewski <lukma@denx.de> Subject: [PATCH v4 3/8] time: Add a __itimerval64 struct Date: Wed, 19 Feb 2020 10:10:52 -0800 Message-Id: <20200219181057.10297-4-alistair.francis@wdc.com> In-Reply-To: <20200219181057.10297-1-alistair.francis@wdc.com> References: <20200219181057.10297-1-alistair.francis@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit |
Series |
Always use 32-bit time_t for certain syscalls
|
expand
|
diff --git a/include/time.h b/include/time.h index 945650af5e..8a4abb159f 100644 --- a/include/time.h +++ b/include/time.h @@ -108,6 +108,17 @@ struct __timeval64 }; #endif +#if __TIMESIZE == 64 +# define __itimerval64 itimerval +#else +/* The glibc's internal representation of the struct itimerval. */ +struct __itimerval64 +{ + struct __timeval64 it_interval; + struct __timeval64 it_value; +}; +#endif + #if __TIMESIZE == 64 # define __ctime64 ctime #else
Add a __itimerval64 which always uses a 64-bit time_t. Reviewed-by: Lukasz Majewski <lukma@denx.de> --- include/time.h | 11 +++++++++++ 1 file changed, 11 insertions(+)