# Re: \[PATCH\] socket: move compat timeout handling into sock.c

- From: Deepa Dinamani \<hidden\>
- Date: 2019-01-08 21:29:21 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2019/01/5478248
- Thread: https://ratatoskr.run/netdev/2019/01/5477031/t.md

```text
On Tue, Jan 8, 2019 at 12:10 PM Arnd Bergmann [ref] wrote:
>
> 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>

This will make the other series so much nicer. Thank you.

Acked-by: Deepa Dinamani <redacted>
```
