/PHP-5.5/Zend/ |
H A D | zend_alloc.h | 71 #define safe_emalloc(nmemb, size, offset) _safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LINE_CC… argument 73 #define ecalloc(nmemb, size) _ecalloc((nmemb), (size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC) argument 75 #define safe_erealloc(ptr, nmemb, size, offset) _safe_erealloc((ptr), (nmemb), (size), (offset) ZEN… argument 83 #define safe_emalloc_rel(nmemb, size, offset) _safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LIN… argument 85 #define ecalloc_rel(nmemb, size) _ecalloc((nmemb), (size) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE… argument 105 void *tmp = _safe_malloc(nmemb, len, 0); in __zend_calloc() 106 memset(tmp, 0, nmemb * len); in __zend_calloc() 123 #define safe_pemalloc(nmemb, size, offset, persistent) ((persistent)?_safe_malloc(nmemb, size, offs… argument 125 #define pecalloc(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc((nme… argument 127 …perealloc(ptr, nmemb, size, offset, persistent) ((persistent)?_safe_realloc((ptr), (nmemb), (size)… argument [all …]
|
H A D | zend_qsort.h | 26 ZEND_API void zend_qsort(void *base, size_t nmemb, size_t siz, compare_func_t compare TSRMLS_DC); 27 ZEND_API void zend_qsort_r(void *base, size_t nmemb, size_t siz, compare_r_func_t compare, void *ar…
|
H A D | zend_qsort.c | 57 ZEND_API void zend_qsort_r(void *base, size_t nmemb, size_t siz, compare_r_func_t compare, void *ar… in zend_qsort_r() argument 70 end_stack[0] = (char *) base + ((nmemb - 1) * siz); in zend_qsort_r() 121 ZEND_API void zend_qsort(void *base, size_t nmemb, size_t siz, compare_func_t compare TSRMLS_DC) in zend_qsort() argument 123 zend_qsort_r(base, nmemb, siz, (compare_r_func_t)compare, NULL TSRMLS_CC); in zend_qsort()
|
H A D | zend_alloc.c | 2465 size_t res = nmemb; in safe_address() 2485 size_t res = nmemb; in safe_address() 2519 : "r"(nmemb), in safe_address() 2540 : "r"(nmemb), in safe_address() 2568 size_t res = nmemb * size + offset; in safe_address() 2569 double _d = (double)nmemb * (double)size + (double)offset; in safe_address() 2583 return emalloc_rel(safe_address(nmemb, size, offset)); in _safe_emalloc() 2588 return pemalloc(safe_address(nmemb, size, offset), 1); in _safe_malloc() 2593 return erealloc_rel(ptr, safe_address(nmemb, size, offset)); in _safe_erealloc() 2598 return perealloc(ptr, safe_address(nmemb, size, offset), 1); in _safe_realloc() [all …]
|
/PHP-5.5/ext/mysqlnd/ |
H A D | mysqlnd_alloc.h | 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); 43 void * (*m_calloc)(unsigned int nmemb, size_t size MYSQLND_MEM_D); 57 PHPAPI void * _mysqlnd_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D); 58 PHPAPI void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D… 64 PHPAPI void * _mysqlnd_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D); 75 #define mnd_ecalloc(nmemb, size) mysqlnd_allocator.m_ecalloc((nmemb), (size) MYSQLND_MEM_C) argument 76 #define mnd_pecalloc(nmemb, size, p) mysqlnd_allocator.m_pecalloc((nmemb), (size), (p) MYSQLND_MEM_… argument 82 #define mnd_calloc(nmemb, size) mysqlnd_allocator.m_calloc((nmemb), (size) MYSQLND_MEM_C) argument
|
H A D | mysqlnd_alloc.c | 160 void * _mysqlnd_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in _mysqlnd_ecalloc() argument 181 ret = _ecalloc(nmemb, REAL_SIZE(size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC); in _mysqlnd_ecalloc() 201 void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pecalloc() argument 220 …ret = (persistent) ? __zend_calloc(nmemb, REAL_SIZE(size)) : _ecalloc(nmemb, REAL_SIZE(size) ZEND_… in _mysqlnd_pecalloc() 430 void * _mysqlnd_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in _mysqlnd_calloc() argument 450 ret = calloc(nmemb, REAL_SIZE(size)); in _mysqlnd_calloc() 663 static void * mysqlnd_zend_mm_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in mysqlnd_zend_mm_ecalloc() argument 665 return ecalloc(nmemb, size); in mysqlnd_zend_mm_ecalloc() 673 return pecalloc(nmemb, size, persistent); in mysqlnd_zend_mm_pecalloc() 719 static void * mysqlnd_zend_mm_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in mysqlnd_zend_mm_calloc() argument [all …]
|
/PHP-5.5/ext/gd/libgd/ |
H A D | gdhelpers.h | 15 #define gdCalloc(nmemb, size) ecalloc(nmemb, size) argument
|
/PHP-5.5/main/ |
H A D | mergesort.c | 105 PHPAPI int php_mergesort(void *base, size_t nmemb, size_t size, int (*cmp)(const void *, const void… in php_mergesort() argument 118 if (nmemb == 0) in php_mergesort() 129 if ((list2 = malloc(nmemb * size + PSIZE)) == NULL) in php_mergesort() 133 setup(list1, list2, nmemb, size, cmp TSRMLS_CC); in php_mergesort() 134 last = list2 + nmemb * size; in php_mergesort() 229 last = list2 + nmemb*size; in php_mergesort() 232 memmove(list2, list1, nmemb*size); in php_mergesort()
|
H A D | php.h | 334 PHPAPI int php_mergesort(void *base, size_t nmemb, register size_t size, int (*cmp)(const void *, c…
|
/PHP-5.5/ext/curl/ |
H A D | interface.c | 1294 return size * nmemb; in curl_write_nothing() 1300 static size_t curl_write(char *data, size_t size, size_t nmemb, void *ctx) in curl_write() argument 1304 size_t length = size * nmemb; in curl_write() 1317 return fwrite(data, size, nmemb, t->fp); in curl_write() 1525 static size_t curl_read(char *data, size_t size, size_t nmemb, void *ctx) in curl_read() argument 1534 length = fread(data, size, nmemb, t->fp); in curl_read() 1555 ZVAL_LONG(zlength, (int) size * nmemb); in curl_read() 1582 length = MIN((int) (size * nmemb), Z_STRLEN_P(retval_ptr)); in curl_read() 1601 static size_t curl_write_header(char *data, size_t size, size_t nmemb, void *ctx) in curl_write_header() argument 1605 size_t length = size * nmemb; in curl_write_header() [all …]
|
/PHP-5.5/ext/sockets/ |
H A D | conversions.c | 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-5.5/ |
H A D | UPGRADING.INTERNALS | 99 void zend_qsort_r(void *base, size_t nmemb, size_t siz, compare_r_func_t compare, void *arg TSRMLS_…
|