History

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.

Arnd Bergmann committed 7 years ago

Commit 94c467d1 parent 3ca47e92 files · +6 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/time_types.h+5−0
@@ -28,6 +28,11 @@ struct __kernel_old_timeval { · 27 unmodified lines
28};28};
29#endif29#endif
30 30
31struct __kernel_old_timespec {
32 __kernel_time_t tv_sec; /* seconds */
33 long tv_nsec; /* nanoseconds */
34};
35
31struct __kernel_sock_timeval {36struct __kernel_sock_timeval {
32 __s64 tv_sec;37 __s64 tv_sec;
33 __s64 tv_usec;38 __s64 tv_usec;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t