Searched refs:PROT_READ (Results 101 - 125 of 224) sorted by relevance

123456789

/freebsd-11-stable/tools/bus_space/
H A Dbus.c126 r->ptr = mmap(NULL, r->size, PROT_READ | PROT_WRITE,
/freebsd-11-stable/tools/tools/ncpus/
H A Dacpi.c199 map->va = mmap(0, size, PROT_READ, MAP_SHARED, acpi_mem_fd, pa);
/freebsd-11-stable/tools/tools/netrate/http/
H A Dhttp.c281 pagebuffer = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_ANON, -1, 0);
/freebsd-11-stable/tools/tools/netrate/httpd/
H A Dhttpd.c225 pagebuffer = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_ANON, -1, 0);
/freebsd-11-stable/tools/tools/pciroms/
H A Dpciroms.c316 map_addr = mmap(NULL, romsize, PROT_READ, MAP_SHARED|MAP_NOCORE,
/freebsd-11-stable/tools/tools/pirtool/
H A Dpirtool.c94 map_addr = mmap(NULL, PIR_SIZE, PROT_READ, MAP_SHARED, mem_fd,
/freebsd-11-stable/usr.bin/look/
H A Dlook.c156 if ((front = mmap(NULL, (size_t)sb.st_size, PROT_READ, MAP_SHARED, fd, (off_t)0)) == MAP_FAILED)
/freebsd-11-stable/usr.bin/xlint/lint1/
H A Dmem1.c180 prot = PROT_READ | PROT_WRITE;
/freebsd-11-stable/usr.sbin/rpc.statd/
H A Dfile.c191 mmap(NULL, 0x10000000, PROT_READ | PROT_WRITE, MAP_SHARED, status_fd, 0);
/freebsd-11-stable/contrib/netbsd-tests/net/bpf/
H A Dt_bpf.c132 iov[0].iov_base = mmap(NULL, sz, PROT_READ, MAP_ANON, -1, 0);
/freebsd-11-stable/lib/libthr/thread/
H A Dthr_spec.c181 PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
/freebsd-11-stable/sbin/ldconfig/
H A Delfhints.c212 mapbase = mmap(NULL, s.st_size, PROT_READ|PROT_WRITE,
/freebsd-11-stable/usr.sbin/cpucontrol/
H A Damd10h.c170 fw_image = (uint8_t *)mmap(NULL, st.st_size, PROT_READ,
H A Dintel.c172 fw_image = (uint32_t *)mmap(NULL, st.st_size, PROT_READ,
/freebsd-11-stable/usr.sbin/bhyve/
H A Dinout.c146 prot = in ? PROT_WRITE : PROT_READ;
/freebsd-11-stable/usr.bin/ktrdump/
H A Dktrdump.c186 buf = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, in, 0);
/freebsd-11-stable/usr.bin/grep/
H A Dfile.c297 buffer = mmap(NULL, fsiz, PROT_READ, flags,
/freebsd-11-stable/usr.bin/locate/locate/
H A Dlocate.c305 PROT_READ, MAP_SHARED,
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_platform_mac.cpp53 val = (void *)internal_mmap(nullptr, size, PROT_READ | PROT_WRITE,
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/safestack/
H A Dsafestack.cpp93 void *addr = Mmap(nullptr, size + guard, PROT_READ | PROT_WRITE,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/Unix/
H A DPath.inc780 int prot = (Mode == readonly) ? PROT_READ : (PROT_READ | PROT_WRITE);
789 // with PROT_READ, so take care not to specify them otherwise.
/freebsd-11-stable/sys/amd64/amd64/
H A Dbpf_jit_machdep.c610 stream.ibuf = mmap(NULL, *size, PROT_READ | PROT_WRITE,
647 mprotect(stream.ibuf, *size, PROT_READ | PROT_EXEC) != 0) {
/freebsd-11-stable/contrib/ntp/sntp/libopts/
H A Dconfigfile.c126 char * txt = text_mmap(fname, PROT_READ, MAP_PRIVATE, &cfgfile);
420 text_mmap(fname, PROT_READ|PROT_WRITE, MAP_PRIVATE, &cfgfile);
/freebsd-11-stable/sys/i386/i386/
H A Dbpf_jit_machdep.c639 stream.ibuf = mmap(NULL, *size, PROT_READ | PROT_WRITE,
676 mprotect(stream.ibuf, *size, PROT_READ | PROT_EXEC) != 0) {
/freebsd-11-stable/sys/amd64/vmm/
H A Dvmm_instruction_emul.c808 PROT_READ, seg, VM_REG_GUEST_RSI, &srcaddr, &fault);
812 error = vm_copy_setup(vm, vcpuid, paging, srcaddr, opsize, PROT_READ,
869 PROT_READ, &srcgpa, &fault);
1483 rsp, size, stackaddrsize, pushop ? PROT_WRITE : PROT_READ,
1500 pushop ? PROT_WRITE : PROT_READ, copyinfo, nitems(copyinfo),
1799 KASSERT((prot & ~(PROT_READ | PROT_WRITE)) == 0,
1835 if (prot & PROT_READ) {
2151 prot = PROT_READ | PROT_EXEC;

Completed in 307 milliseconds

123456789