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
42 struct timeval it_value; /* current value */42 struct timeval it_value; /* current value */
43};43};
44 44
45#ifndef __kernel_timespec
46struct __kernel_timespec {45struct __kernel_timespec {
47 __kernel_time64_t tv_sec; /* seconds */46 __kernel_time64_t tv_sec; /* seconds */
48 long long tv_nsec; /* nanoseconds */47 long long tv_nsec; /* nanoseconds */
49};48};
50#endif
51 49
52#ifndef __kernel_itimerspec
53struct __kernel_itimerspec {50struct __kernel_itimerspec {
54 struct __kernel_timespec it_interval; /* timer period */51 struct __kernel_timespec it_interval; /* timer period */
55 struct __kernel_timespec it_value; /* timer expiration */52 struct __kernel_timespec it_value; /* timer expiration */
56};53};
57#endif
58 54
59/*55/*
60 * legacy timeval structure, only embedded in structures that56 * 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
97 long long tv_usec;97 long long tv_usec;
98};98};
99 99
100#ifndef __kernel_timex
101struct __kernel_timex {100struct __kernel_timex {
102 unsigned int modes; /* mode selector */101 unsigned int modes; /* mode selector */
103 int :32; /* pad */102 int :32; /* pad */
@@ -131,7 +130,6 @@ struct __kernel_timex { · 27 unmodified lines
131 int :32; int :32; int :32; int :32;130 int :32; int :32; int :32; int :32;
132 int :32; int :32; int :32;131 int :32; int :32; int :32;
133};132};
134#endif
135 133
136/*134/*
137 * Mode codes (timex.mode)135 * Mode codes (timex.mode)