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
12#include <linux/time64.h>12#include <linux/time64.h>
13#include <linux/timex.h>13#include <linux/timex.h>
14 14
15#define TIME_T_MAX (__kernel_old_time_t)((1UL << ((sizeof(__kernel_old_time_t) << 3) - 1)) - 1)15#include <vdso/time32.h>
16
17typedef s32 old_time32_t;
18
19struct old_timespec32 {
20 old_time32_t tv_sec;
21 s32 tv_nsec;
22};
23 16
24struct old_timeval32 {17#define TIME_T_MAX (__kernel_old_time_t)((1UL << ((sizeof(__kernel_old_time_t) << 3) - 1)) - 1)
25 old_time32_t tv_sec;
26 s32 tv_usec;
27};
28 18
29struct old_itimerspec32 {19struct old_itimerspec32 {
30 struct old_timespec32 it_interval;20 struct old_timespec32 it_interval;