Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 19 of 19) sorted by relevance

/l4re-core-master/uclibc/lib/contrib/uclibc/utils/
A Dmmap-windows.c42 static void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset) in mmap() argument
44 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC)) in mmap()
53 if (prot & PROT_WRITE) { in mmap()
54 if (prot & PROT_EXEC) in mmap()
58 } else if (prot & PROT_EXEC) { in mmap()
59 if (prot & PROT_READ) in mmap()
61 else if (prot & PROT_EXEC) in mmap()
77 if (prot & PROT_WRITE) in mmap()
81 if (prot & PROT_EXEC) in mmap()
/l4re-core-master/libc_backends/lib/l4re_file/
A Dmmap.cc30 void *mmap2(void *addr, size_t length, int prot, int flags,
32 void *mmap2(void *addr, size_t length, int prot, int flags, in mmap2() argument
36 int r = L4B(mmap2(addr, length, prot, flags, fd, pgoffset, &resptr)); in mmap2()
48 void *mmap64(void *addr, size_t length, int prot, int flags, in mmap64() argument
50 noexcept(noexcept(mmap64(addr, length, prot, flags, fd, offset))) in mmap64()
57 return mmap2(addr, length, prot, flags, fd, offset >> 12); in mmap64()
60 void *mmap(void *addr, size_t length, int prot, int flags, in mmap() argument
62 noexcept(noexcept(mmap(addr, length, prot, flags, fd, offset))) in mmap()
64 return mmap64(addr, length, prot, flags, fd, offset); in mmap()
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/common/
A Dmmap.c21 int, prot, int, flags, int, fd, __off_t, offset)
33 int, prot, int, flags, int, fd, __off_t, offset)
35 static void *_mmap(void *addr, size_t len, int prot, int flags,
46 return __syscall_mmap2(addr, len, prot, flags, fd,
49 return __syscall_mmap2(addr, len, prot, flags, fd,
59 static void *_mmap(void *addr, size_t len, int prot, int flags,
66 buffer[2] = (unsigned long) prot;
A Dmmap64.c24 void *mmap64(void *addr, size_t len, int prot, int flags, int fd, __off64_t offset) in mmap64() argument
32 return mmap(addr, len, prot, flags, fd, (off_t) offset); in mmap64()
46 void *mmap64(void *addr, size_t len, int prot, int flags, int fd, __off64_t offset) in mmap64() argument
71 return (void*) INLINE_SYSCALL(mmap2, 6, addr, len, prot, flags, fd, sysoff); in mmap64()
A Dmprotect.c14 _syscall3(int, mprotect, void *, addr, size_t, len, int, prot)
/l4re-core-master/ldso/libdl/
A Ddl-syscall.h14 _dl_mprotect(void *addr, size_t len, int prot) in _dl_mprotect() argument
15 { (void)addr; (void)len; (void)prot; return -1; } //mprotect(addr, len, prot); } in _dl_mprotect()
83 _dl_mmap(void *start, size_t len, int prot, int flags, int fd, off_t offset) in _dl_mmap() argument
84 { return mmap(start, len, prot, flags, fd, offset); } in _dl_mmap()
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/avr32/
A Dmmap.c15 static __inline__ _syscall6(void *, mmap2, void *, addr, size_t, len, int, prot, in _syscall6() argument
18 void *mmap(void *addr, size_t len, int prot, int flags, int fd, __off_t offset) in _syscall6()
30 return mmap2(addr, len, prot, flags, fd, pgoff); in _syscall6()
/l4re-core-master/ldso/ldso/
A Dsyscalls.cc137 L4RE_CALL(int _dl_mprotect(void const *addr, size_t len, int prot)) in L4RE_CALL() argument
139 return L4RE_VFS->mprotect((void *)addr, len, prot); in L4RE_CALL()
150 L4RE_CALL(void *_dl_mmap(void *start, size_t len, int prot, int flags, int fd, off_t offset)) in L4RE_CALL() argument
156 outhex32((int)prot); outstring(", "); in L4RE_CALL()
163 int res = L4RE_VFS->mmap2(start, len, prot, flags, fd, offset >> 12, &resptr); in L4RE_CALL()
A Ddl-syscall.h29 L4RE_CALL(int _dl_mprotect(void const *addr, size_t len, int prot));
37 L4RE_CALL(void *_dl_mmap(void *start, size_t len, int prot, int flags, int fd, off_t offset));
/l4re-core-master/uclibc/lib/contrib/uclibc/ldso/include/
A Ddl-syscall.h84 unsigned long, len, int, prot) in _syscall3()
198 void *_dl_mmap(void *addr, unsigned long size, int prot, in _syscall2()
203 return (void *)INLINE_SYSCALL(mmap, 6, addr, size, prot, flags, fd, offset); in _syscall2()
214 return (void *)INLINE_SYSCALL(mmap2, 6, addr, size, prot, flags, fd, shifted); in _syscall2()
221 buffer[2] = (unsigned long) prot; in _syscall2()
/l4re-core-master/uclibc/lib/contrib/uclibc/test/mmap/
A Dmmap.c21 int prot; member
33 .args.prot = PROT_READ|PROT_WRITE,
56 t->ret = mmap(t->args.start, t->args.length, t->args.prot, in main()
/l4re-core-master/moe/server/src/
A Dmem.cc44 mmap(void *start, size_t length, int prot, in mmap() argument
46 noexcept(noexcept(mmap(start, length, prot, flags, fd, offset))) in mmap()
/l4re-core-master/l4re_kernel/server/src/
A Dmem.cc70 void * mmap(void *start, size_t length, int prot, in mmap() argument
72 noexcept(noexcept(mmap(start, length, prot, flags, fd, offset))) in mmap()
/l4re-core-master/uclibc/lib/uclibc/ARCH-all/libc/stdlib/malloc-standard/
A Dmalloc.h365 #define MMAP(addr, size, prot) \ argument
366 (mmap((addr), (size), (prot), MAP_PRIVATE|MAP_ANONYMOUS, 0, 0))
370 #define MMAP(addr, size, prot) \ argument
371 (mmap((addr), (size), (prot), MAP_SHARED|MAP_ANONYMOUS|MAP_UNINITIALIZE, 0, 0))
/l4re-core-master/l4re_vfs/include/impl/
A Dvfs_impl.h129 int mmap2(void *start, size_t len, int prot, int flags, int fd,
135 int mprotect(const void *a, size_t sz, int prot) throw();
513 Vfs::mmap2(void *start, size_t len, int prot, int flags, int fd, off_t _offset, in mmap2() argument
628 if (prot & PROT_READ) rm_flags |= Rm::F::R; in mmap2()
629 if (prot & PROT_WRITE) rm_flags |= Rm::F::W; in mmap2()
630 if (prot & PROT_EXEC) rm_flags |= Rm::F::X; in mmap2()
633 L4::Ipc::make_cap(ds.get(), (prot & PROT_WRITE) in mmap2()
887 Vfs::mprotect(const void *a, size_t sz, int prot) L4_NOTHROW in mprotect() argument
891 return (prot & PROT_WRITE) ? -1 : 0; in mprotect()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/
A Dallocatestack.c443 const int prot = (PROT_READ | PROT_WRITE); in allocate_stack() local
481 mem = mmap (NULL, size, prot, in allocate_stack()
636 && mprotect (oldguard, guard - oldguard, prot) != 0) in allocate_stack()
641 prot) != 0) in allocate_stack()
645 prot) != 0) in allocate_stack()
649 pd->guardsize - guardsize, prot) != 0) in allocate_stack()
A DChangeLog777 * allocatestack.c (allocate_stack): Pass prot as second parameter
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/stdlib/malloc-standard/
A Dmalloc.h361 #define MMAP(addr, size, prot) \ argument
362 (mmap((addr), (size), (prot), MAP_PRIVATE|MAP_ANONYMOUS|_MAP_UNINITIALIZED, 0, 0))
/l4re-core-master/l4re_vfs/include/
A Dvfs.h749 virtual int mmap2(void *start, size_t len, int prot, int flags, int fd,
760 virtual int mprotect(const void *a, size_t sz, int prot) throw() = 0;

Completed in 28 milliseconds