blob: 31f2774f199464f9f7597f8603387f42dd3b1687 [file] [log] [blame]
Deepa Dinamani0d553032018-03-13 21:03:25 -07001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _LINUX_COMPAT_TIME_H
3#define _LINUX_COMPAT_TIME_H
4
5#include <linux/types.h>
Deepa Dinamani1c68adf2018-03-13 21:03:26 -07006#include <linux/time64.h>
Deepa Dinamani0d553032018-03-13 21:03:25 -07007
8typedef s32 compat_time_t;
9
10struct compat_timespec {
11 compat_time_t tv_sec;
12 s32 tv_nsec;
13};
14
15struct compat_timeval {
16 compat_time_t tv_sec;
17 s32 tv_usec;
18};
19
Deepa Dinamani1c68adf2018-03-13 21:03:26 -070020extern int compat_get_timespec64(struct timespec64 *, const void __user *);
21extern int compat_put_timespec64(const struct timespec64 *, void __user *);
22
Deepa Dinamani0d553032018-03-13 21:03:25 -070023#endif /* _LINUX_COMPAT_TIME_H */