mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 14:14:01 +08:00
1c68adf61e
These functions are used in the repurposed compat syscalls to provide backward compatibility for using 32 bit time_t on 32 bit systems. Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
24 lines
499 B
C
24 lines
499 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;
|
|
};
|
|
|
|
extern int compat_get_timespec64(struct timespec64 *, const void __user *);
|
|
extern int compat_put_timespec64(const struct timespec64 *, void __user *);
|
|
|
|
#endif /* _LINUX_COMPAT_TIME_H */
|