/PHP-7.2/Zend/ |
H A D | zend_stream.c | 80 if (stream->mmap.map) { in zend_stream_unmap() 81 munmap(stream->mmap.map, stream->mmap.len + ZEND_MMAP_AHEAD); in zend_stream_unmap() 84 if (stream->mmap.buf) { in zend_stream_unmap() 85 efree(stream->mmap.buf); in zend_stream_unmap() 87 stream->mmap.len = 0; in zend_stream_unmap() 88 stream->mmap.pos = 0; in zend_stream_unmap() 89 stream->mmap.map = 0; in zend_stream_unmap() 90 stream->mmap.buf = 0; in zend_stream_unmap() 196 memset(&file_handle->handle.stream.mmap, 0, sizeof(file_handle->handle.stream.mmap)); in zend_stream_fixup() 275 …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 | 59 zend_mmap mmap; member
|
H A D | Zend.m4 | 269 dnl test for memory allocation using mmap(MAP_ANON) 270 AC_MSG_CHECKING(for memory allocation using mmap(MAP_ANON)) 295 void *seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); 305 …MAP_ANON], 1, [Define if the target system has support for memory allocation using mmap(MAP_ANON)]) 314 dnl test for memory allocation using mmap("/dev/zero") 315 AC_MSG_CHECKING(for memory allocation using mmap("/dev/zero")) 347 seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); 360 …_ZERO], 1, [Define if the target system has support for memory allocation using mmap("/dev/zero")])
|
H A D | zend_alloc.c | 427 …void *ptr = mmap(addr, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON /*| MAP_POPULATE | MAP… in zend_mm_mmap_fixed() 463 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_HUGETLB, -1, 0); in zend_mm_mmap() 470 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in zend_mm_mmap()
|
/PHP-7.2/ext/opcache/ |
H A D | config.m4 | 101 AC_MSG_CHECKING(for mmap() using MAP_ANON shared memory support) 123 shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0); 149 AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) 153 AC_MSG_CHECKING(for mmap() using /dev/zero shared memory support) 178 shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); 208 AC_MSG_CHECKING(for mmap() using shm_open() shared memory support) 245 shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); 273 AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) 277 AC_MSG_CHECKING(for mmap() using regular file shared memory support) 314 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 | 2580 mem = mmap(NULL, size, in accel_remap_huge_pages() 2593 ret = mmap(start, size, in accel_remap_huge_pages() 2599 ret = mmap(start, size, in accel_remap_huge_pages()
|
/PHP-7.2/sapi/fpm/fpm/ |
H A D | fpm_shm.c | 23 mem = mmap(0, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1, 0); in fpm_shm_alloc()
|
/PHP-7.2/ext/pcre/pcrelib/sljit/ |
H A D | sljitUtils.c | 255 ptr = mmap(NULL, max_limit, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in sljit_allocate_stack() 263 ptr = mmap(NULL, max_limit, PROT_READ | PROT_WRITE, MAP_PRIVATE, dev_zero, 0); in sljit_allocate_stack()
|
H A D | sljitExecAllocator.c | 102 retval = mmap(NULL, size, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANON, -1, 0); in alloc_chunk() 108 retval = mmap(NULL, size, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE, dev_zero, 0); in alloc_chunk()
|
/PHP-7.2/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.2/sapi/cgi/ |
H A D | cgi_main.c | 2653 if (file_handle.handle.stream.mmap.buf[0] == '#') { 2656 c = file_handle.handle.stream.mmap.buf[i++]; 2657 while (c != '\n' && c != '\r' && i < file_handle.handle.stream.mmap.len) { 2658 c = file_handle.handle.stream.mmap.buf[i++]; 2661 … if (i < file_handle.handle.stream.mmap.len && file_handle.handle.stream.mmap.buf[i] == '\n') { 2665 if(i > file_handle.handle.stream.mmap.len) { 2666 i = file_handle.handle.stream.mmap.len; 2668 file_handle.handle.stream.mmap.buf += i; 2669 file_handle.handle.stream.mmap.len -= i;
|
/PHP-7.2/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.2/main/ |
H A D | main.c | 1428 memset(&handle->handle.stream.mmap, 0, sizeof(handle->handle.stream.mmap)); in php_stream_open_for_zend_ex() 1437 handle->handle.stream.mmap.buf = p; in php_stream_open_for_zend_ex() 1438 handle->handle.stream.mmap.len = mapped_len; in php_stream_open_for_zend_ex()
|
/PHP-7.2/ |
H A D | README.STREAMS | 112 This function will try to use mmap where available to make the copying more 126 As with copy_to_stream, this function will try use mmap where it can.
|
H A D | configure.ac | 637 mmap \ 1483 plain_wrapper.c userspace.c transports.c xp_socket.c mmap.c \
|
H A D | NEWS | 1659 . Fixed bug #75368 (mmap/munmap trashing on unlucky allocations). (Nikita,
|
/PHP-7.2/win32/build/ |
H A D | config.w32 | 250 userspace.c transports.c xp_socket.c mmap.c glob_wrapper.c");
|
/PHP-7.2/main/streams/ |
H A D | plain_wrapper.c | 729 range->mapped = (char*)mmap(NULL, range->length, prot, flags, fd, range->offset); in php_stdiop_set_option()
|
/PHP-7.2/ext/phar/ |
H A D | phar.c | 3325 memset(&file_handle->handle.stream.mmap, 0, sizeof(file_handle->handle.stream.mmap));
|
/PHP-7.2/sapi/litespeed/ |
H A D | lsapilib.c | 2937 pBuf =( char*) mmap( NULL, size, PROT_READ | PROT_WRITE, in lsapi_init_children_status()
|
/PHP-7.2/ext/fileinfo/ |
H A D | libmagic.patch | 713 - if ((map->p = mmap(0, (size_t)st.st_size, PROT_READ|PROT_WRITE,
|
/PHP-7.2/ext/pcre/pcrelib/doc/ |
H A D | pcre.txt | 8526 allocated by mmap or VirtualAlloc.)
|
/PHP-7.2/ext/sqlite3/libsqlite/ |
H A D | sqlite3.c | 32990 { "mmap", (sqlite3_syscall_ptr)mmap, 0 },
|