History

linux/time32.h: Extract common header for vDSO

The vDSO library should only include the necessary headers required for a userspace library (UAPI and a minimal set of kernel headers). To make this possible it is necessary to isolate from the kernel headers the common parts that are strictly necessary to build the library. Split time32.h into linux and common headers to make the latter suitable for inclusion in the vDSO library.

Vincenzo Frascino committed 6 years ago

Commit 9a416231 parent 639fff12 files · +19 −12Browse files

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

Unified · Split

include/linux/time32.h+2−12
@@ -12,19 +12,9 @@ · 11 unmodified lines
1212 #include <linux/time64.h>
1313 #include <linux/timex.h>
1414
15−#define TIME_T_MAX (__kernel_old_time_t)((1UL << ((sizeof(__kernel_old_time_t) << 3) - 1)) - 1)
16−
17−typedef s32 old_time32_t;
18−
19−struct old_timespec32 {
20− old_time32_t tv_sec;
21− s32 tv_nsec;
22−};
15+#include <vdso/time32.h>
2316
24−struct old_timeval32 {
25− old_time32_t tv_sec;
26− s32 tv_usec;
27−};
17+#define TIME_T_MAX (__kernel_old_time_t)((1UL << ((sizeof(__kernel_old_time_t) << 3) - 1)) - 1)
2818
2919 struct old_itimerspec32 {
3020 struct old_timespec32 it_interval;