diff options
Diffstat (limited to 'include/linux/time32.h')
| -rw-r--r-- | include/linux/time32.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/time32.h b/include/linux/time32.h index 0b14f936100a..d1ae43c13e25 100644 --- a/include/linux/time32.h +++ b/include/linux/time32.h | |||
| @@ -207,4 +207,19 @@ static inline s64 timeval_to_ns(const struct timeval *tv) | |||
| 207 | extern struct timeval ns_to_timeval(const s64 nsec); | 207 | extern struct timeval ns_to_timeval(const s64 nsec); |
| 208 | extern struct __kernel_old_timeval ns_to_kernel_old_timeval(s64 nsec); | 208 | extern struct __kernel_old_timeval ns_to_kernel_old_timeval(s64 nsec); |
| 209 | 209 | ||
| 210 | /* | ||
| 211 | * New aliases for compat time functions. These will be used to replace | ||
| 212 | * the compat code so it can be shared between 32-bit and 64-bit builds | ||
| 213 | * both of which provide compatibility with old 32-bit tasks. | ||
| 214 | */ | ||
| 215 | #define old_time32_t compat_time_t | ||
| 216 | #define old_timeval32 compat_timeval | ||
| 217 | #define old_timespec32 compat_timespec | ||
| 218 | #define old_itimerspec32 compat_itimerspec | ||
| 219 | #define ns_to_old_timeval32 ns_to_compat_timeval | ||
| 220 | #define get_old_itimerspec32 get_compat_itimerspec64 | ||
| 221 | #define put_old_itimerspec32 put_compat_itimerspec64 | ||
| 222 | #define get_old_timespec32 compat_get_timespec64 | ||
| 223 | #define put_old_timespec32 compat_put_timespec64 | ||
| 224 | |||
| 210 | #endif | 225 | #endif |
