Searched refs:mem (Results 1 - 25 of 28) sorted by relevance

12

/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_shm.c22 void *mem; local
24 mem = mmap(0, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1, 0);
27 if (mem == MAP_FAILED) {
33 if (!mem) {
38 memset(mem, 0, size);
40 return mem;
44 int fpm_shm_free(void *mem, size_t size) /* {{{ */ argument
46 if (!mem) {
47 zlog(ZLOG_ERROR, "mem is NULL");
51 if (munmap(mem, siz
[all...]
H A Dfpm_shm.h9 int fpm_shm_free(void *mem, size_t size);
/PHP_TRUNK/ext/mbstring/oniguruma/
H A Dtestc.c34 static void xx(char* pattern, char* str, int from, int to, int mem, int not) argument
75 if (pmatch[mem].rm_so == from && pmatch[mem].rm_eo == to) {
81 from, to, pmatch[mem].rm_so, pmatch[mem].rm_eo);
129 if (region->beg[mem] == from && region->end[mem] == to) {
135 from, to, region->beg[mem], region->end[mem]);
149 static void x3(char* pattern, char* str, int from, int to, int mem) argument
[all...]
H A Dtestu.c58 static void xx(char* pattern, char* str, int from, int to, int mem, int not) argument
103 if (pmatch[mem].rm_so == from && pmatch[mem].rm_eo == to) {
109 from, to, pmatch[mem].rm_so, pmatch[mem].rm_eo);
175 if (region->beg[mem] == from && region->end[mem] == to) {
181 from, to, region->beg[mem], region->end[mem]);
195 static void x3(char* pattern, char* str, int from, int to, int mem) argument
[all...]
H A Dregcomp.c5755 { OP_MEMORY_START_PUSH, "mem-start-push", ARG_MEMNUM },
5756 { OP_MEMORY_START, "mem-start", ARG_MEMNUM },
5757 { OP_MEMORY_END_PUSH, "mem-end-push", ARG_MEMNUM },
5758 { OP_MEMORY_END_PUSH_REC, "mem-end-push-rec", ARG_MEMNUM },
5759 { OP_MEMORY_END, "mem-end", ARG_MEMNUM },
5760 { OP_MEMORY_END_REC, "mem-end-rec", ARG_MEMNUM },
5853 MemNumType mem; local
5878 mem = *((MemNumType* )bp);
5880 fprintf(f, ":%d", mem);
6005 mem
[all...]
H A Dregexec.c587 stk->u.mem.num = (mnum);\
588 stk->u.mem.pstr = (s);\
589 stk->u.mem.start = mem_start_stk[mnum];\
590 stk->u.mem.end = mem_end_stk[mnum];\
599 stk->u.mem.num = (mnum);\
600 stk->u.mem.pstr = (s);\
601 stk->u.mem.start = mem_start_stk[mnum];\
602 stk->u.mem.end = mem_end_stk[mnum];\
610 stk->u.mem.num = (mnum);\
620 && k->u.mem
1078 mem_is_in_memp(int mem, int num, UChar* memp) argument
1248 MemNumType mem; local
[all...]
/PHP_TRUNK/ext/mbstring/oniguruma/win32/
H A Dtestc.c34 static void xx(char* pattern, char* str, int from, int to, int mem, int not) argument
75 if (pmatch[mem].rm_so == from && pmatch[mem].rm_eo == to) {
81 from, to, pmatch[mem].rm_so, pmatch[mem].rm_eo);
129 if (region->beg[mem] == from && region->end[mem] == to) {
135 from, to, region->beg[mem], region->end[mem]);
149 static void x3(char* pattern, char* str, int from, int to, int mem) argument
[all...]
/PHP_TRUNK/ext/gd/libgd/
H A Dgd_jpeg.c717 (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT, sizeof (my_source_mgr));
719 src->buffer = (unsigned char *) (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT, INPUT_BUF_SIZE * sizeof (unsigned char));
757 dest->buffer = (unsigned char *) (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE, OUTPUT_BUF_SIZE * sizeof (unsigned char));
840 cinfo->dest = (struct jpeg_destination_mgr *) (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT, sizeof (my_destination_mgr));
H A Dgd_topal.c794 boxlist = (boxptr) (*cinfo->mem->alloc_small)
1599 table = (int *) (*cinfo->mem->alloc_small)
1707 cquantize->fserrors = (FSERRPTR) (*cinfo->mem->alloc_large)
1839 (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
1861 cquantize->histogram = (hist3d) (*cinfo->mem->alloc_small)
1865 cquantize->histogram[i] = (hist2d) (*cinfo->mem->alloc_large)
1898 cquantize->sv_colormap = (*cinfo->mem->alloc_sarray)
1918 cquantize->fserrors = (FSERRPTR) (*cinfo->mem->alloc_large)
/PHP_TRUNK/ext/xmlrpc/libxmlrpc/
H A Dxmlrpc.c1609 * Make a duplicate (non reference) of an XMLRPC_VALUE with newly allocated mem.
2971 * void XMLRPC_Free(void* mem)
2975 * mem memory to free
2983 void XMLRPC_Free(void* mem) { argument
2984 my_free(mem);
H A Dxmlrpc.h411 void XMLRPC_Free(void* mem);
/PHP_TRUNK/ext/sysvshm/
H A Dphp_sysvshm.h56 char mem; member in struct:__anon2
H A Dsysvshm.c310 shm_data = &shm_var->mem;
383 memcpy(&(shm_var->mem), data, len);
/PHP_TRUNK/ext/zip/lib/
H A Dzip_memdup.c41 _zip_memdup(const void *mem, size_t len, zip_error_t *error) argument
54 memcpy(ret, mem, len);
/PHP_TRUNK/ext/opcache/
H A Dzend_shared_alloc.c343 retval = ZCG(mem);
344 ZCG(mem) = (void*)(((char*)ZCG(mem)) + ZEND_ALIGNED_SIZE(size));
H A DZendAccelerator.h166 void *mem; /* shared memory area used by script structures */ member in struct:_zend_persistent_script
250 void *mem; member in struct:_zend_accel_globals
H A Dzend_persist_calc.c377 new_persistent_script->mem = NULL;
H A Dzend_persist.c96 HT_SET_DATA_ADDR(ht, ZCG(mem));
97 ZCG(mem) = (void*)((char*)ZCG(mem) + ZEND_ALIGNED_SIZE((hash_size * sizeof(uint32_t)) + (ht->nNumUsed * sizeof(Bucket))));
120 void *data = ZCG(mem);
123 ZCG(mem) = (void*)((char*)data + HT_USED_SIZE(ht));
164 HT_SET_DATA_ADDR(ht, ZCG(mem));
165 ZCG(mem) = (void*)((char*)ZCG(mem) + (hash_size * sizeof(uint32_t)) + (ht->nNumUsed * sizeof(Bucket)));
188 void *data = ZCG(mem);
190 ZCG(mem)
[all...]
H A DZendAccelerator.c1164 ZCG(mem) = zend_arena_alloc(&CG(arena), memory_used + 64);
1165 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L);
1167 ZCG(mem) = zend_arena_alloc(&CG(arena), memory_used);
1181 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) {
1183 ((char*)new_persistent_script->mem + new_persistent_script->size < (char*)ZCG(mem)) ? ACCEL_LOG_ERROR : ACCEL_LOG_WARNING,
1186 new_persistent_script->mem,
1187 (char *)new_persistent_script->mem
[all...]
H A Dzend_file_cache.c94 (((char*)(ptr) >= (char*)script->mem && (char*)(ptr) < (char*)script->mem + script->size) || \
99 (ptr) = (void*)((char*)(ptr) - (char*)script->mem); \
119 (ptr) = (void*)((char*)(ptr) - (char*)script->mem); \
205 if (info->str_size + len > ZSTR_LEN((zend_string*)ZCG(mem))) {
207 ZCG(mem) = (void*)zend_string_realloc(
208 (zend_string*)ZCG(mem),
212 memcpy(ZSTR_VAL((zend_string*)ZCG(mem)) + info->str_size, str, len);
221 str = (zend_string*)((char*)ZCG(mem) + ((size_t)(str) & ~Z_UL(1)));
651 info->script_offset = (char*)script - (char*)script->mem;
707 void *mem, *buf; local
1195 void *mem, *checkpoint, *buf; local
[all...]
H A Dzend_accelerator_util_funcs.c828 signed char *mem = (signed char*)persistent_script->mem; local
833 if (mem < (signed char*)persistent_script) {
834 checksum = zend_adler32(checksum, mem, (signed char*)persistent_script - mem);
835 size -= (signed char*)persistent_script - mem;
836 mem += (signed char*)persistent_script - mem;
839 zend_adler32(checksum, mem, persistent_script_check_block_size);
840 mem
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_sigsafe.c13 return (void *) (((size_t) PHPDBG_G(sigsafe_mem).mem & ~(alignment - 1)) + alignment);
31 phpdbg_signal_safe_mem *mem = &PHPDBG_G(sigsafe_mem); local
39 mem->mem = buffer;
40 mem->allocated = 0;
42 mem->heap = zend_mm_startup_ex(&phpdbg_handlers, NULL, 0);
44 mem->old_heap = zend_mm_set_heap(mem->heap);
53 PHPDBG_G(sigsafe_mem).mem = NULL;
57 return !!PHPDBG_G(sigsafe_mem).mem;
[all...]
H A Dphpdbg_sigsafe.h9 char *mem; member in struct:__anon5
19 void phpdbg_set_sigsafe_mem(char *mem);
H A Dphpdbg.c106 pg->sigsafe_mem.mem = NULL;
1100 char mem[PHPDBG_SIGSAFE_MEM_SIZE + 1]; local
1102 phpdbg_set_sigsafe_mem(mem);
1182 char mem[PHPDBG_SIGSAFE_MEM_SIZE + 1]; local
1185 if ((newlen = recv(PHPDBG_G(io)[PHPDBG_STDIN].fd, mem, PHPDBG_SIGSAFE_MEM_SIZE, MSG_PEEK)) == (size_t) -1) {
1189 switch (mem[off + i]) {
1195 phpdbg_set_sigsafe_mem(mem);
/PHP_TRUNK/ext/dom/
H A Ddocument.c1614 xmlChar *mem; local
1649 mem = (xmlChar*) xmlBufferContent(buf);
1650 if (!mem) {
1654 RETVAL_STRING((char *) mem);
1662 xmlDocDumpFormatMemory(docp, &mem, &size, format);
1669 RETVAL_STRINGL((char *) mem, size);
1670 xmlFree(mem);
2150 xmlChar *mem = NULL; local
2196 mem = (xmlChar*) xmlBufferContent(buf);
2197 if (!mem) {
[all...]

Completed in 86 milliseconds

12