Home
last modified time | relevance | path

Searched refs:PROT_WRITE (Results 1 – 25 of 284) sorted by relevance

12345678910>>...12

/openbsd/sys/uvm/
H A Duvm_km.c181 UVM_MAPFLAG(PROT_READ | PROT_WRITE, PROT_READ | PROT_WRITE, in uvm_km_init()
213 UVM_MAPFLAG(PROT_READ | PROT_WRITE, PROT_READ | PROT_WRITE, in uvm_km_suballoc()
354 valign, UVM_MAPFLAG(PROT_READ | PROT_WRITE, PROT_READ | PROT_WRITE, in uvm_km_kmemalloc_pla()
409 PROT_READ | PROT_WRITE); in uvm_km_kmemalloc_pla()
412 PROT_READ | PROT_WRITE, in uvm_km_kmemalloc_pla()
413 PROT_READ | PROT_WRITE | PMAP_WIRED); in uvm_km_kmemalloc_pla()
508 UVM_MAPFLAG(PROT_READ | PROT_WRITE, in uvm_km_page_init()
509 PROT_READ | PROT_WRITE, MAP_INHERIT_NONE, in uvm_km_page_init()
576 flags = UVM_MAPFLAG(PROT_READ | PROT_WRITE, in uvm_km_thread()
589 flags = UVM_MAPFLAG(PROT_READ | PROT_WRITE, in uvm_km_thread()
[all …]
H A Duvm_mmap.c239 if ((prot & (PROT_WRITE | PROT_EXEC)) == (PROT_WRITE | PROT_EXEC) && in sys_mmap()
256 if ((prot & (PROT_READ|PROT_WRITE)) != (PROT_READ|PROT_WRITE)) in sys_mmap()
369 maxprot |= PROT_WRITE; in sys_mmap()
370 else if (prot & PROT_WRITE) { in sys_mmap()
374 } else if (prot & PROT_WRITE) { in sys_mmap()
380 maxprot |= PROT_WRITE; in sys_mmap()
570 if ((prot & (PROT_WRITE | PROT_EXEC)) == (PROT_WRITE | PROT_EXEC) && in sys_mprotect()
1063 maxprot : (maxprot & ~PROT_WRITE)); in uvm_mmapfile()
1089 if ((prot & PROT_WRITE) || in uvm_mmapfile()
1090 (maxprot & PROT_WRITE)) { in uvm_mmapfile()
[all …]
/openbsd/gnu/gcc/gcc/config/
H A Dhost-linux.c104 addr = mmap ((void *)TRY_EMPTY_VM_SPACE, size, PROT_READ | PROT_WRITE, in linux_gt_pch_get_address()
145 addr = mmap (0, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in linux_gt_pch_get_address()
182 addr = mmap (base, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, offset); in linux_gt_pch_use_address()
191 addr = mmap (base, size, PROT_READ | PROT_WRITE, in linux_gt_pch_use_address()
H A Dhost-hpux.c60 addr = mmap ((void *)TRY_EMPTY_VM_SPACE, size, PROT_READ | PROT_WRITE, in hpux_gt_pch_get_address()
99 addr = mmap (base, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, offset); in hpux_gt_pch_use_address()
108 addr = mmap (base, size, PROT_READ | PROT_WRITE, in hpux_gt_pch_use_address()
H A Dhost-solaris.c46 addr = mmap (base, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, in sol_gt_pch_use_address()
71 PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, in sol_gt_pch_use_address()
/openbsd/lib/libarch/alpha/
H A Dbwx.c118 if ((bwx_int1_ports = mmap(0, end-start, PROT_READ|PROT_WRITE, in bwx_ioperm()
122 if ((bwx_int2_ports = mmap(0, end-start, PROT_READ|PROT_WRITE, in bwx_ioperm()
126 if ((bwx_int4_ports = mmap(0, end-start, PROT_READ|PROT_WRITE, in bwx_ioperm()
194 h->virt1 = mmap(0, sz, PROT_READ|PROT_WRITE, MAP_SHARED, in bwx_map_memory()
201 h->virt2 = mmap(0, sz, PROT_READ|PROT_WRITE, MAP_SHARED, in bwx_map_memory()
209 h->virt4 = mmap(0, sz, PROT_READ|PROT_WRITE, MAP_SHARED, in bwx_map_memory()
/openbsd/lib/libc/stdlib/
H A Datexit.c82 else if (mprotect(p, pgsize, PROT_READ | PROT_WRITE)) in __cxa_atexit()
86 p = mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in __cxa_atexit()
172 if (mprotect(p, pgsize, PROT_READ | PROT_WRITE) == 0) { in __cxa_finalize()
236 p = mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in __atexit_register_cleanup()
246 if (mprotect(p, pgsize, PROT_READ | PROT_WRITE)) in __atexit_register_cleanup()
/openbsd/sys/arch/armv7/armv7/
H A Darmv7_machdep.c317 PROT_READ | PROT_WRITE, PTE_NOCACHE); in bootstrap_bs_map()
640 PROT_READ | PROT_WRITE, PTE_CACHE); in initarm()
649 IRQ_STACK_SIZE * PAGE_SIZE, PROT_READ | PROT_WRITE, PTE_CACHE); in initarm()
651 ABT_STACK_SIZE * PAGE_SIZE, PROT_READ | PROT_WRITE, PTE_CACHE); in initarm()
653 UND_STACK_SIZE * PAGE_SIZE, PROT_READ | PROT_WRITE, PTE_CACHE); in initarm()
655 UPAGES * PAGE_SIZE, PROT_READ | PROT_WRITE, PTE_CACHE); in initarm()
658 L1_TABLE_SIZE, PROT_READ | PROT_WRITE, PTE_PAGETABLE); in initarm()
663 PROT_READ | PROT_WRITE, PTE_PAGETABLE); in initarm()
670 PROT_READ | PROT_WRITE, PTE_CACHE); in initarm()
675 PROT_READ | PROT_WRITE, PTE_CACHE); in initarm()
[all …]
/openbsd/regress/sys/uvm/mmap_noreplace/
H A Dmmap_noreplace.c49 p = mmap(NULL, 3 * pagesize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0); in main()
58 PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON|MAP_FIXED, -1, 0)); in main()
70 CHECK_EQ(MAP_FAILED, mmap(p, pagesize, PROT_READ|PROT_WRITE, in main()
/openbsd/sys/arch/arm64/arm64/
H A Dpmap.c586 if ((prot & PROT_WRITE) && (flags & PROT_WRITE)) { in pmap_enter()
826 pmap_kenter_pa(va, pa, PROT_READ|PROT_WRITE); in pmap_zero_page()
1092 pmap_kenter_pa(va, pa, PROT_READ|PROT_WRITE); in pmap_kpted_alloc()
1460 pted->pted_va &= ~PROT_WRITE; in pmap_page_ro()
1461 pted->pted_pte &= ~PROT_WRITE; in pmap_page_ro()
1487 pted->pted_va |= PROT_WRITE; in pmap_page_rw()
1488 pted->pted_pte |= PROT_WRITE; in pmap_page_rw()
1630 pmap_kenter_pa(kva, pa, PROT_READ|PROT_WRITE); in pmap_proc_iflush()
1645 pmap_kenter_pa(kva, pa, PROT_READ|PROT_WRITE); in pmap_icache_sync_page()
1919 pted->pted_pte &= ~PROT_WRITE; in pmap_clear_modify()
[all …]
/openbsd/lib/libc/gen/
H A Dexec.c59 argv = mmap(NULL, maplen, PROT_WRITE|PROT_READ, in execl()
94 argv = mmap(NULL, maplen, PROT_WRITE|PROT_READ, in execle()
129 argv = mmap(NULL, maplen, PROT_WRITE|PROT_READ, in execlp()
187 cur = mmap(NULL, curlen, PROT_WRITE|PROT_READ, in execvpe()
242 memp = mmap(NULL, maplen, PROT_WRITE|PROT_READ, in execvpe()
/openbsd/sys/arch/arm/include/
H A Dpmap.h438 pte = (pr & PROT_WRITE) ? L1_S_PROT_UW : L1_S_PROT_UR; in L1_S_PROT()
440 pte = (pr & PROT_WRITE) ? L1_S_PROT_KW : L1_S_PROT_KR; in L1_S_PROT()
453 pte = (pr & PROT_WRITE) ? L2_L_PROT_UW : L2_L_PROT_UR; in L2_L_PROT()
455 pte = (pr & PROT_WRITE) ? L2_L_PROT_KW : L2_L_PROT_KR; in L2_L_PROT()
468 pte = (pr & PROT_WRITE) ? L2_S_PROT_UW : L2_S_PROT_UR; in L2_S_PROT()
470 pte = (pr & PROT_WRITE) ? L2_S_PROT_KW : L2_S_PROT_KR; in L2_S_PROT()
/openbsd/sys/arch/riscv64/riscv64/
H A Dpmap.c285 [PROT_WRITE] = PTE_U|PTE_A|PTE_R|PTE_D|PTE_W,
296 [PROT_WRITE] = PTE_A|PTE_R|PTE_D|PTE_W,
297 [PROT_WRITE|PROT_READ] = PTE_A|PTE_R|PTE_D|PTE_W,
533 if ((prot & PROT_WRITE) && (flags & PROT_WRITE)) { in pmap_enter()
780 pmap_kenter_pa(va, pa, PROT_READ|PROT_WRITE); in pmap_zero_page()
990 pmap_kenter_pa(va, pa[0], PROT_READ|PROT_WRITE); in pmap_kvp_alloc()
1021 pmap_kenter_pa(va, pa, PROT_READ|PROT_WRITE); in pmap_kpted_alloc()
1417 pted->pted_va &= ~PROT_WRITE; in pmap_page_ro()
1418 pted->pted_pte &= ~PROT_WRITE; in pmap_page_ro()
1783 pted->pted_pte &= ~PROT_WRITE; in pmap_clear_modify()
[all …]
/openbsd/regress/lib/libc/sys/
H A Dt_mmap.c267 vp = mmap(NULL, BUFSIZE, PROT_READ | PROT_WRITE,
279 vp = mmap(NULL, BUFSIZE, PROT_READ | PROT_WRITE,
282 vp2 = mmap(NULL, BUFSIZE, PROT_READ | PROT_WRITE,
324 map = mmap(NULL, 3, PROT_WRITE, MAP_FILE|MAP_PRIVATE, fd, 0);
448 map = mmap(NULL, page, PROT_READ | PROT_WRITE, MAP_FILE|MAP_PRIVATE,
561 map = mmap(NULL, page, PROT_WRITE, flags, -1, 0);
564 map = mmap(NULL, page, PROT_READ|PROT_WRITE, flags, -1, 0);
567 map = mmap(NULL, page, PROT_EXEC|PROT_READ|PROT_WRITE, flags, -1, 0);
/openbsd/regress/sys/kern/noexec/
H A Dnoexec.c218 PROT_READ | PROT_WRITE, in worker()
238 PROT_READ | PROT_WRITE, in worker()
254 PROT_READ | PROT_WRITE, in worker()
303 PROT_READ|PROT_WRITE, pflags, -1, 0LL); in worker()
308 PROT_READ|PROT_WRITE, pflags, -1, 0LL); in worker()
/openbsd/regress/sys/uvm/mmap0/
H A Dmmap0.c44 ptr = mmap(NULL, 0, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0); in main()
54 ptr = mmap(NULL, 0, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); in main()
/openbsd/regress/sys/kern/xonly/
H A Dxonly.c105 addr = mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE, in setup_mmap_x()
119 mprotect(addr, getpagesize(), PROT_READ | PROT_WRITE); in setup_mmap_nrx()
132 mprotect(addr, getpagesize(), PROT_WRITE); in setup_mmap_nwx()
146 mprotect(addr, getpagesize(), PROT_WRITE); in setup_mmap_xnwx()
/openbsd/sys/arch/powerpc64/powerpc64/
H A Dpmap.c729 if (prot & PROT_WRITE) in pmap_fill_pte()
743 if ((prot & (PROT_READ | PROT_WRITE)) == 0) in pmap_fill_pte()
1091 if ((flags & PROT_WRITE) == 0) in pmap_enter()
1092 prot &= ~PROT_WRITE; in pmap_enter()
1104 if (flags & PROT_WRITE) in pmap_enter()
1116 if (prot & PROT_WRITE) in pmap_enter()
1129 if ((prot & PROT_WRITE) && (pg != NULL)) in pmap_enter()
1182 if ((prot & (PROT_WRITE | PROT_EXEC)) == PROT_WRITE) in pmap_pted_ro()
1194 if ((prot & (PROT_READ | PROT_WRITE)) == 0) in pmap_pted_ro()
1309 if (prot & PROT_WRITE) { in pmap_kenter_pa()
[all …]
/openbsd/regress/lib/libc/arc4random-fork/
H A Darc4random-fork.c116 bufparent = mmap(NULL, sizeof(Buf), PROT_READ|PROT_WRITE, in main()
120 bufchildone = mmap(NULL, sizeof(Buf), PROT_READ|PROT_WRITE, in main()
124 bufchildtwo = mmap(NULL, sizeof(Buf), PROT_READ|PROT_WRITE, in main()
/openbsd/gnu/llvm/compiler-rt/lib/profile/
H A DWindowsMMap.c30 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC)) in mmap()
39 if (prot & PROT_WRITE) { in mmap()
63 if (prot & PROT_WRITE) in mmap()
/openbsd/lib/libcrypto/arc4random/
H A Darc4random_aix.h68 if ((*rsp = mmap(NULL, sizeof(**rsp), PROT_READ|PROT_WRITE, in _rs_allocate()
72 if ((*rsxp = mmap(NULL, sizeof(**rsxp), PROT_READ|PROT_WRITE, in _rs_allocate()
H A Darc4random_osx.h68 if ((*rsp = mmap(NULL, sizeof(**rsp), PROT_READ|PROT_WRITE, in _rs_allocate()
72 if ((*rsxp = mmap(NULL, sizeof(**rsxp), PROT_READ|PROT_WRITE, in _rs_allocate()
H A Darc4random_solaris.h68 if ((*rsp = mmap(NULL, sizeof(**rsp), PROT_READ|PROT_WRITE, in _rs_allocate()
72 if ((*rsxp = mmap(NULL, sizeof(**rsxp), PROT_READ|PROT_WRITE, in _rs_allocate()
H A Darc4random_freebsd.h74 if ((*rsp = mmap(NULL, sizeof(**rsp), PROT_READ|PROT_WRITE, in _rs_allocate()
78 if ((*rsxp = mmap(NULL, sizeof(**rsxp), PROT_READ|PROT_WRITE, in _rs_allocate()
H A Darc4random_hpux.h68 if ((*rsp = mmap(NULL, sizeof(**rsp), PROT_READ|PROT_WRITE, in _rs_allocate()
72 if ((*rsxp = mmap(NULL, sizeof(**rsxp), PROT_READ|PROT_WRITE, in _rs_allocate()

12345678910>>...12