diff options
Diffstat (limited to 'include/linux/time32.h')
| -rw-r--r-- | include/linux/time32.h | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/include/linux/time32.h b/include/linux/time32.h index 118b9977080c..0a1f302a1753 100644 --- a/include/linux/time32.h +++ b/include/linux/time32.h | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | #include <linux/time64.h> | 12 | #include <linux/time64.h> |
| 13 | #include <linux/timex.h> | ||
| 13 | 14 | ||
| 14 | #define TIME_T_MAX (time_t)((1UL << ((sizeof(time_t) << 3) - 1)) - 1) | 15 | #define TIME_T_MAX (time_t)((1UL << ((sizeof(time_t) << 3) - 1)) - 1) |
| 15 | 16 | ||
| @@ -35,13 +36,42 @@ struct old_utimbuf32 { | |||
| 35 | old_time32_t modtime; | 36 | old_time32_t modtime; |
| 36 | }; | 37 | }; |
| 37 | 38 | ||
| 39 | struct old_timex32 { | ||
| 40 | u32 modes; | ||
| 41 | s32 offset; | ||
| 42 | s32 freq; | ||
| 43 | s32 maxerror; | ||
| 44 | s32 esterror; | ||
| 45 | s32 status; | ||
| 46 | s32 constant; | ||
| 47 | s32 precision; | ||
| 48 | s32 tolerance; | ||
| 49 | struct old_timeval32 time; | ||
| 50 | s32 tick; | ||
| 51 | s32 ppsfreq; | ||
| 52 | s32 jitter; | ||
| 53 | s32 shift; | ||
| 54 | s32 stabil; | ||
| 55 | s32 jitcnt; | ||
| 56 | s32 calcnt; | ||
| 57 | s32 errcnt; | ||
| 58 | s32 stbcnt; | ||
| 59 | s32 tai; | ||
| 60 | |||
| 61 | s32:32; s32:32; s32:32; s32:32; | ||
| 62 | s32:32; s32:32; s32:32; s32:32; | ||
| 63 | s32:32; s32:32; s32:32; | ||
| 64 | }; | ||
| 65 | |||
| 38 | extern int get_old_timespec32(struct timespec64 *, const void __user *); | 66 | extern int get_old_timespec32(struct timespec64 *, const void __user *); |
| 39 | extern int put_old_timespec32(const struct timespec64 *, void __user *); | 67 | extern int put_old_timespec32(const struct timespec64 *, void __user *); |
| 40 | extern int get_old_itimerspec32(struct itimerspec64 *its, | 68 | extern int get_old_itimerspec32(struct itimerspec64 *its, |
| 41 | const struct old_itimerspec32 __user *uits); | 69 | const struct old_itimerspec32 __user *uits); |
| 42 | extern int put_old_itimerspec32(const struct itimerspec64 *its, | 70 | extern int put_old_itimerspec32(const struct itimerspec64 *its, |
| 43 | struct old_itimerspec32 __user *uits); | 71 | struct old_itimerspec32 __user *uits); |
| 44 | 72 | struct __kernel_timex; | |
| 73 | int get_old_timex32(struct __kernel_timex *, const struct old_timex32 __user *); | ||
| 74 | int put_old_timex32(struct old_timex32 __user *, const struct __kernel_timex *); | ||
| 45 | 75 | ||
| 46 | #if __BITS_PER_LONG == 64 | 76 | #if __BITS_PER_LONG == 64 |
| 47 | 77 | ||
