Home
last modified time | relevance | path

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

/PHP-7.3/Zend/
H A Dzend_stream.c77 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 Dzend_stream.h57 zend_mmap mmap; member
H A DZend.m4266 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 Dzend_alloc.c429 …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 Dconfig.m499 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 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.c2755 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 Dfpm_shm.c22 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 DsljitExecAllocator.c127 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 DsljitUtils.c257 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 DsljitProtExecAllocator.c182 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 Dcgi_main.c2610 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 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.3/ext/fileinfo/libmagic/
H A Dder.c400 if ((p = mmap(NULL, l, PROT_READ, MAP_FILE, fd, 0)) == MAP_FAILED) in main()
/PHP-7.3/main/
H A Dmain.c1592 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 DREADME.STREAMS111 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 Dconfigure.ac664 mmap \
1526 plain_wrapper.c userspace.c transports.c xp_socket.c mmap.c \
/PHP-7.3/win32/build/
H A Dconfig.w32257 userspace.c transports.c xp_socket.c mmap.c glob_wrapper.c");
/PHP-7.3/main/streams/
H A Dplain_wrapper.c727 range->mapped = (char*)mmap(NULL, range->length, prot, flags, fd, range->offset); in php_stdiop_set_option()
/PHP-7.3/ext/phar/
H A Dphar.c3340 memset(&file_handle->handle.stream.mmap, 0, sizeof(file_handle->handle.stream.mmap));
/PHP-7.3/sapi/litespeed/
H A Dlsapilib.c2949 pBuf =( char*) mmap( NULL, size, PROT_READ | PROT_WRITE, in lsapi_init_children_status()
/PHP-7.3/ext/fileinfo/
H A Dlibmagic.patch983 - if ((map->p = mmap(0, (size_t)st.st_size, PROT_READ|PROT_WRITE,
/PHP-7.3/ext/sqlite3/libsqlite/
H A Dsqlite3.c32990 { "mmap", (sqlite3_syscall_ptr)mmap, 0 },

Completed in 523 milliseconds