diff options
Diffstat (limited to 'include/linux/compat.h')
| -rw-r--r-- | include/linux/compat.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h index c68acc47da57..1a3c4f37e908 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h | |||
| @@ -115,11 +115,6 @@ typedef compat_ulong_t compat_aio_context_t; | |||
| 115 | struct compat_sel_arg_struct; | 115 | struct compat_sel_arg_struct; |
| 116 | struct rusage; | 116 | struct rusage; |
| 117 | 117 | ||
| 118 | struct compat_itimerspec { | ||
| 119 | struct compat_timespec it_interval; | ||
| 120 | struct compat_timespec it_value; | ||
| 121 | }; | ||
| 122 | |||
| 123 | struct compat_utimbuf { | 118 | struct compat_utimbuf { |
| 124 | compat_time_t actime; | 119 | compat_time_t actime; |
| 125 | compat_time_t modtime; | 120 | compat_time_t modtime; |
| @@ -300,10 +295,6 @@ extern int compat_get_timespec(struct timespec *, const void __user *); | |||
| 300 | extern int compat_put_timespec(const struct timespec *, void __user *); | 295 | extern int compat_put_timespec(const struct timespec *, void __user *); |
| 301 | extern int compat_get_timeval(struct timeval *, const void __user *); | 296 | extern int compat_get_timeval(struct timeval *, const void __user *); |
| 302 | extern int compat_put_timeval(const struct timeval *, void __user *); | 297 | extern int compat_put_timeval(const struct timeval *, void __user *); |
| 303 | extern int get_compat_itimerspec64(struct itimerspec64 *its, | ||
| 304 | const struct compat_itimerspec __user *uits); | ||
| 305 | extern int put_compat_itimerspec64(const struct itimerspec64 *its, | ||
| 306 | struct compat_itimerspec __user *uits); | ||
| 307 | 298 | ||
| 308 | struct compat_iovec { | 299 | struct compat_iovec { |
| 309 | compat_uptr_t iov_base; | 300 | compat_uptr_t iov_base; |
| @@ -1028,6 +1019,17 @@ static inline struct compat_timeval ns_to_compat_timeval(s64 nsec) | |||
| 1028 | return ctv; | 1019 | return ctv; |
| 1029 | } | 1020 | } |
| 1030 | 1021 | ||
| 1022 | /* | ||
| 1023 | * Kernel code should not call compat syscalls (i.e., compat_sys_xyzyyz()) | ||
| 1024 | * directly. Instead, use one of the functions which work equivalently, such | ||
| 1025 | * as the kcompat_sys_xyzyyz() functions prototyped below. | ||
| 1026 | */ | ||
| 1027 | |||
| 1028 | int kcompat_sys_statfs64(const char __user * pathname, compat_size_t sz, | ||
| 1029 | struct compat_statfs64 __user * buf); | ||
| 1030 | int kcompat_sys_fstatfs64(unsigned int fd, compat_size_t sz, | ||
| 1031 | struct compat_statfs64 __user * buf); | ||
| 1032 | |||
| 1031 | #else /* !CONFIG_COMPAT */ | 1033 | #else /* !CONFIG_COMPAT */ |
| 1032 | 1034 | ||
| 1033 | #define is_compat_task() (0) | 1035 | #define is_compat_task() (0) |
