Displaying 5 results from an estimated 5 matches for "__nr_mmap2".
Did you mean:
__nr_mmap
2023 Dec 15
0
[PATCH] Allow MAP_NORESERVE in sandbox seccomp filter maps
...ox-seccomp-filter.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c
index 23b40b643..a49c5ca99 100644
--- a/sandbox-seccomp-filter.c
+++ b/sandbox-seccomp-filter.c
@@ -190,9 +190,11 @@
#if defined(__NR_mmap) || defined(__NR_mmap2)
# ifdef MAP_FIXED_NOREPLACE
-# define SC_MMAP_FLAGS MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED|MAP_FIXED_NOREPLACE
+# define SC_MMAP_FLAGS MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED \
+ |MAP_NORESERVE|MAP_FIXED_NOREPLACE
# else
-# define SC_MMAP_FLAGS MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED
+# define SC_MMAP...
2003 Dec 12
2
[PATCH] ppc64 support
...Nx linux klibc-0.92.orig/klibc/mmap.c klibc-0.92/klibc/mmap.c
--- klibc-0.92.orig/klibc/mmap.c 2002-11-15 05:07:50.000000000 +0000
+++ klibc-0.92/klibc/mmap.c 2003-12-12 21:54:45.000000000 +0000
@@ -19,7 +19,7 @@
* Prefer mmap2() over mmap(), except on the architectures listed
*/
-#if defined(__NR_mmap2) && !defined(__sparc__) && !defined(__ia64__)
+#if defined(__NR_mmap2) && !defined(__sparc__) && !defined(__ia64__) && !defined(__powerpc64__)
/* This architecture uses mmap2() */
--
USB is for mice, FireWire is for men!
sUse lINUX ag, n?RNBERG
2006 Jun 07
0
[patch] s390: fix mmap complilation
.../s390/mmap.c
index 2b1935b..4c43779 100644
--- a/usr/klibc/arch/s390/mmap.c
+++ b/usr/klibc/arch/s390/mmap.c
@@ -1,3 +1,4 @@
+#include <errno.h>
#include <sys/types.h>
#include <linux/unistd.h>
@@ -32,7 +33,7 @@ void *__mmap2(void *addr, size_t len, in
: "i"(__NR_mmap2), "0"(__arg1)
: "1", "cc", "memory");
__res = __svcres;
- if (__res >= (unsigned long)-125) {
+ if (__res >= (unsigned long)-4095) {
errno = -__res;
__res = -1;
}
@@ -64,7 +65,7 @@ void * mmap(void * addr, size_t len, int
"0...
2006 Jun 26
0
[klibc 33/43] s390 support for klibc
...ned long)fd,
+ (unsigned long)offset,
+ };
+
+ register struct mmap_arg_struct *__arg1 asm("2") = &args;
+ register long __svcres asm("2");
+ unsigned long __res;
+
+ __asm__ __volatile__(" svc %b1\n"
+ : "=d"(__svcres)
+ : "i"(__NR_mmap2), "0"(__arg1)
+ : "1", "cc", "memory");
+ __res = __svcres;
+ if (__res >= (unsigned long)-4095) {
+ errno = -__res;
+ __res = -1;
+ }
+ return (void *)__res;
+}
+
+#else /* __s390x__ */
+
+void * mmap(void * addr, size_t len, int prot, int flags,...
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In
particular, the patchset has been reorganized so as not to break
git-bisect.
Additionally, this updates the patch base to 2.6.17-git12
(d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main
difference on the klibc side is removal of obsolete code.
This is also available as a git tree at: