Home
last modified time | relevance | path

Searched refs:nmemb (Results 1 – 11 of 11) sorted by relevance

/PHP-5.4/Zend/
H A Dzend_alloc.h71 #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 Dzend_qsort.h25 ZEND_API void zend_qsort(void *base, size_t nmemb, size_t siz, compare_func_t compare TSRMLS_DC);
H A Dzend_qsort.c56 ZEND_API void zend_qsort(void *base, size_t nmemb, size_t siz, compare_func_t compare TSRMLS_DC) in zend_qsort() argument
69 end_stack[0] = (char *) base + ((nmemb - 1) * siz); in zend_qsort()
H A Dzend_alloc.c2459 static inline size_t safe_address(size_t nmemb, size_t size, size_t offset) in safe_address() argument
2461 size_t res = nmemb; in safe_address()
2481 size_t res = nmemb; in safe_address()
2524 size_t res = nmemb * size + offset; in safe_address()
2525 double _d = (double)nmemb * (double)size + (double)offset; in safe_address()
2539 return emalloc_rel(safe_address(nmemb, size, offset)); in _safe_emalloc()
2542 ZEND_API void *_safe_malloc(size_t nmemb, size_t size, size_t offset) in _safe_malloc() argument
2544 return pemalloc(safe_address(nmemb, size, offset), 1); in _safe_malloc()
2549 return erealloc_rel(ptr, safe_address(nmemb, size, offset)); in _safe_erealloc()
2554 return perealloc(ptr, safe_address(nmemb, size, offset), 1); in _safe_realloc()
[all …]
/PHP-5.4/ext/mysqlnd/
H A Dmysqlnd_alloc.h36 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 Dmysqlnd_alloc.c159 void * _mysqlnd_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in _mysqlnd_ecalloc() argument
179 ret = ecalloc(nmemb, REAL_SIZE(size)); in _mysqlnd_ecalloc()
199 void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pecalloc() argument
218 ret = pecalloc(nmemb, REAL_SIZE(size), persistent); in _mysqlnd_pecalloc()
422 void * _mysqlnd_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in _mysqlnd_calloc() argument
441 ret = calloc(nmemb, REAL_SIZE(size)); in _mysqlnd_calloc()
651 static void * mysqlnd_zend_mm_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in mysqlnd_zend_mm_ecalloc() argument
653 return ecalloc(nmemb, size); in mysqlnd_zend_mm_ecalloc()
661 return pecalloc(nmemb, size, persistent); in mysqlnd_zend_mm_pecalloc()
707 static void * mysqlnd_zend_mm_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in mysqlnd_zend_mm_calloc() argument
[all …]
/PHP-5.4/ext/gd/libgd/
H A Dgdhelpers.h15 #define gdCalloc(nmemb, size) ecalloc(nmemb, size) argument
/PHP-5.4/main/
H A Dmergesort.c105 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 Dphp.h335 PHPAPI int php_mergesort(void *base, size_t nmemb, register size_t size, int (*cmp)(const void *, c…
/PHP-5.4/ext/curl/
H A Dstreams.c54 static size_t on_data_available(char *data, size_t size, size_t nmemb, void *ctx) in on_data_available() argument
78 wrote = php_stream_write(curlstream->readbuffer.buf, data, size * nmemb); in on_data_available()
86 static size_t on_header_available(char *data, size_t size, size_t nmemb, void *ctx) in on_header_available() argument
88 size_t length = size * nmemb; in on_header_available()
H A Dinterface.c991 return size * nmemb; in curl_write_nothing()
997 static size_t curl_write(char *data, size_t size, size_t nmemb, void *ctx) in curl_write() argument
1001 size_t length = size * nmemb; in curl_write()
1014 return fwrite(data, size, nmemb, t->fp); in curl_write()
1150 static size_t curl_read(char *data, size_t size, size_t nmemb, void *ctx) in curl_read() argument
1159 length = fread(data, size, nmemb, t->fp); in curl_read()
1180 ZVAL_LONG(zlength, (int) size * nmemb); in curl_read()
1207 length = MIN((int) (size * nmemb), Z_STRLEN_P(retval_ptr)); in curl_read()
1226 static size_t curl_write_header(char *data, size_t size, size_t nmemb, void *ctx) in curl_write_header() argument
1230 size_t length = size * nmemb; in curl_write_header()
[all …]

Completed in 37 milliseconds