projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream fix for syscall() not setting errno on errors on MIPS
[openwrt.git]
/
toolchain
/
uClibc
/
patches
/
001-fix_mmap.patch
diff --git
a/toolchain/uClibc/patches/001-fix_mmap.patch
b/toolchain/uClibc/patches/001-fix_mmap.patch
index
4775e8c
..
38cf60a
100644
(file)
--- a/
toolchain/uClibc/patches/001-fix_mmap.patch
+++ b/
toolchain/uClibc/patches/001-fix_mmap.patch
@@
-1,5
+1,5
@@
----
uClibc-0.9.29.oorig/test/mmap/mmap2.c (revision 0)
-+++
uClibc-0.9.29/test/mmap/mmap2.c (revision 18616)
+---
/dev/null
++++
b/test/mmap/mmap2.c
@@ -0,0 +1,41 @@
+/* When trying to map /dev/mem with offset 0xFFFFF000 on the ARM platform, mmap
+ * returns -EOVERFLOW.
@@ -0,0 +1,41 @@
+/* When trying to map /dev/mem with offset 0xFFFFF000 on the ARM platform, mmap
+ * returns -EOVERFLOW.
@@
-42,8
+42,8
@@
+ close(fd);
+ return 0;
+}
+ close(fd);
+ return 0;
+}
----
uClibc-0.9.29.oorig/libc/sysdeps/linux/arm/mmap.c (revision 18615)
-+++
uClibc-0.9.29/libc/sysdeps/linux/arm/mmap.c (revision 18616)
+---
a/libc/sysdeps/linux/arm/mmap.c
++++
b/libc/sysdeps/linux/arm/mmap.c
@@ -27,7 +27,6 @@ __ptr_t mmap(__ptr_t addr, size_t len, i
#elif defined (__NR_mmap2)
@@ -27,7 +27,6 @@ __ptr_t mmap(__ptr_t addr, size_t len, i
#elif defined (__NR_mmap2)
@@
-71,8
+71,8
@@
}
#elif defined (__NR_mmap)
# define __NR__mmap __NR_mmap
}
#elif defined (__NR_mmap)
# define __NR__mmap __NR_mmap
----
uClibc-0.9.29.oorig/libc/sysdeps/linux/common/mmap64.c (revision 18615)
-+++
uClibc-0.9.29/libc/sysdeps/linux/common/mmap64.c (revision 18616)
+---
a/libc/sysdeps/linux/common/mmap64.c
++++
b/libc/sysdeps/linux/common/mmap64.c
@@ -58,8 +58,13 @@ __ptr_t mmap64(__ptr_t addr, size_t len,
__set_errno(EINVAL);
return MAP_FAILED;
@@ -58,8 +58,13 @@ __ptr_t mmap64(__ptr_t addr, size_t len,
__set_errno(EINVAL);
return MAP_FAILED;
This page took
0.023711 seconds
and
4
git commands to generate.