summaryrefslogtreecommitdiffstats
path: root/include/linux/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/compat.h')
-rw-r--r--include/linux/compat.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h
index 01c0aa57ccec..e6494261eaff 100644
--- a/include/linux/compat.h
+++ b/include/linux/compat.h
@@ -147,26 +147,23 @@ struct compat_sigaction {
147}; 147};
148 148
149/* 149/*
150 * These functions operate strictly on struct compat_time*
151 */
152extern int get_compat_timespec(struct timespec *,
153 const struct compat_timespec __user *);
154extern int put_compat_timespec(const struct timespec *,
155 struct compat_timespec __user *);
156extern int get_compat_timeval(struct timeval *,
157 const struct compat_timeval __user *);
158extern int put_compat_timeval(const struct timeval *,
159 struct compat_timeval __user *);
160/*
161 * These functions operate on 32- or 64-bit specs depending on 150 * These functions operate on 32- or 64-bit specs depending on
162 * COMPAT_USE_64BIT_TIME, hence the void user pointer arguments and the 151 * COMPAT_USE_64BIT_TIME, hence the void user pointer arguments.
163 * naming as compat_get/put_ rather than get/put_compat_.
164 */ 152 */
165extern int compat_get_timespec(struct timespec *, const void __user *); 153extern int compat_get_timespec(struct timespec *, const void __user *);
166extern int compat_put_timespec(const struct timespec *, void __user *); 154extern int compat_put_timespec(const struct timespec *, void __user *);
167extern int compat_get_timeval(struct timeval *, const void __user *); 155extern int compat_get_timeval(struct timeval *, const void __user *);
168extern int compat_put_timeval(const struct timeval *, void __user *); 156extern int compat_put_timeval(const struct timeval *, void __user *);
169 157
158/*
159 * This function convert a timespec if necessary and returns a *user
160 * space* pointer. If no conversion is necessary, it returns the
161 * initial pointer. NULL is a legitimate argument and will always
162 * output NULL.
163 */
164extern int compat_convert_timespec(struct timespec __user **,
165 const void __user *);
166
170struct compat_iovec { 167struct compat_iovec {
171 compat_uptr_t iov_base; 168 compat_uptr_t iov_base;
172 compat_size_t iov_len; 169 compat_size_t iov_len;