History

y2038: remove struct definition redirects

We now use 64-bit time_t on all architectures, so the __kernel_timex, __kernel_timeval and __kernel_timespec redirects can be removed after having served their purpose. This makes it all much less confusing, as the __kernel_* types now always refer to the same layout based on 64-bit time_t across all 32-bit and 64-bit architectures.

Arnd Bergmann committed 7 years ago

Commit c70a7721 parent 00bf25d4 files · +0 −21Browse files

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

Unified · Split

2 files
  1. include/uapi/linux/time.h +0 −4
  2. include/uapi/linux/timex.h +0 −2
include/uapi/linux/time.h+0−4
@@ -42,19 +42,15 @@ struct itimerval { · 41 unmodified lines
4242 struct timeval it_value; /* current value */
4343 };
4444
45−#ifndef __kernel_timespec
4645 struct __kernel_timespec {
4746 __kernel_time64_t tv_sec; /* seconds */
4847 long long tv_nsec; /* nanoseconds */
4948 };
50−#endif
5149
52−#ifndef __kernel_itimerspec
5350 struct __kernel_itimerspec {
5451 struct __kernel_timespec it_interval; /* timer period */
5552 struct __kernel_timespec it_value; /* timer expiration */
5653 };
57−#endif
5854
5955 /*
6056 * legacy timeval structure, only embedded in structures that
include/uapi/linux/timex.h+0−2
@@ -97,7 +97,6 @@ struct __kernel_timex_timeval { · 96 unmodified lines
9797 long long tv_usec;
9898 };
9999
100−#ifndef __kernel_timex
101100 struct __kernel_timex {
102101 unsigned int modes; /* mode selector */
103102 int :32; /* pad */
@@ -131,7 +130,6 @@ struct __kernel_timex { · 27 unmodified lines
131130 int :32; int :32; int :32; int :32;
132131 int :32; int :32; int :32;
133132 };
134−#endif
135133
136134 /*
137135 * Mode codes (timex.mode)