]>
Commit | Line | Data |
---|---|---|
5867d216 | 1 | diff -ura 2.6.0-test11-base/include/linux/compat.h 2.6.0-test11-new/include/linux/compat.h |
2 | --- 2.6.0-test11-base/include/linux/compat.h 2003-11-26 15:43:56.000000000 -0500 | |
3 | +++ 2.6.0-test11-new/include/linux/compat.h 2003-12-02 15:48:14.000000000 -0500 | |
4 | @@ -44,8 +44,8 @@ | |
5 | } compat_sigset_t; | |
6 | ||
7 | extern int cp_compat_stat(struct kstat *, struct compat_stat *); | |
8 | -extern int get_compat_timespec(struct timespec *, struct compat_timespec *); | |
9 | -extern int put_compat_timespec(struct timespec *, struct compat_timespec *); | |
10 | +extern int get_compat_timespec(struct timespec *, const struct compat_timespec *); | |
11 | +extern int put_compat_timespec(struct timespec *, const struct compat_timespec *); | |
12 | ||
13 | struct compat_iovec { | |
14 | compat_uptr_t iov_base; | |
15 | diff -ura 2.6.0-test11-base/kernel/compat.c 2.6.0-test11-new/kernel/compat.c | |
16 | --- 2.6.0-test11-base/kernel/compat.c 2003-11-26 15:44:11.000000000 -0500 | |
17 | +++ 2.6.0-test11-new/kernel/compat.c 2003-12-02 15:48:14.000000000 -0500 | |
18 | @@ -22,14 +22,14 @@ | |
19 | ||
20 | #include <asm/uaccess.h> | |
21 | ||
22 | -int get_compat_timespec(struct timespec *ts, struct compat_timespec *cts) | |
23 | +int get_compat_timespec(struct timespec *ts, const struct compat_timespec *cts) | |
24 | { | |
25 | return (verify_area(VERIFY_READ, cts, sizeof(*cts)) || | |
26 | __get_user(ts->tv_sec, &cts->tv_sec) || | |
27 | __get_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0; | |
28 | } | |
29 | ||
30 | -int put_compat_timespec(struct timespec *ts, struct compat_timespec *cts) | |
31 | +int put_compat_timespec(struct timespec *ts, const struct compat_timespec *cts) | |
32 | { | |
33 | return (verify_area(VERIFY_WRITE, cts, sizeof(*cts)) || | |
34 | __put_user(ts->tv_sec, &cts->tv_sec) || |