Home
last modified time | relevance | path

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

/PHP-8.0/sapi/phpdbg/
H A Dphpdbg_win.h26 #define PROT_READ 1 macro
H A Dphpdbg_win.c24 …return (int)VirtualProtect(addr, size, protection == (PROT_READ | PROT_WRITE) ? PAGE_READWRITE : P… in mprotect()
H A Dphpdbg_watch.c245 phpdbg_change_watchpoint_access(watch, PROT_READ); in phpdbg_activate_watchpoint()
249 phpdbg_change_watchpoint_access(watch, PROT_READ | PROT_WRITE); in phpdbg_deactivate_watchpoint()
273 mprotect(page, phpdbg_pagesize, PROT_READ | PROT_WRITE);
1080 mprotect((void *) page, phpdbg_pagesize, PROT_READ);
/PHP-8.0/ext/opcache/
H A Dshared_alloc_mmap.c42 int flags = PROT_READ | PROT_WRITE; in create_segments()
48 flags |= PROT_MAX(PROT_READ | PROT_WRITE | PROT_EXEC); in create_segments()
H A Dshared_alloc_posix.c66 …shared_segment->common.p = mmap(0, requested_size, PROT_READ | PROT_WRITE, MAP_SHARED, shared_segm… in create_segments()
H A Dconfig.m4195 shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0);
263 shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
H A Dzend_shared_alloc.c610 mode = PROT_READ; in zend_accel_shared_protect()
612 mode = PROT_READ|PROT_WRITE; in zend_accel_shared_protect()
H A DZendAccelerator.c2747 PROT_READ | PROT_WRITE, in accel_remap_huge_pages()
2760 PROT_READ | PROT_WRITE | PROT_EXEC, in accel_remap_huge_pages()
2766 PROT_READ | PROT_WRITE | PROT_EXEC, in accel_remap_huge_pages()
2774 mprotect(start, size, PROT_READ | PROT_EXEC); in accel_remap_huge_pages()
2783 mprotect(start, size, PROT_READ | PROT_EXEC); in accel_remap_huge_pages()
2794 mprotect(start, size, PROT_READ | PROT_EXEC); in accel_remap_huge_pages()
2847 void *addr = mmap(NULL, s, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0); in accel_move_code_to_huge_pages()
/PHP-8.0/sapi/fpm/fpm/
H A Dfpm_shm.c22 mem = mmap(0, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1, 0); in fpm_shm_alloc()
/PHP-8.0/ext/pcre/pcre2lib/sljit/
H A DsljitProtExecAllocator.c201 retval = (struct chunk_header *)mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in alloc_chunk()
208 retval->executable = mmap(NULL, size, PROT_READ | PROT_EXEC, MAP_SHARED, fd, 0); in alloc_chunk()
226 PROT_MPROTECT(PROT_EXEC|PROT_WRITE|PROT_READ), in alloc_chunk()
238 if (mprotect(retval, size, PROT_READ | PROT_WRITE) == -1 || in alloc_chunk()
239 mprotect(maprx, size, PROT_READ | PROT_EXEC) == -1) { in alloc_chunk()
H A DsljitUtils.c343 ptr = mmap(NULL, max_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in sljit_allocate_stack()
351 ptr = mmap(NULL, max_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, dev_zero, 0); in sljit_allocate_stack()
H A DsljitExecAllocator.c157 const int prot = PROT_READ | PROT_WRITE | PROT_EXEC; in alloc_chunk()
/PHP-8.0/ext/opcache/jit/
H A Dzend_jit_perf_dump.c173 PROT_READ|PROT_EXEC, in zend_jit_perf_jitdump_open()
H A Dzend_jit.c4033 int opts = PROT_READ | PROT_WRITE; in zend_jit_unprotect()
4064 if (mprotect(dasm_buf, dasm_size, PROT_READ | PROT_EXEC) != 0) { in zend_jit_protect()
4324 if (mprotect(dasm_buf, dasm_size, PROT_READ | PROT_WRITE | PROT_EXEC) != 0) { in zend_jit_startup()
4328 if (mprotect(dasm_buf, dasm_size, PROT_READ | PROT_EXEC) != 0) { in zend_jit_startup()
/PHP-8.0/main/streams/
H A Dplain_wrapper.c738 prot = PROT_READ; in php_stdiop_set_option()
742 prot = PROT_READ | PROT_WRITE; in php_stdiop_set_option()
746 prot = PROT_READ; in php_stdiop_set_option()
750 prot = PROT_READ | PROT_WRITE; in php_stdiop_set_option()
/PHP-8.0/ext/fileinfo/libmagic/
H A Dder.c442 if ((p = mmap(NULL, l, PROT_READ, MAP_FILE, fd, 0)) == MAP_FAILED) in main()
/PHP-8.0/Zend/
H A Dzend_alloc.c429 …void *ptr = mmap(addr, size, PROT_READ | PROT_WRITE, flags /*| MAP_POPULATE | MAP_HUGETLB*/, ZEND_… in zend_mm_mmap_fixed()
466 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_HUGETLB, -1, 0); in zend_mm_mmap()
473 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, ZEND_MM_FD, 0); in zend_mm_mmap()
/PHP-8.0/ext/fileinfo/
H A Dlibmagic.patch695 - if ((map->p = mmap(0, CAST(size_t, st.st_size), PROT_READ|PROT_WRITE,
720 - if (mprotect(map->p, CAST(size_t, st.st_size), PROT_READ) == -1) {
/PHP-8.0/sapi/litespeed/
H A Dlsapilib.c2963 pBuf =( char*) mmap( NULL, size, PROT_READ | PROT_WRITE, in lsapi_init_children_status()

Completed in 125 milliseconds