Searched refs:size (Results 1 - 25 of 244) sorted by relevance

12345678910

/PHP_TRUNK/ext/standard/
H A Dcrypt_blowfish.h22 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 Dpack.c87 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/main/
H A Dmergesort.c69 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 Dfpm_shm.c20 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 Dfpm_shm.h8 void *fpm_shm_alloc(size_t size);
9 int fpm_shm_free(void *mem, size_t size);
H A Dfpm_str.h8 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 Dgdcache.h6 * 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 Dgdhelpers.h15 #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 Dintl_common.h31 # 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 Dreggnu.c44 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 Dregposerr.c73 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/ext/xmlrpc/libxmlrpc/
H A Dsimplestring.c118 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 Dzip_file_get_offset.c59 zip_int32_t size;
69 if ((size=_zip_dirent_size(za->zp, ZIP_EF_LOCAL, error)) < 0)
72 if (offset+(zip_uint32_t)size > ZIP_OFF_MAX) {
77 return offset + (zip_uint32_t)size;
57 zip_int32_t size; local
H A Dzip_source_crc.c2 zip_source_crc.c -- pass-through source that calculates CRC32 and size
46 zip_uint64_t size;
74 ctx->size = 0;
96 ctx->size = 0;
121 if ((st.valid & ZIP_STAT_SIZE) && st.size != ctx->size) {
130 ctx->size += (zip_uint64_t)n;
147 st->size = ctx->size;
149 st->comp_size = ctx->size;
45 zip_uint64_t size; member in struct:crc_context
[all...]
/PHP_TRUNK/Zend/
H A Dzend_alloc.h42 #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 Dzend_dynamic_array.c31 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 Dzend_static_allocator.c31 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);
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_alloc.h34 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...]
H A Dmysqlnd_block_alloc.c38 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...]
/PHP_TRUNK/ext/opcache/
H A Dzend_shared_alloc.h73 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 */
/PHP_TRUNK/main/streams/
H A Dphp_streams_int.h24 #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 Dwinutil.h23 PHPAPI php_win32_get_random_bytes(unsigned char *buf, size_t size);
/PHP_TRUNK/TSRM/
H A Dtsrm_config_common.h58 # 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/sapi/phpdbg/
H A Dphpdbg_win.c24 int mprotect(void *addr, size_t size, int protection) { argument
26 return (int)VirtualProtect(addr, size, protection == (PROT_READ | PROT_WRITE) ? PAGE_READWRITE : PAGE_READONLY, &var);
H A Dphpdbg_win.h31 int mprotect(void *addr, size_t size, int protection);

Completed in 11 milliseconds

12345678910