1 #ifndef _LINUX_TIME32_H
2 #define _LINUX_TIME32_H
4 * These are all interfaces based on the old time_t definition
5 * that overflows in 2038 on 32-bit architectures. New code
6 * should use the replacements based on time64_t and timespec64.
8 * Any interfaces in here that become unused as we migrate
9 * code to time64_t should get removed.
12 #include <linux/time64.h>
13 #include <linux/timex.h>
15 #include <vdso/time32.h>
17 struct old_itimerspec32
{
18 struct old_timespec32 it_interval
;
19 struct old_timespec32 it_value
;
22 struct old_utimbuf32
{
37 struct old_timeval32 time
;
49 s32
:32; s32
:32; s32
:32; s32
:32;
50 s32
:32; s32
:32; s32
:32; s32
:32;
51 s32
:32; s32
:32; s32
:32;
54 extern int get_old_timespec32(struct timespec64
*, const void __user
*);
55 extern int put_old_timespec32(const struct timespec64
*, void __user
*);
56 extern int get_old_itimerspec32(struct itimerspec64
*its
,
57 const struct old_itimerspec32 __user
*uits
);
58 extern int put_old_itimerspec32(const struct itimerspec64
*its
,
59 struct old_itimerspec32 __user
*uits
);
60 struct __kernel_timex
;
61 int get_old_timex32(struct __kernel_timex
*, const struct old_timex32 __user
*);
62 int put_old_timex32(struct old_timex32 __user
*, const struct __kernel_timex
*);
65 * ns_to_kernel_old_timeval - Convert nanoseconds to timeval
66 * @nsec: the nanoseconds value to be converted
68 * Returns the timeval representation of the nsec parameter.
70 extern struct __kernel_old_timeval
ns_to_kernel_old_timeval(s64 nsec
);