From patchwork Mon Feb 10 17:43:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 1235939 Return-Path: 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-109372-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) 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=rGkz/0qZ; 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=EjXO3CRD; 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 48GYNZ1Lvcz9sRp for ; Tue, 11 Feb 2020 04:50:53 +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=lvS3qMO7aemNyPHvgiBCQOQvAj8SpPDX9nBDtJaByJJMZVqTYD8oi LO8LO5T9iJCYXItw0AMdzAL5WPdJsm7IBTXRqdM0QVMhsR1MP1Nk1nG5lXiCTeHG PqjOVPNO8NNXyp4j2Ufrn707TOGlOvqtk6EFYOP9r3FUxQkaL5dAjo= 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=R19XGq0wep17291fTub0mmAvZWs=; b=rGkz/0qZlTDdqsOVseHSDFckRFgE RH0zvLoVEKniXZ8FXIptkG5QJWAUUuhGJU6yHjdZGEqRVWQthUA3rcowK+CqEnsJ GX/bScw5vtITUuiSyBbmw8VwzglY/atcWRiwXLGbQq0Vz3JZ1XcUXRMIlKg50kWi EjJXAnFhH3Bv6Uk= Received: (qmail 55786 invoked by alias); 10 Feb 2020 17:50:25 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 55653 invoked by uid 89); 10 Feb 2020 17:50:25 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.6 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=1581357024; x=1612893024; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=p+iEvplWpYyP1nq1qa7PUsx2Qiqwyh4c+tyiZaNA++U=; b=EjXO3CRDlAdnYJ5S293MILoE1nRpswjHPSmUY5H7IfOoCPzZu+mk3zwT xR+eH7c3LFuzJe05SU+VYN3sjv/XuH+Oxk+yODEG+Z/8pDzU/25E29fa2 +a/i2VB1nqpCYkRP61UE9/MJCEhYyxABrl50VnfFX7r9sYg3e7WmcLHSF kCymVZHzOJospZEsclM0CLXsM81KZXppQwE5oTjsHR5/2A+8RJ4vgCv4O VHBvJL7Y/WxfBUQEzJHCVMKzqvmCGaR9Z6UuvYOerABiLO6rf4wVGBjh8 cU6fG7YTAPr7w8S3DTSus+XMnBqMicV3UiyflILt3TgQGyRAvnmEly5Vv g==; IronPort-SDR: DNtJRKtgU6yi+iclYyfTXYp7nKn/vOIb7JF/LHqvrcx8fJr5byHM/Y3R+lUyS2X1lWZgowL3Lm 1WQIUmSz0+AqVHXAHQ/QK+VDon98V1Jy3h9HkCEMUaMgIqs45e9UplfBVdhmPKTCnVGAC7hJdR 06kY9jF3mqszxPKGYFoaXhfSQA3R08SzpVArE02s0lwOYcRFBYvgvFsBxDXxl3CuVrBGrTLhuo lEDc227U71SmmswgNZwlSsUdMpYvf9YwFOxKfuEgtberaDvo/gtlXm+h7AIn5616m81TxB8JyU UxU= IronPort-SDR: oxr3/OVai9k9gm7Jjvp8U8OgP/dPP5f5tbO/pcg72HFpfhyXy8fJECG949/I6ta1P3ku5qVvf+ 2c9w2DBZ1FNJ1jm2lqSIQ3iYJKyhlRL0qntRyZkNJj1qzdRrsCg3haIJDjYZaQcjxCpSNodmH5 paU7aXKPxbESWAJnCNrsMER+jlZl+xXY4eJsq/ex5rZ06faH9AgwbEx4Tw28YX/FDxMaezGA7A WX0sD/o8wC53hB3G+DrevjWxQY3FqZg8IUUGjTDZaC6CIukpjjzYsMv1uBg2Yd4oH7cHfq73of 9x+2TzHWcV3sfQS6kzbKQKPz IronPort-SDR: QlabuKoa0LJASCHaJPM30W5JH9RFsmMq8vqDmcr6CbO0bZ2G1ZjoHfdm+djALsukGu+592zDU4 mgN5QiYvxUycnPcwPWDndxS4adMwznQaqMKwPFnE5GmqLur5L65QaJUhLiR6g68eZ7b8IZxp+C ueMbZostigninaQe01AeSzdmV3VdQPgJxFxxuSNAusnJ3OyuK1trhSxYuRbqa+mC18zZHeZwOJ 7UnngzdFCJsTUNnebX3Ig5Qn6EpuwD9Fj9dKYWxB8szyKkiAwl/O6AvOd7oBl+LapDR27fTLon bY4= WDCIronportException: Internal From: Alistair Francis To: libc-alpha@sourceware.org Cc: alistair23@gmail.com, Alistair Francis , Lukasz Majewski Subject: [PATCH v2 3/6] time: Add a __itimerval64 struct Date: Mon, 10 Feb 2020 09:43:22 -0800 Message-Id: <20200210174325.6566-4-alistair.francis@wdc.com> In-Reply-To: <20200210174325.6566-1-alistair.francis@wdc.com> References: <20200210174325.6566-1-alistair.francis@wdc.com> MIME-Version: 1.0 Add a __itimerval64 which always uses a 64-bit time_t. Reviewed-by: Lukasz Majewski --- include/time.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/time.h b/include/time.h index f22abc13f4..684dabba9c 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