initial import
[patches.git] / fadvise.patch
1 diff -urNp -x '*~' uClibc-0.9.29.org/libc/sysdeps/linux/arm/posix_fadvise.c uClibc-0.9.29/libc/sysdeps/linux/arm/posix_fadvise.c
2 --- uClibc-0.9.29.org/libc/sysdeps/linux/arm/posix_fadvise.c 2007-03-07 04:13:31.000000000 +0900
3 +++ uClibc-0.9.29/libc/sysdeps/linux/arm/posix_fadvise.c 2007-05-25 12:25:48.000000000 +0900
4 @@ -30,8 +30,7 @@ weak_alias(__libc_posix_fadvise, posix_f
5 #else
6 int posix_fadvise(int fd attribute_unused, off_t offset attribute_unused, off_t len attribute_unused, int advice attribute_unused)
7 {
8 - __set_errno(ENOSYS);
9 - return -1;
10 + return ENOSYS;
11 }
12 #endif
13
14 diff -urNp -x '*~' uClibc-0.9.29.org/libc/sysdeps/linux/arm/posix_fadvise64.c uClibc-0.9.29/libc/sysdeps/linux/arm/posix_fadvise64.c
15 --- uClibc-0.9.29.org/libc/sysdeps/linux/arm/posix_fadvise64.c 2007-03-07 04:13:31.000000000 +0900
16 +++ uClibc-0.9.29/libc/sysdeps/linux/arm/posix_fadvise64.c 2007-05-25 12:26:02.000000000 +0900
17 @@ -40,8 +40,7 @@ weak_alias(__libc_posix_fadvise64, posix
18 #else
19 int posix_fadvise64(int fd, __off64_t offset, __off64_t len, int advise)
20 {
21 - __set_errno(ENOSYS);
22 - return -1;
23 + return ENOSYS;
24 }
25 #endif
26 #endif
27 diff -urNp -x '*~' uClibc-0.9.29.org/libc/sysdeps/linux/common/posix_fadvise.c uClibc-0.9.29/libc/sysdeps/linux/common/posix_fadvise.c
28 --- uClibc-0.9.29.org/libc/sysdeps/linux/common/posix_fadvise.c 2007-03-06 17:06:26.000000000 +0900
29 +++ uClibc-0.9.29/libc/sysdeps/linux/common/posix_fadvise.c 2007-05-25 12:26:51.000000000 +0900
30 @@ -46,7 +46,6 @@ strong_alias(posix_fadvise,posix_fadvise
31 #else
32 int posix_fadvise(int fd attribute_unused, off_t offset attribute_unused, off_t len attribute_unused, int advice attribute_unused)
33 {
34 - __set_errno(ENOSYS);
35 - return -1;
36 + return ENOSYS;
37 }
38 #endif
39 diff -urNp -x '*~' uClibc-0.9.29.org/libc/sysdeps/linux/common/posix_fadvise64.c uClibc-0.9.29/libc/sysdeps/linux/common/posix_fadvise64.c
40 --- uClibc-0.9.29.org/libc/sysdeps/linux/common/posix_fadvise64.c 2007-03-06 17:06:26.000000000 +0900
41 +++ uClibc-0.9.29/libc/sysdeps/linux/common/posix_fadvise64.c 2007-05-25 12:26:31.000000000 +0900
42 @@ -74,8 +74,7 @@ int posix_fadvise64(int fd, __off64_t of
43 */
44 int posix_fadvise64(int fd, __off64_t offset, __off64_t len, int advice)
45 {
46 - __set_errno(ENOSYS);
47 - return -1;
48 + return ENOSYS;
49 }
50 #endif /* __NR_fadvise64_64 */
51 #endif /* __UCLIBC_HAS_LFS__ */