| /PHP_5_4/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 * TSRMLS_DC) TSRMLS_DC) argument 118 if (nmemb == 0) 129 if ((list2 = malloc(nmemb * size + PSIZE)) == NULL) 133 setup(list1, list2, nmemb, size, cmp TSRMLS_CC); 134 last = list2 + nmemb * size; 229 last = list2 + nmemb*size; 232 memmove(list2, list1, nmemb*size);
|
| H A D | php.h | 335 PHPAPI int php_mergesort(void *base, size_t nmemb, register size_t size, int (*cmp)(const void *, const void * TSRMLS_DC) TSRMLS_DC);
|
| /PHP_5_4/ext/gd/libgd/ |
| H A D | gdhelpers.h | 15 #define gdCalloc(nmemb, size) ecalloc(nmemb, size)
|
| /PHP_5_4/Zend/ |
| H A D | zend_alloc.h | 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; 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_t offset); 71 #define safe_emalloc(nmemb, size, offset) _safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC) 73 #define ecalloc(nmemb, size) _ecalloc((nmemb), (size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC) 75 #define safe_erealloc(ptr, nmemb, siz 103 __zend_calloc(size_t nmemb, size_t len) argument [all...] |
| H A D | zend_qsort.c | 56 ZEND_API void zend_qsort(void *base, size_t nmemb, size_t siz, compare_func_t compare TSRMLS_DC) argument 69 end_stack[0] = (char *) base + ((nmemb - 1) * siz);
|
| H A D | zend_qsort.h | 25 ZEND_API void zend_qsort(void *base, size_t nmemb, size_t siz, compare_func_t compare TSRMLS_DC);
|
| H A D | zend_alloc.c | 2459 static inline size_t safe_address(size_t nmemb, size_t size, size_t offset) argument 2461 size_t res = nmemb; 2471 zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", nmemb, size, offset); 2479 static inline size_t safe_address(size_t nmemb, size_t size, size_t offset) argument 2481 size_t res = nmemb; 2501 zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", nmemb, size, offset); 2509 static inline size_t safe_address(size_t nmemb, size_t size, size_t offset) argument 2511 zend_ulong64 res = (zend_ulong64)nmemb * (zend_ulong64)size + (zend_ulong64)offset; 2514 zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", nmemb, size, offset); 2522 static inline size_t safe_address(size_t nmemb, size_ argument 2537 _safe_emalloc(size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) argument 2542 _safe_malloc(size_t nmemb, size_t size, size_t offset) argument 2547 _safe_erealloc(void *ptr, size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) argument 2552 _safe_realloc(void *ptr, size_t nmemb, size_t size, size_t offset) argument 2558 _ecalloc(size_t nmemb, size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) argument [all...] |
| /PHP_5_4/ext/curl/ |
| H A D | streams.c | 54 static size_t on_data_available(char *data, size_t size, size_t nmemb, void *ctx) argument 78 wrote = php_stream_write(curlstream->readbuffer.buf, data, size * nmemb); 86 static size_t on_header_available(char *data, size_t size, size_t nmemb, void *ctx) argument 88 size_t length = size * nmemb;
|
| H A D | interface.c | 983 static size_t curl_write_nothing(char *data, size_t size, size_t nmemb, void *ctx) argument 985 return size * nmemb; 991 static size_t curl_write(char *data, size_t size, size_t nmemb, void *ctx) argument 995 size_t length = size * nmemb; 1000 fprintf(stderr, "data = %s, size = %d, nmemb = %d, ctx = %x\n", data, size, nmemb, ctx); 1008 return fwrite(data, size, nmemb, t->fp); 1144 static size_t curl_read(char *data, size_t size, size_t nmemb, void *ctx) argument 1153 length = fread(data, size, nmemb, t->fp); 1174 ZVAL_LONG(zlength, (int) size * nmemb); local 1219 curl_write_header(char *data, size_t size, size_t nmemb, void *ctx) argument [all...] |
| /PHP_5_4/ext/mysqlnd/ |
| H A D | mysqlnd_alloc.c | 159 void * _mysqlnd_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) argument 179 ret = ecalloc(nmemb, REAL_SIZE(size)); 199 void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D) argument 218 ret = pecalloc(nmemb, REAL_SIZE(size), persistent); 422 void * _mysqlnd_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) argument 441 ret = calloc(nmemb, REAL_SIZE(size)); 651 static void * mysqlnd_zend_mm_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) argument 653 return ecalloc(nmemb, size); 659 static void * mysqlnd_zend_mm_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D) argument 661 return pecalloc(nmemb, siz 707 mysqlnd_zend_mm_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) argument [all...] |
| 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) 76 #define mnd_pecalloc(nmemb, size, p) mysqlnd_allocator.m_pecalloc((nmemb), (siz [all...] |