diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-10-25 23:03:06 +0300 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2019-11-15 16:38:27 +0300 |
commit | 94c467ddb273dc9a6a4fb09aef392c119b151edb (patch) | |
tree | c323b9720ce3789c3914c8c402523ab3128edd7b /include/uapi/linux/time_types.h | |
parent | 3ca47e958a64b1116a2c35e65dcf467fc53d52de (diff) | |
download | linux-94c467ddb273dc9a6a4fb09aef392c119b151edb.tar.xz |
y2038: add __kernel_old_timespec and __kernel_old_time_t
The 'struct timespec' definition can no longer be part of the uapi headers
because it conflicts with a a now incompatible libc definition. Also,
we really want to remove it in order to prevent new uses from creeping in.
The same namespace conflict exists with time_t, which should also be
removed. __kernel_time_t could be used safely, but adding 'old' in the
name makes it clearer that this should not be used for new interfaces.
Add a replacement __kernel_old_timespec structure and __kernel_old_time_t
along the lines of __kernel_old_timeval.
Acked-by: Deepa Dinamani <deepa.kernel@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/uapi/linux/time_types.h')
-rw-r--r-- | include/uapi/linux/time_types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/time_types.h b/include/uapi/linux/time_types.h index 27bfc8fc6904..60b37f29842d 100644 --- a/include/uapi/linux/time_types.h +++ b/include/uapi/linux/time_types.h @@ -28,6 +28,11 @@ struct __kernel_old_timeval { }; #endif +struct __kernel_old_timespec { + __kernel_time_t tv_sec; /* seconds */ + long tv_nsec; /* nanoseconds */ +}; + struct __kernel_sock_timeval { __s64 tv_sec; __s64 tv_usec; |