/PHP-7.3/Zend/ |
H A D | zend_stream.c | 77 if (stream->mmap.map) { in zend_stream_unmap() 78 munmap(stream->mmap.map, stream->mmap.len + ZEND_MMAP_AHEAD); in zend_stream_unmap() 81 if (stream->mmap.buf) { in zend_stream_unmap() 82 efree(stream->mmap.buf); in zend_stream_unmap() 84 stream->mmap.len = 0; in zend_stream_unmap() 85 stream->mmap.pos = 0; in zend_stream_unmap() 86 stream->mmap.map = 0; in zend_stream_unmap() 87 stream->mmap.buf = 0; in zend_stream_unmap() 193 memset(&file_handle->handle.stream.mmap, 0, sizeof(file_handle->handle.stream.mmap)); in zend_stream_fixup() 272 …memset(file_handle->handle.stream.mmap.buf + file_handle->handle.stream.mmap.len, 0, ZEND_MMAP_AHE… in zend_stream_fixup() [all …]
|
H A D | zend_stream.h | 57 zend_mmap mmap; member
|
H A D | Zend.m4 | 266 dnl test for memory allocation using mmap(MAP_ANON) 267 AC_MSG_CHECKING(for memory allocation using mmap(MAP_ANON)) 292 void *seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); 302 …MAP_ANON], 1, [Define if the target system has support for memory allocation using mmap(MAP_ANON)]) 311 dnl test for memory allocation using mmap("/dev/zero") 312 AC_MSG_CHECKING(for memory allocation using mmap("/dev/zero")) 345 seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); 358 …_ZERO], 1, [Define if the target system has support for memory allocation using mmap("/dev/zero")])
|
H A D | zend_alloc.c | 429 …void *ptr = mmap(addr, size, PROT_READ | PROT_WRITE, flags /*| MAP_POPULATE | MAP_HUGETLB*/, -1, 0… in zend_mm_mmap_fixed() 465 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_HUGETLB, -1, 0); in zend_mm_mmap() 472 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in zend_mm_mmap()
|
/PHP-7.3/ext/opcache/ |
H A D | config.m4 | 99 AC_MSG_CHECKING(for mmap() using MAP_ANON shared memory support) 121 shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0); 147 AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) 151 AC_MSG_CHECKING(for mmap() using /dev/zero shared memory support) 176 shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); 206 AC_MSG_CHECKING(for mmap() using shm_open() shared memory support) 243 shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); 271 AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) 275 AC_MSG_CHECKING(for mmap() using regular file shared memory support) 312 shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); [all …]
|
H A D | shared_alloc_mmap.c | 56 …shared_segment->p = mmap(0, requested_size, PROT_READ | PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS|MAP_H… in create_segments() 65 …shared_segment->p = mmap(0, requested_size, PROT_READ | PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, -1, … in create_segments()
|
H A D | shared_alloc_posix.c | 66 …shared_segment->common.p = mmap(0, requested_size, PROT_READ | PROT_WRITE, MAP_SHARED, shared_segm… in create_segments()
|
H A D | ZendAccelerator.c | 2755 mem = mmap(NULL, size, in accel_remap_huge_pages() 2768 ret = mmap(start, size, in accel_remap_huge_pages() 2774 ret = mmap(start, size, in accel_remap_huge_pages()
|
/PHP-7.3/sapi/fpm/fpm/ |
H A D | fpm_shm.c | 22 mem = mmap(0, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1, 0); in fpm_shm_alloc()
|
/PHP-7.3/ext/pcre/pcre2lib/sljit/ |
H A D | sljitExecAllocator.c | 127 void *ptr = mmap( in get_map_jit_flag() 162 retval = mmap(NULL, size, PROT_READ | PROT_WRITE | PROT_EXEC, flags, -1, 0); in alloc_chunk() 168 retval = mmap(NULL, size, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE, dev_zero, 0); in alloc_chunk()
|
H A D | sljitUtils.c | 257 ptr = mmap(NULL, max_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in sljit_allocate_stack() 265 ptr = mmap(NULL, max_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, dev_zero, 0); in sljit_allocate_stack()
|
H A D | sljitProtExecAllocator.c | 182 retval = (struct chunk_header *)mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in alloc_chunk() 189 retval->executable = mmap(NULL, size, PROT_READ | PROT_EXEC, MAP_SHARED, fd, 0); in alloc_chunk()
|
/PHP-7.3/sapi/cgi/ |
H A D | cgi_main.c | 2610 if (file_handle.handle.stream.mmap.buf[0] == '#') { 2613 c = file_handle.handle.stream.mmap.buf[i++]; 2614 while (c != '\n' && c != '\r' && i < file_handle.handle.stream.mmap.len) { 2615 c = file_handle.handle.stream.mmap.buf[i++]; 2618 … if (i < file_handle.handle.stream.mmap.len && file_handle.handle.stream.mmap.buf[i] == '\n') { 2622 if(i > file_handle.handle.stream.mmap.len) { 2623 i = file_handle.handle.stream.mmap.len; 2625 file_handle.handle.stream.mmap.buf += i; 2626 file_handle.handle.stream.mmap.len -= i;
|
/PHP-7.3/sapi/phpdbg/ |
H A D | phpdbg_prompt.c | 584 switch (fh.handle.stream.mmap.buf++[0]) { in phpdbg_compile() 586 if (fh.handle.stream.mmap.buf[0] == '\n') { in phpdbg_compile() 587 fh.handle.stream.mmap.buf++; in phpdbg_compile() 591 start_line_len = fh.handle.stream.mmap.buf - buf; in phpdbg_compile() 594 fh.handle.stream.mmap.len -= start_line_len; in phpdbg_compile() 595 end = fh.handle.stream.mmap.buf; in phpdbg_compile() 597 } while (fh.handle.stream.mmap.buf + 1 < end); in phpdbg_compile() 625 fh.handle.stream.mmap.buf = buf; in phpdbg_compile() 626 fh.handle.stream.mmap.len = len; in phpdbg_compile()
|
/PHP-7.3/ext/fileinfo/libmagic/ |
H A D | der.c | 400 if ((p = mmap(NULL, l, PROT_READ, MAP_FILE, fd, 0)) == MAP_FAILED) in main()
|
/PHP-7.3/main/ |
H A D | main.c | 1592 memset(&handle->handle.stream.mmap, 0, sizeof(handle->handle.stream.mmap)); in php_stream_open_for_zend_ex() 1601 handle->handle.stream.mmap.buf = p; in php_stream_open_for_zend_ex() 1602 handle->handle.stream.mmap.len = mapped_len; in php_stream_open_for_zend_ex()
|
/PHP-7.3/ |
H A D | README.STREAMS | 111 This function will try to use mmap where available to make the copying more 125 As with copy_to_stream, this function will try use mmap where it can.
|
H A D | configure.ac | 664 mmap \ 1526 plain_wrapper.c userspace.c transports.c xp_socket.c mmap.c \
|
/PHP-7.3/win32/build/ |
H A D | config.w32 | 257 userspace.c transports.c xp_socket.c mmap.c glob_wrapper.c");
|
/PHP-7.3/main/streams/ |
H A D | plain_wrapper.c | 727 range->mapped = (char*)mmap(NULL, range->length, prot, flags, fd, range->offset); in php_stdiop_set_option()
|
/PHP-7.3/ext/phar/ |
H A D | phar.c | 3340 memset(&file_handle->handle.stream.mmap, 0, sizeof(file_handle->handle.stream.mmap));
|
/PHP-7.3/sapi/litespeed/ |
H A D | lsapilib.c | 2949 pBuf =( char*) mmap( NULL, size, PROT_READ | PROT_WRITE, in lsapi_init_children_status()
|
/PHP-7.3/ext/fileinfo/ |
H A D | libmagic.patch | 983 - if ((map->p = mmap(0, (size_t)st.st_size, PROT_READ|PROT_WRITE,
|
/PHP-7.3/ext/sqlite3/libsqlite/ |
H A D | sqlite3.c | 32990 { "mmap", (sqlite3_syscall_ptr)mmap, 0 },
|