Searched refs:alloc_size (Results 1 – 10 of 10) sorted by relevance
/PHP-7.4/ext/mysqlnd/ |
H A D | mysqlnd_result_meta.c | 290 size_t alloc_size = sizeof(MYSQLND_RES_METADATA) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_meta_init() local 295 ret = result->memory_pool->get_chunk(result->memory_pool, alloc_size); in mysqlnd_result_meta_init() 296 memset(ret, 0, alloc_size); in mysqlnd_result_meta_init() 301 alloc_size = (field_count + 1) * sizeof(MYSQLND_FIELD); in mysqlnd_result_meta_init() 302 ret->fields = result->memory_pool->get_chunk(result->memory_pool, alloc_size); in mysqlnd_result_meta_init() 303 memset(ret->fields, 0, alloc_size); in mysqlnd_result_meta_init()
|
H A D | mysqlnd_driver.c | 191 const size_t alloc_size = sizeof(MYSQLND_STMT) + mysqlnd_plugin_count() * sizeof(void *); in MYSQLND_METHOD() local 192 MYSQLND_STMT * ret = mnd_ecalloc(1, alloc_size); in MYSQLND_METHOD() 298 …const size_t alloc_size = sizeof(MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY) + mysqlnd_plugin_count(… in MYSQLND_METHOD() local 299 MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY *ret = mnd_pecalloc(1, alloc_size, persistent); in MYSQLND_METHOD()
|
H A D | mysqlnd_result.c | 1925 const size_t alloc_size = sizeof(MYSQLND_RES) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_init() local 1936 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_init() 1937 memset(ret, 0, alloc_size); in mysqlnd_result_init() 1954 const size_t alloc_size = sizeof(MYSQLND_RES_UNBUFFERED) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_unbuffered_init() local 1960 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_unbuffered_init() 1961 memset(ret, 0, alloc_size); in mysqlnd_result_unbuffered_init() 1994 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_buffered_zval_init() 1995 memset(ret, 0, alloc_size); in mysqlnd_result_buffered_zval_init() 2029 const size_t alloc_size = sizeof(MYSQLND_RES_BUFFERED_C) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_buffered_c_init() local 2035 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_buffered_c_init() [all …]
|
/PHP-7.4/build/ |
H A D | ax_gcc_func_attribute.m4 | 28 # alloc_size 95 [alloc_size], [
|
/PHP-7.4/Zend/ |
H A D | zend_portability.h | 194 #if ZEND_GCC_VERSION >= 4003 || __has_attribute(alloc_size) 195 # define ZEND_ATTRIBUTE_ALLOC_SIZE(X) __attribute__ ((alloc_size(X))) 196 # define ZEND_ATTRIBUTE_ALLOC_SIZE2(X,Y) __attribute__ ((alloc_size(X,Y)))
|
/PHP-7.4/ext/sockets/ |
H A D | conversions.c | 118 static inline void *accounted_emalloc(size_t alloc_size, ser_context *ctx) in accounted_emalloc() argument 120 void *ret = emalloc(alloc_size); in accounted_emalloc() 124 static inline void *accounted_ecalloc(size_t nmemb, size_t alloc_size, ser_context *ctx) in accounted_ecalloc() argument 126 void *ret = ecalloc(nmemb, alloc_size); in accounted_ecalloc() 130 static inline void *accounted_safe_ecalloc(size_t nmemb, size_t alloc_size, size_t offset, ser_cont… in accounted_safe_ecalloc() argument 132 void *ret = safe_emalloc(nmemb, alloc_size, offset); in accounted_safe_ecalloc() 133 memset(ret, '\0', nmemb * alloc_size + offset); in accounted_safe_ecalloc()
|
/PHP-7.4/sapi/cgi/ |
H A D | cgi_main.c | 1607 size_t alloc_size = sizeof(buf); local 1616 if (var_len >= alloc_size) { 1617 alloc_size = var_len + 64; 1618 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); 1630 if (var_len >= alloc_size) { 1631 alloc_size = var_len + 64; 1632 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
|
/PHP-7.4/sapi/litespeed/ |
H A D | lsapi_main.c | 224 size_t alloc_size = sizeof(buf); in litespeed_php_import_environment_variables() local 250 if (nlen >= alloc_size) { in litespeed_php_import_environment_variables() 251 alloc_size = nlen + 64; in litespeed_php_import_environment_variables() 252 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); in litespeed_php_import_environment_variables()
|
/PHP-7.4/ext/spl/ |
H A D | spl_heap.c | 269 size_t alloc_size = heap->max_size * heap->elem_size; in spl_ptr_heap_insert() local 271 heap->elements = erealloc(heap->elements, 2 * alloc_size); in spl_ptr_heap_insert() 272 memset((char *) heap->elements + alloc_size, 0, alloc_size); in spl_ptr_heap_insert()
|
/PHP-7.4/ext/ffi/ |
H A D | ffi.c | 6486 _(alloc_size) \
|
Completed in 126 milliseconds