Searched refs:PROT_NONE (Results 1 - 22 of 22) sorted by path

/freebsd-11-stable/contrib/gcc/config/
H A Dhost-linux.c144 buffer = mmap (0, buffer_size, PROT_NONE, MAP_PRIVATE | MAP_ANON, -1, 0);
/freebsd-11-stable/contrib/jemalloc/src/
H A Dpages.c13 # define PAGES_PROT_DECOMMIT (PROT_NONE)
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mincore.c244 addr3 = mmap(NULL, npgs * page, PROT_NONE, MAP_ANON, -1, (off_t)0);
H A Dt_mlock.c304 * But it should be impossible to mlock(2) a PROT_NONE mapping.
306 buf = mmap(NULL, page, PROT_NONE, flags, -1, 0);
H A Dt_mmap.c339 * Make a PROT_NONE mapping and try to access it.
342 map = mmap(NULL, page, PROT_NONE, MAP_ANON|MAP_PRIVATE, -1, 0);
376 * PROT_NONE. This should succeed, but
391 map = mmap(NULL, 3, PROT_NONE, MAP_FILE | MAP_SHARED, fd, 0);
H A Dt_mprotect.c114 int prot[2] = { PROT_NONE, PROT_READ };
124 * a PROT_NONE or PROT_READ file/section as PROT_WRITE.
262 const int prot[4] = { PROT_NONE, PROT_READ, PROT_WRITE };
/freebsd-11-stable/contrib/ofed/librdmacm/
H A Drsocket.c3776 if (!rs->cm_id->pd || (prot & ~(PROT_WRITE | PROT_NONE)))
/freebsd-11-stable/lib/libthr/thread/
H A Dthr_stack.c70 * typically created (actually, the red zone is mapped with PROT_NONE) above
278 mprotect(stackaddr, guardsize, PROT_NONE) == 0)) {
/freebsd-11-stable/sys/sys/
H A Dmman.h52 #define PROT_NONE 0x00 /* no permissions */ macro
/freebsd-11-stable/tests/sys/audit/
H A Dfile-attribute-modify.c887 ATF_REQUIRE_EQ(0, mprotect(NULL, 0, PROT_NONE));
908 ATF_REQUIRE_EQ(-1, mprotect((void *)SIZE_MAX, -1, PROT_NONE));
/freebsd-11-stable/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c159 p = mmap(NULL, getpagesize(), PROT_NONE, MAP_SHARED, fd_cap, 0);
/freebsd-11-stable/contrib/apr/memory/unix/
H A Dapr_pools.c405 if ((node = mmap(NULL, size + 2 * GUARDPAGE_SIZE, PROT_NONE,
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/
H A Dguarded_pool_allocator_posix.cpp23 mmap(nullptr, Size, PROT_NONE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
43 // mmap() a PROT_NONE page over the address to release it to the system, if
46 if (mmap(Ptr, Size, PROT_NONE, MAP_FIXED | MAP_ANONYMOUS | MAP_PRIVATE, -1,
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/safestack/
H A Dsafestack.cpp96 Mprotect(addr, guard, PROT_NONE);
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix.cpp142 return 0 == internal_mprotect((void*)addr, size, PROT_NONE);
H A Dsanitizer_posix_libcdep.cpp376 return (void *)MmapNamed((void *)fixed_addr, size, PROT_NONE,
383 return (void *)internal_mmap(nullptr, size, PROT_NONE, flags, -1, 0);
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dlinux.cpp50 MmapProt = PROT_NONE;
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DInferiorCallPOSIX.cpp27 #define PROT_NONE 0 macro
68 prot_arg = PROT_NONE;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/Unix/
H A DMemory.inc74 return PROT_NONE;
/freebsd-11-stable/lib/libvmmapi/
H A Dvmmapi.c390 ptr = mmap(NULL, len, PROT_NONE, MAP_GUARD | MAP_ALIGNED_SUPER, -1, 0);
492 base = mmap(NULL, len2, PROT_NONE, MAP_GUARD | MAP_ALIGNED_SUPER, -1,
/freebsd-11-stable/libexec/rtld-elf/
H A Dmap_object.c209 mapbase = mmap(base_addr, mapsize, PROT_NONE, base_flags, -1, 0);
/freebsd-11-stable/sys/vm/
H A Dvm_mmap.c254 if (prot != PROT_NONE &&
257 if ((flags & MAP_GUARD) != 0 && (prot != PROT_NONE || fd != -1 ||

Completed in 239 milliseconds