Home
last modified time | relevance | path

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

/PHP-7.2/Zend/
H A Dzend_stream.c80 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 Dzend_stream.h59 zend_mmap mmap; member
H A DZend.m4269 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 Dzend_alloc.c427 …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 Dconfig.m4101 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 Dshared_alloc_mmap.c56 …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 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 DZendAccelerator.c2580 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 Dfpm_shm.c23 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 DsljitUtils.c255 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 DsljitExecAllocator.c102 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 Dphpdbg_prompt.c584 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 Dcgi_main.c2653 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 Dder.c400 if ((p = mmap(NULL, l, PROT_READ, MAP_FILE, fd, 0)) == MAP_FAILED) in main()
/PHP-7.2/main/
H A Dmain.c1428 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 DREADME.STREAMS112 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 Dconfigure.ac637 mmap \
1483 plain_wrapper.c userspace.c transports.c xp_socket.c mmap.c \
H A DNEWS1659 . Fixed bug #75368 (mmap/munmap trashing on unlucky allocations). (Nikita,
/PHP-7.2/win32/build/
H A Dconfig.w32250 userspace.c transports.c xp_socket.c mmap.c glob_wrapper.c");
/PHP-7.2/main/streams/
H A Dplain_wrapper.c729 range->mapped = (char*)mmap(NULL, range->length, prot, flags, fd, range->offset); in php_stdiop_set_option()
/PHP-7.2/ext/phar/
H A Dphar.c3325 memset(&file_handle->handle.stream.mmap, 0, sizeof(file_handle->handle.stream.mmap));
/PHP-7.2/sapi/litespeed/
H A Dlsapilib.c2937 pBuf =( char*) mmap( NULL, size, PROT_READ | PROT_WRITE, in lsapi_init_children_status()
/PHP-7.2/ext/fileinfo/
H A Dlibmagic.patch713 - if ((map->p = mmap(0, (size_t)st.st_size, PROT_READ|PROT_WRITE,
/PHP-7.2/ext/pcre/pcrelib/doc/
H A Dpcre.txt8526 allocated by mmap or VirtualAlloc.)
/PHP-7.2/ext/sqlite3/libsqlite/
H A Dsqlite3.c32990 { "mmap", (sqlite3_syscall_ptr)mmap, 0 },

Completed in 597 milliseconds