Lines Matching refs:ret
72 void *ret; in _mysqlnd_emalloc() local
75 ret = emalloc_rel(REAL_SIZE(size)); in _mysqlnd_emalloc()
77 TRACE_ALLOC_INF_FMT("size=%zu ptr=%p", size, ret); in _mysqlnd_emalloc()
80 *(size_t *) ret = size; in _mysqlnd_emalloc()
83 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_emalloc()
91 void *ret; in _mysqlnd_pemalloc() local
94 ret = pemalloc_rel(REAL_SIZE(size), persistent); in _mysqlnd_pemalloc()
96 TRACE_ALLOC_INF_FMT("size=%zu ptr=%p persistent=%u", size, ret, persistent); in _mysqlnd_pemalloc()
101 *(size_t *) ret = size; in _mysqlnd_pemalloc()
105 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_pemalloc()
113 void *ret; in _mysqlnd_ecalloc() local
117 ret = ecalloc_rel(nmemb, REAL_SIZE(size)); in _mysqlnd_ecalloc()
120 TRACE_ALLOC_INF_FMT("size=%zu ptr=%p", size, ret); in _mysqlnd_ecalloc()
122 *(size_t *) ret = size; in _mysqlnd_ecalloc()
125 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_ecalloc()
133 void *ret; in _mysqlnd_pecalloc() local
136 ret = pecalloc_rel(nmemb, REAL_SIZE(size), persistent); in _mysqlnd_pecalloc()
138 TRACE_ALLOC_INF_FMT("size=%zu ptr=%p", size, ret); in _mysqlnd_pecalloc()
143 *(size_t *) ret = size; in _mysqlnd_pecalloc()
147 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_pecalloc()
155 void *ret; in _mysqlnd_erealloc() local
160 ret = erealloc_rel(REAL_PTR(ptr), REAL_SIZE(new_size)); in _mysqlnd_erealloc()
162 TRACE_ALLOC_INF_FMT("new_ptr=%p", (char*)ret); in _mysqlnd_erealloc()
164 *(size_t *) ret = new_size; in _mysqlnd_erealloc()
167 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_erealloc()
175 void *ret; in _mysqlnd_perealloc() local
180 ret = perealloc_rel(REAL_PTR(ptr), REAL_SIZE(new_size), persistent); in _mysqlnd_perealloc()
182 TRACE_ALLOC_INF_FMT("new_ptr=%p", (char*)ret); in _mysqlnd_perealloc()
187 *(size_t *) ret = new_size; in _mysqlnd_perealloc()
190 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_perealloc()
261 char * ret; in _mysqlnd_pememdup() local
273 ret = pemalloc_rel(REAL_SIZE(length + 1), persistent); in _mysqlnd_pememdup()
275 char * dest = (char *) FAKE_PTR(ret); in _mysqlnd_pememdup()
280 *(size_t *) ret = length; in _mysqlnd_pememdup()
284 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_pememdup()
292 char * ret; in _mysqlnd_pestrndup() local
304 ret = pemalloc_rel(REAL_SIZE(length + 1), persistent); in _mysqlnd_pestrndup()
308 char * dest = (char *) FAKE_PTR(ret); in _mysqlnd_pestrndup()
316 *(size_t *) ret = length; in _mysqlnd_pestrndup()
320 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_pestrndup()
332 char * ret; in _mysqlnd_pestrdup() local
348 ret = pemalloc_rel(REAL_SIZE(ZSTR_LEN(tmp_str.s)), persistent); in _mysqlnd_pestrdup()
349 memcpy(FAKE_PTR(ret), ZSTR_VAL(tmp_str.s), ZSTR_LEN(tmp_str.s)); in _mysqlnd_pestrdup()
351 if (ret && collect_memory_statistics) { in _mysqlnd_pestrdup()
352 *(size_t *) ret = ZSTR_LEN(tmp_str.s); in _mysqlnd_pestrdup()
357 TRACE_ALLOC_RETURN(FAKE_PTR(ret)); in _mysqlnd_pestrdup()