Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4263919imu; Mon, 7 Jan 2019 19:29:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN4OVZNtNm33XkE3GLxgwkF0iaiHU83AymqcASUW4brvpsApaK9FoElujSlEnoxCFmnR59CD X-Received: by 2002:a65:4049:: with SMTP id h9mr94387pgp.304.1546918193761; Mon, 07 Jan 2019 19:29:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546918193; cv=none; d=google.com; s=arc-20160816; b=Tlq8NUuldexnzNC7ToLssF3rRXZmMq5x4THlQh4o5lbveVub0wSTcHoXk8tZs2WvN6 W+k+nFQip0vKWdG9i/oXArbrjOjnnl+7vAXJLJN+vHD8JkDoXaslaYiF0XtDqE44EBrb mq+SOkdCI4zJz9jmKbJBw/KKdnH8YBzyor2u6Fkq6msLj7bl5AZ2SxdxVrVEFpnIVteb cjDa2AY1HqK01UF1bk5VnADXli9TTlQZACNhvzGKDF5Z3V3ywo3pT7+1+CZvEGvZm5g1 hCEgVF94R8w+eaodgkjl/gQq9w4JDfHrKjly7SSGoAHlB1fMEfbbOGjLA4fL3vMY0Y0d 5myQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=V6r5z1m44vGJIMnH4eYtFW94TsnIfykJ3wCDu4bZ2YU=; b=ytHdaHPgRPYKhDutKcPM0dcsgUwaCNWMOcV9GEzgnIeh9BVV8IvQCCiVbue+8QvnHk mO75GlbThnTnJ6LVW5qziNE0FIpurZAvfT6UaAT/utnoIPT5jpAim4OHVx640A6oU9zk DDP6r7pCGlYS42vsRno1pl5zKSp3eFHzM7vmCt3AaSFf7OiJi7Hev/QP7ZmvhbXzq50j 5SFk1ihfWDHZzEXDWCJtKhNJ30EAEdx8vbO6XTxc8EmHGJDJZrIdwNJ5j8tbI8Wqjuiq biePkQW+sVvvXqD2Uey+pEi942WuE1PYqWvUeoW/C3zkEOCpH/QfsPif/zXuVFZFm+DD 0qwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uPd6yM5O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a34si16653428pgm.427.2019.01.07.19.29.38; Mon, 07 Jan 2019 19:29:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uPd6yM5O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727772AbfAHD1y (ORCPT + 99 others); Mon, 7 Jan 2019 22:27:54 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:40827 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727716AbfAHD1u (ORCPT ); Mon, 7 Jan 2019 22:27:50 -0500 Received: by mail-pf1-f194.google.com with SMTP id i12so1198406pfo.7; Mon, 07 Jan 2019 19:27:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=V6r5z1m44vGJIMnH4eYtFW94TsnIfykJ3wCDu4bZ2YU=; b=uPd6yM5ODMh3qR2EMmT0hoG/gM49k/h4u/gLrjF2Q++iWKpFMElbF6/y3PDlI53B8r 6J0bUVkTOSMmW4RP+o1DBG1zcFj2Ey0tVS+BxTUgX297K0VRhe6t/9wr2COuuqH+qUFb fMA22jOrZAooQE8fJ0JsLwNvghDX66a6asSB/l+WpNMyEzD1bjoMTGTUDypmDVGMSffY zOKSn8DtWOuTXpiBp1xgzoTFdfZboNq2VhcTFqr1m/b6brR6nTl5Y8v890ISmj5nHs9m OM9oYroRGLZaBR779uTi1/RfVVOQdxlGDiV68lBcTEi7M4jd5lhc03vXraMqaKCvTMY6 /C3w== 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; bh=V6r5z1m44vGJIMnH4eYtFW94TsnIfykJ3wCDu4bZ2YU=; b=gaGapvo1sWVhSjKNPA+E/LkGMXtO8jzwWt5M4sKaH7adF/S1qUsNjg3PGlmLJGNQWX /kzlk57TAocp9qeQWbVXuHQe8l/3ybjsREQeQxI+5Uv68YPIlLyXsBFNtmwUdMVdKOwm b3iLORits6K9KHl5Ylr78FraZcd6jRp9eCH0ZfQtPy6SeZk8J8+eLknW4kBiWThPw9YI KTFiL9zcDvNI1MWE+/SflVABfiOFrFXPKStWYkRfDpTxzP7ovs9lPsDsiwj1jnjy7+J4 fEbMWsqbdfR5CuftMGxgaAdwRJs2XfitPpKxfIF97ZxkiIebcVXQ0RLTLpLmvAJmqhhy yG+A== X-Gm-Message-State: AJcUukfC3+/Eo/tn6Y0cDKG1+uvy5t4RDQys1Ad/L6OtPKwbVQAM5nCg ZPLVERZTyKQEPG2lDrIdxtg= X-Received: by 2002:a63:de46:: with SMTP id y6mr96896pgi.198.1546918069138; Mon, 07 Jan 2019 19:27:49 -0800 (PST) Received: from deepa-ubuntu.lan (c-98-234-52-230.hsd1.ca.comcast.net. [98.234.52.230]) by smtp.gmail.com with ESMTPSA id v5sm117327735pgn.5.2019.01.07.19.27.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 19:27:48 -0800 (PST) From: Deepa Dinamani To: davem@davemloft.net, linux-kernel@vger.kernel.org Cc: netdev@vger.kernel.org, arnd@arndb.de, y2038@lists.linaro.org Subject: [PATCH v3 5/8] socket: Add struct __kernel_sock_timeval Date: Mon, 7 Jan 2019 19:26:54 -0800 Message-Id: <20190108032657.8331-6-deepa.kernel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190108032657.8331-1-deepa.kernel@gmail.com> References: <20190108032657.8331-1-deepa.kernel@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The new type is meant to be used as a y2038 safe structure to be used as part of cmsg data. Presently the SO_TIMESTAMP socket option uses struct timeval for timestamps. This is not y2038 safe. Subsequent patches in the series add new y2038 safe socket option to be used in the place of SO_TIMESTAMP_OLD. struct __kernel_sock_timeval will be used as the timestamp format at that time. struct __kernel_sock_timeval also maintains the same layout across 32 bit and 64 bit ABIs. Signed-off-by: Deepa Dinamani --- include/uapi/linux/time.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/uapi/linux/time.h b/include/uapi/linux/time.h index 04d5587f30d3..b8ad1b86b942 100644 --- a/include/uapi/linux/time.h +++ b/include/uapi/linux/time.h @@ -70,6 +70,11 @@ struct __kernel_old_timeval { }; #endif +struct __kernel_sock_timeval { + __s64 tv_sec; + __s64 tv_usec; +}; + /* * The IDs of the various system clocks (for POSIX.1b interval timers): */ -- 2.17.1