Searched refs:alloc_size (Results 1 - 7 of 7) sorted by relevance

/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_driver.c198 size_t alloc_size = sizeof(MYSQLND_STMT) + mysqlnd_plugin_count() * sizeof(void *); local
199 MYSQLND_STMT * ret = mnd_pecalloc(1, alloc_size, conn->persistent);
291 size_t alloc_size = sizeof(MYSQLND_PROTOCOL) + mysqlnd_plugin_count() * sizeof(void *); local
292 MYSQLND_PROTOCOL *ret = mnd_pecalloc(1, alloc_size, persistent);
H A Dmysqlnd_result.c1899 size_t alloc_size = sizeof(MYSQLND_RES) + mysqlnd_plugin_count() * sizeof(void *); variable
1900 MYSQLND_RES * ret = mnd_pecalloc(1, alloc_size, persistent);
1921 size_t alloc_size = sizeof(MYSQLND_RES_UNBUFFERED) + mysqlnd_plugin_count() * sizeof(void *); local
1922 MYSQLND_RES_UNBUFFERED * ret = mnd_pecalloc(1, alloc_size, persistent);
1962 size_t alloc_size = sizeof(MYSQLND_RES_BUFFERED_ZVAL) + mysqlnd_plugin_count() * sizeof(void *); local
1963 MYSQLND_RES_BUFFERED_ZVAL * ret = mnd_pecalloc(1, alloc_size, persistent);
2005 size_t alloc_size = sizeof(MYSQLND_RES_BUFFERED_C) + mysqlnd_plugin_count() * sizeof(void *); local
2006 MYSQLND_RES_BUFFERED_C * ret = mnd_pecalloc(1, alloc_size, persistent);
H A Dmysqlnd_result_meta.c357 size_t alloc_size = sizeof(MYSQLND_RES_METADATA) + mysqlnd_plugin_count() * sizeof(void *); variable
358 MYSQLND_RES_METADATA *ret = mnd_pecalloc(1, alloc_size, persistent);
/PHP_TRUNK/main/
H A Dphp_variables.c490 size_t alloc_size = sizeof(buf); local
499 if (nlen >= alloc_size) {
500 alloc_size = nlen + 64;
501 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c1589 size_t alloc_size = sizeof(buf); local
1598 if (var_len >= alloc_size) {
1599 alloc_size = var_len + 64;
1600 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
1612 if (var_len >= alloc_size) {
1613 alloc_size = var_len + 64;
1614 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
/PHP_TRUNK/ext/sockets/
H A Dconversions.c118 static inline void *accounted_emalloc(size_t alloc_size, ser_context *ctx) argument
120 void *ret = emalloc(alloc_size);
124 static inline void *accounted_ecalloc(size_t nmemb, size_t alloc_size, ser_context *ctx) argument
126 void *ret = ecalloc(nmemb, alloc_size);
130 static inline void *accounted_safe_ecalloc(size_t nmemb, size_t alloc_size, size_t offset, ser_context *ctx) argument
132 void *ret = safe_emalloc(nmemb, alloc_size, offset);
133 memset(ret, '\0', nmemb * alloc_size + offset);
/PHP_TRUNK/Zend/
H A Dzend.h154 #if ZEND_GCC_VERSION >= 4003 || __has_attribute(alloc_size)
155 # define ZEND_ATTRIBUTE_ALLOC_SIZE(X) __attribute__ ((alloc_size(X)))
156 # define ZEND_ATTRIBUTE_ALLOC_SIZE2(X,Y) __attribute__ ((alloc_size(X,Y)))

Completed in 17 milliseconds