| /PHP_TRUNK/TSRM/ |
| H A D | tsrm_config_common.h | 58 # define tsrm_do_alloca_ex(size, limit, use_heap) \ 59 ((use_heap = ((size) > (limit))) ? malloc(size) : alloca(size)) 60 # define tsrm_do_alloca(size, use_heap) \ 61 tsrm_do_alloca_ex(size, TSRM_ALLOCA_MAX_SIZE, use_heap)
|
| /PHP_TRUNK/ext/standard/ |
| H A D | crypt_blowfish.h | 22 extern int _crypt_output_magic(const char *setting, char *output, int size);
25 char *output, int size);
29 const char *input, int size, char *output, int output_size);
|
| H A D | pack.c | 87 static void php_pack(zval **val, int size, int *map, char *output) argument 95 for (i = 0; i < size; i++) { 499 static long php_unpack(char *data, int size, int issigned, int *map) argument 507 for (i = 0; i < size; i++) { 554 int size=0; local 591 size = -1; 595 size = 0; 601 size = arg; 607 size = (arg > 0) ? (arg + (arg % 2)) / 2 : arg; 615 size 967 int size = sizeof(Z_LVAL(val)); local [all...] |
| /PHP_TRUNK/ext/xmlrpc/libxmlrpc/ |
| H A D | simplestring.c | 118 string->size = SIMPLESTRING_INCR; 121 string->size = 0; 198 if(target->len + add_len + 1 > target->size) { 201 int incr = target->size * 2; 207 target->size = target->str ? newsize : 0;
|
| /PHP_TRUNK/ext/zip/lib/ |
| H A D | zip_source_crc.c | 2 zip_source_crc.c -- pass-through source that calculates CRC32 and size 46 zip_uint64_t size; 92 ctx->size = 0; 117 if ((st.valid & ZIP_STAT_SIZE) && st.size != ctx->size) { 126 ctx->size += n; 143 st->size = ctx->size; 45 zip_uint64_t size; member in struct:crc
|
| /PHP_TRUNK/main/ |
| H A D | mergesort.c | 69 static void setup(u_char *list1, u_char *list2, size_t n, size_t size, int (*cmp)(const void *, const void * TSRMLS_DC) TSRMLS_DC); 70 static void insertionsort(u_char *a, size_t n, size_t size, int (*cmp)(const void *, const void * TSRMLS_DC) TSRMLS_DC); 105 PHPAPI int php_mergesort(void *base, size_t nmemb, size_t size, int (*cmp)(const void *, const void * TSRMLS_DC) TSRMLS_DC) argument 113 if (size < PSIZE / 2) { /* Pointers must fit into 2 * size. */ 126 if (!(size % ISIZE) && !(((char *)base - (char *)0) % ISIZE)) 129 if ((list2 = malloc(nmemb * size + PSIZE)) == NULL) 133 setup(list1, list2, nmemb, size, cmp TSRMLS_CC); 134 last = list2 + nmemb * size; 157 while ((b += size) < 265 setup(u_char *list1, u_char *list2, size_t n, size_t size, int (*cmp)(const void *, const void * TSRMLS_DC) TSRMLS_DC) argument 336 insertionsort(u_char *a, size_t n, size_t size, int (*cmp)(const void *, const void * TSRMLS_DC) TSRMLS_DC) argument [all...] |
| /PHP_TRUNK/sapi/fpm/fpm/ |
| H A D | fpm_shm.c | 20 void *fpm_shm_alloc(size_t size) /* {{{ */ argument 24 mem = mmap(0, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1, 0); 28 zlog(ZLOG_SYSERROR, "unable to allocate %zu bytes in shared memory: %s", size, strerror(errno)); 34 zlog(ZLOG_SYSERROR, "unable to allocate %zu bytes in shared memory", size); 38 memset(mem, 0, size); 39 fpm_shm_size += size; 44 int fpm_shm_free(void *mem, size_t size) /* {{{ */ argument 51 if (munmap(mem, size) == -1) { 56 if (fpm_shm_size - size > 0) { 57 fpm_shm_size -= size; [all...] |
| H A D | fpm_shm.h | 8 void *fpm_shm_alloc(size_t size); 9 int fpm_shm_free(void *mem, size_t size);
|
| H A D | fpm_str.h | 8 static inline char *str_purify_filename(char *dst, char *src, size_t size) /* {{{ */ argument 13 end = dst + size - 1;
|
| /PHP_TRUNK/ext/gd/ |
| H A D | gdcache.h | 6 * reached a given size. 28 * a specified maximum size. After the maximum size is reached then 68 int size; member in struct:gdCache_head_s 78 int size,
|
| /PHP_TRUNK/ext/gd/libgd/ |
| H A D | gdcache.h | 6 * reached a given size. 28 * a specified maximum size. After the maximum size is reached then 67 int size; member in struct:gdCache_head_s 77 int size,
|
| H A D | gdhelpers.h | 15 #define gdCalloc(nmemb, size) ecalloc(nmemb, size) 16 #define gdMalloc(size) emalloc(size) 17 #define gdRealloc(ptr, size) erealloc(ptr, size)
|
| /PHP_TRUNK/ext/intl/ |
| H A D | intl_common.h | 31 # define eumalloc(size) (UChar*)safe_emalloc(size, sizeof(UChar), 0) 35 # define eurealloc(ptr, size) (UChar*)erealloc((ptr), size * sizeof(UChar))
|
| /PHP_TRUNK/ext/mbstring/oniguruma/ |
| H A D | reggnu.c | 44 re_adjust_startpos(regex_t* reg, const char* string, int size, argument 47 if (startpos > 0 && ONIGENC_MBC_MAXLEN(reg->enc) != 1 && startpos < size) { 64 re_match(regex_t* reg, const char* str, int size, int pos, argument 67 return onig_match(reg, (UChar* )str, (UChar* )(str + size), 72 re_search(regex_t* bufp, const char* string, int size, int startpos, int range, argument 75 return onig_search(bufp, (UChar* )string, (UChar* )(string + size), 82 re_compile_pattern(const char* pattern, int size, regex_t* reg, char* ebuf) argument 87 r = onig_compile(reg, (UChar* )pattern, (UChar* )(pattern + size), &einfo); 98 re_recompile_pattern(const char* pattern, int size, regex_t* reg, char* ebuf) argument 109 r = onig_recompile(reg, (UChar* )pattern, (UChar* )(pattern + size), [all...] |
| H A D | regposerr.c | 73 size_t size) 93 if (buf != NULL && size > 0) { 94 strncpy(buf, s, size - 1); 95 buf[size - 1] = '\0'; 72 regerror(int posix_ecode, const regex_t* reg ARG_UNUSED, char* buf, size_t size) argument
|
| /PHP_TRUNK/Zend/ |
| H A D | zend_alloc.h | 42 #define ZEND_MM_ALIGNED_SIZE(size) (((size) + ZEND_MM_ALIGNMENT - 1) & ZEND_MM_ALIGNMENT_MASK) 46 size_t size; member in struct:_zend_leak_info 57 ZEND_API void *_emalloc(size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC ZEND_ATTRIBUTE_ALLOC_SIZE(1); 58 ZEND_API void *_safe_emalloc(size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC; 59 ZEND_API void *_safe_malloc(size_t nmemb, size_t size, size_t offset) ZEND_ATTRIBUTE_MALLOC; 61 ZEND_API void *_ecalloc(size_t nmemb, size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC ZEND_ATTRIBUTE_ALLOC_SIZE2(1,2); 62 ZEND_API void *_erealloc(void *ptr, size_t size, int allow_failure ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_ALLOC_SIZE(2); 63 ZEND_API void *_safe_erealloc(void *ptr, size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC); 64 ZEND_API void *_safe_realloc(void *ptr, size_t nmemb, size_t size, size_ 214 size_t size; member in struct:_zend_mm_segment [all...] |
| H A D | zend_dynamic_array.c | 31 ZEND_API int zend_dynamic_array_init(dynamic_array *da, unsigned int element_size, unsigned int size) argument 34 da->allocated = size; 36 da->array = (char *) emalloc(size*element_size);
|
| H A D | zend_static_allocator.c | 31 inline static char *block_allocate(Block *block, zend_uint size) argument 34 if ((block->pos += size) >= block->end) { 53 char *static_allocator_allocate(StaticAllocator *sa, zend_uint size) argument 57 retval = block_allocate(&sa->Blocks[sa->current_block], size); 63 block_init(&sa->Blocks[sa->current_block], (size > ALLOCATOR_BLOCK_SIZE) ? size : ALLOCATOR_BLOCK_SIZE); 64 retval = block_allocate(&sa->Blocks[sa->current_block], size);
|
| H A D | zend_alloc.c | 153 static zend_mm_segment* zend_mm_mem_mmap_realloc(zend_mm_storage *storage, zend_mm_segment* segment, size_t size) argument 159 ret = (zend_mm_segment*)mremap(segment, segment->size, segment, size, MREMAP_MAYMOVE); 161 ret = (zend_mm_segment*)mremap(segment, segment->size, size, MREMAP_MAYMOVE); 165 ret = storage->handlers->_alloc(storage, size); 167 memcpy(ret, segment, size > segment->size ? segment->size : size); 185 zend_mm_mem_mmap_anon_alloc(zend_mm_storage *storage, size_t size) argument 220 zend_mm_mem_mmap_zero_alloc(zend_mm_storage *storage, size_t size) argument 264 zend_mm_mem_win32_alloc(zend_mm_storage *storage, size_t size) argument 274 zend_mm_mem_win32_realloc(zend_mm_storage *storage, zend_mm_segment* segment, size_t size) argument 285 zend_mm_mem_malloc_alloc(zend_mm_storage *storage, size_t size) argument 290 zend_mm_mem_malloc_realloc(zend_mm_storage *storage, zend_mm_segment *ptr, size_t size) argument 351 size_t size; member in struct:_zend_mm_debug_info 360 size_t size; member in struct:_zend_mm_debug_info 429 size_t size; member in struct:_zend_mm_heap 729 size_t size; local 941 size_t size = ZEND_MM_BLOCK_SIZE(mm_block); local 977 zend_mm_random(unsigned char *buf, size_t size) argument 1631 size_t size, true_size, min_size, max_size; local 1743 zend_mm_safe_error(zend_mm_heap *heap, const char *format, size_t limit, const char *filename, uint lineno, size_t size) argument 2064 size_t size; local 2443 _erealloc(void *ptr, size_t size, int allow_failure ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) argument 2463 safe_address(size_t nmemb, size_t size, size_t offset) argument 2483 safe_address(size_t nmemb, size_t size, size_t offset) argument 2512 safe_address(size_t nmemb, size_t size, size_t offset) argument 2533 safe_address(size_t nmemb, size_t size, size_t offset) argument 2553 safe_address(size_t nmemb, size_t size, size_t offset) argument 2566 safe_address(size_t nmemb, size_t size, size_t offset) argument 2581 _safe_emalloc(size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) argument 2586 _safe_malloc(size_t nmemb, size_t size, size_t offset) argument 2591 _safe_erealloc(void *ptr, size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) argument 2596 _safe_realloc(void *ptr, size_t nmemb, size_t size, size_t offset) argument [all...] |
| /PHP_TRUNK/main/streams/ |
| H A D | php_streams_int.h | 24 #define emalloc_rel_orig(size) \ 26 ? _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \ 27 : _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) ) 29 #define erealloc_rel_orig(ptr, size) \ 31 ? _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \ 32 : _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) ) 34 #define pemalloc_rel_orig(size, persistent) ((persistent) ? malloc((size)) : emalloc_rel_orig((size))) 35 #define perealloc_rel_orig(ptr, size, persisten [all...] |
| /PHP_TRUNK/win32/ |
| H A D | winutil.h | 23 PHPAPI php_win32_get_random_bytes(unsigned char *buf, size_t size);
|
| /PHP_TRUNK/ext/mysqlnd/ |
| H A D | mysqlnd_block_alloc.c | 38 if (chunk->ptr == (pool->arena + (pool->arena_size - pool->free_size - chunk->size))) { 43 pool->free_size += chunk->size; 57 mysqlnd_mempool_resize_chunk(MYSQLND_MEMORY_POOL_CHUNK * chunk, unsigned int size TSRMLS_DC) 63 if (chunk->ptr == (pool->arena + (pool->arena_size - pool->free_size - chunk->size))) { 68 if ((chunk->size + pool->free_size) < size) { 70 new_ptr = mnd_malloc(size); 74 memcpy(new_ptr, chunk->ptr, chunk->size); 76 pool->free_size += chunk->size; 77 chunk->size [all...] |
| H A D | mysqlnd_alloc.h | 34 void * (*m_emalloc)(size_t size MYSQLND_MEM_D); 35 void * (*m_pemalloc)(size_t size, zend_bool persistent MYSQLND_MEM_D); 36 void * (*m_ecalloc)(unsigned int nmemb, size_t size MYSQLND_MEM_D); 37 void * (*m_pecalloc)(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D); 42 void * (*m_malloc)(size_t size MYSQLND_MEM_D); 43 void * (*m_calloc)(unsigned int nmemb, size_t size MYSQLND_MEM_D); 46 char * (*m_pestrndup)(const char * const ptr, size_t size, zend_bool persistent MYSQLND_MEM_D); 55 PHPAPI void * _mysqlnd_emalloc(size_t size MYSQLND_MEM_D); 56 PHPAPI void * _mysqlnd_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D); 57 PHPAPI void * _mysqlnd_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_ [all...] |
| /PHP_TRUNK/ext/phar/ |
| H A D | tar.h | 46 char size[12]; /* length of file in bytes */ member in struct:_old_tar_header 70 char size[12]; /* length of file in bytes */ member in struct:_tar_header
|
| /PHP_TRUNK/ext/opcache/ |
| H A D | zend_shared_alloc.h | 73 size_t size; member in struct:_zend_shared_segment 124 void *zend_shared_alloc(size_t size); 127 void *_zend_shared_memdup(void *p, size_t size, zend_bool free_source TSRMLS_DC); 128 int zend_shared_memdup_size(void *p, size_t size); 142 #define ZEND_ALIGNED_SIZE(size) \ 143 ((size + PLATFORM_ALIGNMENT - 1) & ~(PLATFORM_ALIGNMENT - 1)) 147 void zend_shared_alloc_unlock(TSRMLS_D); /* returns the allocated size during lock..unlock */
|