mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
afef05cf23
This will aid in enabling the compat syscalls on 32-bit architectures later on. Also move compat_itimerspec and related defines to compat_time.h. The compat_time.h file will eventually be deleted. Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: arnd@arndb.de Cc: viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org Cc: linux-api@vger.kernel.org Cc: y2038@lists.linaro.org Link: https://lkml.kernel.org/r/20180617051144.29756-3-deepa.kernel@gmail.com
32 lines
821 B
C
32 lines
821 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_COMPAT_TIME_H
|
|
#define _LINUX_COMPAT_TIME_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/time64.h>
|
|
|
|
typedef s32 compat_time_t;
|
|
|
|
struct compat_timespec {
|
|
compat_time_t tv_sec;
|
|
s32 tv_nsec;
|
|
};
|
|
|
|
struct compat_timeval {
|
|
compat_time_t tv_sec;
|
|
s32 tv_usec;
|
|
};
|
|
|
|
struct compat_itimerspec {
|
|
struct compat_timespec it_interval;
|
|
struct compat_timespec it_value;
|
|
};
|
|
|
|
extern int compat_get_timespec64(struct timespec64 *, const void __user *);
|
|
extern int compat_put_timespec64(const struct timespec64 *, void __user *);
|
|
extern int get_compat_itimerspec64(struct itimerspec64 *its,
|
|
const struct compat_itimerspec __user *uits);
|
|
extern int put_compat_itimerspec64(const struct itimerspec64 *its,
|
|
struct compat_itimerspec __user *uits);
|
|
|
|
#endif /* _LINUX_COMPAT_TIME_H */
|