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

123456789

/PHP_5_3/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_5_3/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.c88 static void php_pack(zval **val, int size, int *map, char *output) argument
96 for (i = 0; i < size; i++) {
489 static long php_unpack(char *data, int size, int issigned, int *map) argument
497 for (i = 0; i < size; i++) {
544 int size=0; local
581 size = -1;
585 size = 0;
590 size = arg;
596 size = (arg > 0) ? (arg + (arg % 2)) / 2 : arg;
604 size
912 int size = sizeof(Z_LVAL(val)); local
[all...]
/PHP_5_3/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_5_3/ext/zip/lib/
H A Dzip_source_crc.c2 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_5_3/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...]
H A Dphp_logos.c31 int size; member in struct:_php_info_logo
36 PHPAPI int php_register_info_logo(char *logo_string, const char *mimetype, const unsigned char *data, int size) argument
43 info_logo.size = size;
88 PHPWRITE(logo_image->data, logo_image->size);
H A Dphp_logos.h26 PHPAPI int php_register_info_logo(char *logo_string, const char *mimetype, const unsigned char *data, int size);
/PHP_5_3/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_5_3/win32/
H A Dinet.h8 PHPAPI const char* inet_ntop(int af, const void* src, char* dst, size_t size);
H A Dwinutil.h23 PHPAPI php_win32_get_random_bytes(unsigned char *buf, size_t size);
/PHP_5_3/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_5_3/ext/gd/libgd/
H A Dgdcache.h6 * 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 Dgdhelpers.h15 #define gdCalloc(nmemb, size) ecalloc(nmemb, size)
16 #define gdMalloc(size) emalloc(size)
17 #define gdRealloc(ptr, size) erealloc(ptr, size)
/PHP_5_3/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_5_3/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.c66 regerror(int posix_ecode, const regex_t* reg, char* buf, size_t size) argument
85 if (buf != NULL && size > 0) {
86 strncpy(buf, s, size - 1);
87 buf[size - 1] = '\0';
/PHP_5_3/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_5_3/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;
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;
62 ZEND_API void *_erealloc(void *ptr, size_t size, int allow_failure ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
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_
228 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_5_3/ext/mysqlnd/
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...]
H A Dmysqlnd_debug.h181 void * (*m_emalloc)(size_t size MYSQLND_MEM_D);
182 void * (*m_pemalloc)(size_t size, zend_bool persistent MYSQLND_MEM_D);
183 void * (*m_ecalloc)(unsigned int nmemb, size_t size MYSQLND_MEM_D);
184 void * (*m_pecalloc)(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D);
189 void * (*m_malloc)(size_t size MYSQLND_MEM_D);
190 void * (*m_calloc)(unsigned int nmemb, size_t size MYSQLND_MEM_D);
193 char * (*m_pestrndup)(const char * const ptr, size_t size, zend_bool persistent MYSQLND_MEM_D);
200 PHPAPI void * _mysqlnd_emalloc(size_t size MYSQLND_MEM_D);
201 PHPAPI void * _mysqlnd_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D);
202 PHPAPI void * _mysqlnd_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_
[all...]

Completed in 58 milliseconds

123456789