Home
last modified time | relevance | path

Searched refs:ZEND_MMAP_AHEAD (Results 1 – 8 of 8) sorted by relevance

/PHP-5.5/Zend/
H A Dzend_stream.c82 munmap(stream->mmap.map, stream->mmap.len + ZEND_MMAP_AHEAD); in zend_stream_unmap()
236 ((size - 1) % page_size) <= page_size - ZEND_MMAP_AHEAD) {
238 … *buf = mmap(0, size + ZEND_MMAP_AHEAD, PROT_READ, MAP_PRIVATE, fileno(file_handle->handle.fp), 0);
255 file_handle->handle.stream.mmap.buf = *buf = safe_emalloc(1, size, ZEND_MMAP_AHEAD);
273 if (size && remain < ZEND_MMAP_AHEAD) {
274 *buf = safe_erealloc(*buf, size, 1, ZEND_MMAP_AHEAD);
280 *buf = erealloc(*buf, ZEND_MMAP_AHEAD);
284 if (ZEND_MMAP_AHEAD) {
285 …set(file_handle->handle.stream.mmap.buf + file_handle->handle.stream.mmap.len, 0, ZEND_MMAP_AHEAD);
H A Dzend_stream.h34 #define ZEND_MMAP_AHEAD 32 macro
H A Dzend_ini_scanner.l65 #if ZEND_MMAP_AHEAD < (YYMAXFILL + 1)
66 # error ZEND_MMAP_AHEAD should be greater than YYMAXFILL
H A Dzend_language_scanner.l54 #define YYFILL(n) { if ((YYCURSOR + n) >= (YYLIMIT + ZEND_MMAP_AHEAD)) { return 0; } }
76 #if ZEND_MMAP_AHEAD < YYMAXFILL
77 # error ZEND_MMAP_AHEAD should be greater than or equal to YYMAXFILL
660 char *tmp = safe_emalloc(1, str->value.str.len, ZEND_MMAP_AHEAD); in zend_prepare_string_for_scanning()
661 memcpy(tmp, str->value.str.val, str->value.str.len + ZEND_MMAP_AHEAD); in zend_prepare_string_for_scanning()
664 str->value.str.val = safe_erealloc(str->value.str.val, 1, str->value.str.len, ZEND_MMAP_AHEAD); in zend_prepare_string_for_scanning()
667 memset(str->value.str.val + str->value.str.len, 0, ZEND_MMAP_AHEAD); in zend_prepare_string_for_scanning()
H A Dzend_language_scanner.c56 #define YYFILL(n) { if ((YYCURSOR + n) >= (YYLIMIT + ZEND_MMAP_AHEAD)) { return 0; } }
78 #if ZEND_MMAP_AHEAD < YYMAXFILL
79 # error ZEND_MMAP_AHEAD should be greater than or equal to YYMAXFILL
662 char *tmp = safe_emalloc(1, str->value.str.len, ZEND_MMAP_AHEAD); in zend_prepare_string_for_scanning()
663 memcpy(tmp, str->value.str.val, str->value.str.len + ZEND_MMAP_AHEAD); in zend_prepare_string_for_scanning()
666 str->value.str.val = safe_erealloc(str->value.str.val, 1, str->value.str.len, ZEND_MMAP_AHEAD); in zend_prepare_string_for_scanning()
669 memset(str->value.str.val + str->value.str.len, 0, ZEND_MMAP_AHEAD); in zend_prepare_string_for_scanning()
H A Dzend_ini_scanner.c67 #if ZEND_MMAP_AHEAD < (YYMAXFILL + 1)
68 # error ZEND_MMAP_AHEAD should be greater than YYMAXFILL
/PHP-5.5/ext/standard/
H A Dbasic_functions.c6030 if (INT_MAX - str_len < ZEND_MMAP_AHEAD) {
6043 string = (char *) emalloc(str_len + ZEND_MMAP_AHEAD);
6045 memset(string + str_len, 0, ZEND_MMAP_AHEAD);
/PHP-5.5/main/
H A Dmain.c1352 && ((len - 1) % page_size) <= page_size - ZEND_MMAP_AHEAD in php_stream_open_for_zend_ex()

Completed in 44 milliseconds