Lines Matching refs:size_t

72 #define REAL_SIZE(s) (collect_memory_statistics? (s) + sizeof(size_t) : (s))
73 #define REAL_PTR(p) (collect_memory_statistics && (p)? (((char *)(p)) - sizeof(size_t)) : (p))
74 #define FAKE_PTR(p) (collect_memory_statistics && (p)? (((char *)(p)) + sizeof(size_t)) : (p))
77 void * _mysqlnd_emalloc(size_t size MYSQLND_MEM_D) in _mysqlnd_emalloc()
108 *(size_t *) ret = size; in _mysqlnd_emalloc()
117 void * _mysqlnd_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pemalloc()
150 *(size_t *) ret = size; in _mysqlnd_pemalloc()
160 void * _mysqlnd_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in _mysqlnd_ecalloc()
192 *(size_t *) ret = size; in _mysqlnd_ecalloc()
201 void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pecalloc()
233 *(size_t *) ret = size; in _mysqlnd_pecalloc()
243 void * _mysqlnd_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D) in _mysqlnd_erealloc()
247size_t old_size = collect_memory_statistics && ptr? *(size_t *) (((char*)ptr) - sizeof(size_t)) : … in _mysqlnd_erealloc()
275 *(size_t *) ret = new_size; in _mysqlnd_erealloc()
284 void * _mysqlnd_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_perealloc()
288size_t old_size = collect_memory_statistics && ptr? *(size_t *) (((char*)ptr) - sizeof(size_t)) : … in _mysqlnd_perealloc()
319 *(size_t *) ret = new_size; in _mysqlnd_perealloc()
330 size_t free_amount = 0; in _mysqlnd_efree()
344 free_amount = *(size_t *)(((char*)ptr) - sizeof(size_t)); in _mysqlnd_efree()
345 TRACE_ALLOC_INF_FMT("ptr=%p size=%u", ((char*)ptr) - sizeof(size_t), (unsigned int) free_amount); in _mysqlnd_efree()
361 size_t free_amount = 0; in _mysqlnd_pefree()
375 free_amount = *(size_t *)(((char*)ptr) - sizeof(size_t)); in _mysqlnd_pefree()
376 TRACE_ALLOC_INF_FMT("ptr=%p size=%u", ((char*)ptr) - sizeof(size_t), (unsigned int) free_amount); in _mysqlnd_pefree()
391 void * _mysqlnd_malloc(size_t size MYSQLND_MEM_D) in _mysqlnd_malloc()
421 *(size_t *) ret = size; in _mysqlnd_malloc()
430 void * _mysqlnd_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in _mysqlnd_calloc()
460 *(size_t *) ret = size; in _mysqlnd_calloc()
469 void * _mysqlnd_realloc(void *ptr, size_t new_size MYSQLND_MEM_D) in _mysqlnd_realloc()
502 *(size_t *) ret = new_size; in _mysqlnd_realloc()
513 size_t free_amount = 0; in _mysqlnd_free()
527 free_amount = *(size_t *)(((char*)ptr) - sizeof(size_t)); in _mysqlnd_free()
528 TRACE_ALLOC_INF_FMT("ptr=%p size=%u", ((char*)ptr) - sizeof(size_t), (unsigned int) free_amount); in _mysqlnd_free()
546 char * _mysqlnd_pestrndup(const char * const ptr, size_t length, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pestrndup()
562 size_t l = length; in _mysqlnd_pestrndup()
572 *(size_t *) ret = length; in _mysqlnd_pestrndup()
600 …ersistent) ? __zend_malloc(tmp_str.len + sizeof(size_t)) : _emalloc(REAL_SIZE(tmp_str.len + sizeof… in _mysqlnd_pestrdup()
604 *(size_t *) ret = tmp_str.len; in _mysqlnd_pestrdup()
615 PHPAPI int _mysqlnd_sprintf(char ** pbuf, size_t max_len, const char *format, ...) in _mysqlnd_sprintf()
635 PHPAPI int _mysqlnd_vsprintf(char ** pbuf, size_t max_len, const char * format, va_list ap) in _mysqlnd_vsprintf()
647 static void * mysqlnd_zend_mm_emalloc(size_t size MYSQLND_MEM_D) in mysqlnd_zend_mm_emalloc()
655 static void * mysqlnd_zend_mm_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D) in mysqlnd_zend_mm_pemalloc()
663 static void * mysqlnd_zend_mm_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in mysqlnd_zend_mm_ecalloc()
671 static void * mysqlnd_zend_mm_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLN… in mysqlnd_zend_mm_pecalloc()
679 static void * mysqlnd_zend_mm_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D) in mysqlnd_zend_mm_erealloc()
687 static void * mysqlnd_zend_mm_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_ME… in mysqlnd_zend_mm_perealloc()
711 static void * mysqlnd_zend_mm_malloc(size_t size MYSQLND_MEM_D) in mysqlnd_zend_mm_malloc()
719 static void * mysqlnd_zend_mm_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in mysqlnd_zend_mm_calloc()
727 static void * mysqlnd_zend_mm_realloc(void * ptr, size_t new_size MYSQLND_MEM_D) in mysqlnd_zend_mm_realloc()
743 static char * mysqlnd_zend_mm_pestrndup(const char * const ptr, size_t length, zend_bool persistent… in mysqlnd_zend_mm_pestrndup()