aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/compat.h')
-rw-r--r--include/linux/compat.h20
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;
115struct compat_sel_arg_struct; 115struct compat_sel_arg_struct;
116struct rusage; 116struct rusage;
117 117
118struct compat_itimerspec {
119 struct compat_timespec it_interval;
120 struct compat_timespec it_value;
121};
122
123struct compat_utimbuf { 118struct 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 *);
300extern int compat_put_timespec(const struct timespec *, void __user *); 295extern int compat_put_timespec(const struct timespec *, void __user *);
301extern int compat_get_timeval(struct timeval *, const void __user *); 296extern int compat_get_timeval(struct timeval *, const void __user *);
302extern int compat_put_timeval(const struct timeval *, void __user *); 297extern int compat_put_timeval(const struct timeval *, void __user *);
303extern int get_compat_itimerspec64(struct itimerspec64 *its,
304 const struct compat_itimerspec __user *uits);
305extern int put_compat_itimerspec64(const struct itimerspec64 *its,
306 struct compat_itimerspec __user *uits);
307 298
308struct compat_iovec { 299struct 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
1028int kcompat_sys_statfs64(const char __user * pathname, compat_size_t sz,
1029 struct compat_statfs64 __user * buf);
1030int 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)