Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 – 10 of 10) sorted by relevance

/PHP-8.0/ext/mysqlnd/
H A Dmysqlnd_result_meta.c288 size_t alloc_size = sizeof(MYSQLND_RES_METADATA) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_meta_init() local
293 ret = result->memory_pool->get_chunk(result->memory_pool, alloc_size); in mysqlnd_result_meta_init()
294 memset(ret, 0, alloc_size); in mysqlnd_result_meta_init()
299 alloc_size = (field_count + 1) * sizeof(MYSQLND_FIELD); in mysqlnd_result_meta_init()
300 ret->fields = result->memory_pool->get_chunk(result->memory_pool, alloc_size); in mysqlnd_result_meta_init()
301 memset(ret->fields, 0, alloc_size); in mysqlnd_result_meta_init()
H A Dmysqlnd_driver.c189 const size_t alloc_size = sizeof(MYSQLND_STMT) + mysqlnd_plugin_count() * sizeof(void *); in MYSQLND_METHOD() local
190 MYSQLND_STMT * ret = mnd_ecalloc(1, alloc_size); in MYSQLND_METHOD()
296 …const size_t alloc_size = sizeof(MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY) + mysqlnd_plugin_count(… in MYSQLND_METHOD() local
297 MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY *ret = mnd_pecalloc(1, alloc_size, persistent); in MYSQLND_METHOD()
H A Dmysqlnd_result.c1928 const size_t alloc_size = sizeof(MYSQLND_RES) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_init() local
1939 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_init()
1940 memset(ret, 0, alloc_size); in mysqlnd_result_init()
1957 const size_t alloc_size = sizeof(MYSQLND_RES_UNBUFFERED) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_unbuffered_init() local
1963 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_unbuffered_init()
1964 memset(ret, 0, alloc_size); in mysqlnd_result_unbuffered_init()
1997 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_buffered_zval_init()
1998 memset(ret, 0, alloc_size); in mysqlnd_result_buffered_zval_init()
2032 const size_t alloc_size = sizeof(MYSQLND_RES_BUFFERED_C) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_buffered_c_init() local
2038 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_buffered_c_init()
[all …]
/PHP-8.0/build/
H A Dax_gcc_func_attribute.m428 # alloc_size
95 [alloc_size], [
/PHP-8.0/Zend/
H A Dzend_portability.h196 #if ZEND_GCC_VERSION >= 4003 || __has_attribute(alloc_size)
197 # define ZEND_ATTRIBUTE_ALLOC_SIZE(X) __attribute__ ((alloc_size(X)))
198 # define ZEND_ATTRIBUTE_ALLOC_SIZE2(X,Y) __attribute__ ((alloc_size(X,Y)))
/PHP-8.0/ext/sockets/
H A Dconversions.c111 static inline void *accounted_emalloc(size_t alloc_size, ser_context *ctx) in accounted_emalloc() argument
113 void *ret = emalloc(alloc_size); in accounted_emalloc()
117 static inline void *accounted_ecalloc(size_t nmemb, size_t alloc_size, ser_context *ctx) in accounted_ecalloc() argument
119 void *ret = ecalloc(nmemb, alloc_size); in accounted_ecalloc()
123 static inline void *accounted_safe_ecalloc(size_t nmemb, size_t alloc_size, size_t offset, ser_cont… in accounted_safe_ecalloc() argument
125 void *ret = safe_emalloc(nmemb, alloc_size, offset); in accounted_safe_ecalloc()
126 memset(ret, '\0', nmemb * alloc_size + offset); in accounted_safe_ecalloc()
/PHP-8.0/sapi/cgi/
H A Dcgi_main.c1590 size_t alloc_size = sizeof(buf); local
1599 if (var_len >= alloc_size) {
1600 alloc_size = var_len + 64;
1601 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
1613 if (var_len >= alloc_size) {
1614 alloc_size = var_len + 64;
1615 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
/PHP-8.0/sapi/litespeed/
H A Dlsapi_main.c219 size_t alloc_size = sizeof(buf); in litespeed_php_import_environment_variables() local
245 if (nlen >= alloc_size) { in litespeed_php_import_environment_variables()
246 alloc_size = nlen + 64; in litespeed_php_import_environment_variables()
247 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); in litespeed_php_import_environment_variables()
/PHP-8.0/ext/spl/
H A Dspl_heap.c261 size_t alloc_size = heap->max_size * heap->elem_size; in spl_ptr_heap_insert() local
263 heap->elements = erealloc(heap->elements, 2 * alloc_size); in spl_ptr_heap_insert()
264 memset((char *) heap->elements + alloc_size, 0, alloc_size); in spl_ptr_heap_insert()
/PHP-8.0/ext/ffi/
H A Dffi.c6412 _(alloc_size) \

Completed in 59 milliseconds