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 Dsysvshm.c310 shm_data = &shm_var->mem;
383 memcpy(&(shm_var->mem), data, len);
H A Dphp_sysvshm.h56 char mem; member in struct:__anon2
/PHP_TRUNK/ext/dom/
H A Ddocument.c1605 xmlChar *mem; local
1640 mem = (xmlChar*) xmlBufferContent(buf);
1641 if (!mem) {
1645 RETVAL_STRING((char *) mem);
1653 xmlDocDumpFormatMemory(docp, &mem, &size, format);
1660 RETVAL_STRINGL((char *) mem, size);
1661 xmlFree(mem);
2120 xmlChar *mem = NULL; local
2166 mem = (xmlChar*) xmlBufferContent(buf);
2167 if (!mem) {
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg.c107 pg->sigsafe_mem.mem = NULL;
833 char mem[PHPDBG_SIGSAFE_MEM_SIZE + 1]; local
835 phpdbg_set_sigsafe_mem(mem);
910 char mem[PHPDBG_SIGSAFE_MEM_SIZE + 1]; local
913 if ((newlen = recv(PHPDBG_G(io)[PHPDBG_STDIN].fd, mem, PHPDBG_SIGSAFE_MEM_SIZE, MSG_PEEK)) == (size_t) -1) {
917 switch (mem[off + i]) {
923 phpdbg_set_sigsafe_mem(mem);
H A Dphpdbg_sigsafe.c13 return PHPDBG_G(sigsafe_mem).mem;
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.h12 char *mem; member in struct:__anon1
22 void phpdbg_set_sigsafe_mem(char *mem);
/PHP_TRUNK/ext/opcache/
H A Dzend_persist_calc.c377 new_persistent_script->mem = NULL;
H A DZendAccelerator.h166 void *mem; /* shared memory area used by script structures */ member in struct:_zend_persistent_script
251 void *mem; member in struct:_zend_accel_globals
H A Dzend_shared_alloc.c343 retval = ZCG(mem);
344 ZCG(mem) = (void*)(((char*)ZCG(mem)) + ZEND_ALIGNED_SIZE(size));
H A Dzend_accelerator_util_funcs.c844 signed char *mem = (signed char*)persistent_script->mem; local
849 if (mem < (signed char*)persistent_script) {
850 checksum = zend_adler32(checksum, mem, (signed char*)persistent_script - mem);
851 size -= (signed char*)persistent_script - mem;
852 mem += (signed char*)persistent_script - mem;
855 zend_adler32(checksum, mem, persistent_script_check_block_size);
856 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 > ((zend_string*)ZCG(mem))->len) {
207 ZCG(mem) = (void*)zend_string_realloc(
208 (zend_string*)ZCG(mem),
212 memcpy(((zend_string*)ZCG(mem))->val + info->str_size, str, len);
221 str = (zend_string*)((char*)ZCG(mem) + ((size_t)(str) & ~Z_UL(1)));
652 info->script_offset = (char*)script - (char*)script->mem;
677 void *mem, *buf; local
1173 void *mem, *checkpoint, *buf; local
[all...]
H A Dzend_persist.c96 HT_SET_DATA_ADDR(ht, ZCG(mem));
97 ZCG(mem) = (void*)((char*)ZCG(mem) + (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.c1173 ZCG(mem) = zend_arena_alloc(&CG(arena), memory_used + 64);
1174 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L);
1176 ZCG(mem) = zend_arena_alloc(&CG(arena), memory_used);
1190 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) {
1192 ((char*)new_persistent_script->mem + new_persistent_script->size < (char*)ZCG(mem)) ? ACCEL_LOG_ERROR : ACCEL_LOG_WARNING,
1195 new_persistent_script->mem,
1196 (char *)new_persistent_script->mem
[all...]
/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);

Completed in 50 milliseconds

12