Thread (16 messages) 16 messages, 2 authors, 2019-02-02

Re: [PATCH net-next v4 02/12] socket: move compat timeout handling into sock.c

From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date: 2019-02-01 18:59:03
Also in: lkml

On Fri, Feb 1, 2019 at 7:48 AM Deepa Dinamani [off-list ref] wrote:
From: Arnd Bergmann <arnd@arndb.de>

This is a cleanup to prepare for the addition of 64-bit time_t
in O_SNDTIMEO/O_RCVTIMEO. The existing compat handler seems
unnecessarily complex and error-prone, moving it all into the
main setsockopt()/getsockopt() implementation requires half
as much code and is easier to extend.

32-bit user space can now use old_timeval32 on both 32-bit
and 64-bit machines, while 64-bit code can use
__old_kernel_timeval.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Deepa Dinamani <redacted>
---
quoted hunk ↗ jump to hunk
@@ -1121,7 +1155,8 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
                int val;
                u64 val64;
                struct linger ling;
-               struct timeval tm;
+               struct old_timeval32 tm32;
+               struct __kernel_old_timeval tm;
nit: not used?

same for stm added later in the series
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help