Lines Matching refs:num
78 static void *default_malloc_ex(size_t num, const char *file, int line) in default_malloc_ex() argument
79 { return malloc_func(num); } in default_malloc_ex()
84 static void *default_realloc_ex(void *str, size_t num, in default_realloc_ex() argument
86 { return realloc_func(str,num); } in default_realloc_ex()
93 static void *default_malloc_locked_ex(size_t num, const char *file, int line) in default_malloc_locked_ex() argument
94 { return malloc_locked_func(num); } in default_malloc_locked_ex()
252 void *CRYPTO_malloc_locked(int num, const char *file, int line) in CRYPTO_malloc_locked() argument
256 if (num <= 0) return NULL; in CRYPTO_malloc_locked()
262 malloc_debug_func(NULL, num, file, line, 0); in CRYPTO_malloc_locked()
264 ret = malloc_locked_ex_func(num,file,line); in CRYPTO_malloc_locked()
266 fprintf(stderr, "LEVITTE_DEBUG_MEM: > 0x%p (%d)\n", ret, num); in CRYPTO_malloc_locked()
269 malloc_debug_func(ret, num, file, line, 1); in CRYPTO_malloc_locked()
275 if(ret && (num > 2048)) in CRYPTO_malloc_locked()
296 void *CRYPTO_malloc(int num, const char *file, int line) in CRYPTO_malloc() argument
300 if (num <= 0) return NULL; in CRYPTO_malloc()
306 malloc_debug_func(NULL, num, file, line, 0); in CRYPTO_malloc()
308 ret = malloc_ex_func(num,file,line); in CRYPTO_malloc()
310 fprintf(stderr, "LEVITTE_DEBUG_MEM: > 0x%p (%d)\n", ret, num); in CRYPTO_malloc()
313 malloc_debug_func(ret, num, file, line, 1); in CRYPTO_malloc()
319 if(ret && (num > 2048)) in CRYPTO_malloc()
335 void *CRYPTO_realloc(void *str, int num, const char *file, int line) in CRYPTO_realloc() argument
340 return CRYPTO_malloc(num, file, line); in CRYPTO_realloc()
342 if (num <= 0) return NULL; in CRYPTO_realloc()
345 realloc_debug_func(str, NULL, num, file, line, 0); in CRYPTO_realloc()
346 ret = realloc_ex_func(str,num,file,line); in CRYPTO_realloc()
348 fprintf(stderr, "LEVITTE_DEBUG_MEM: | 0x%p -> 0x%p (%d)\n", str, ret, num); in CRYPTO_realloc()
351 realloc_debug_func(str, ret, num, file, line, 1); in CRYPTO_realloc()
356 void *CRYPTO_realloc_clean(void *str, int old_len, int num, const char *file, in CRYPTO_realloc_clean() argument
362 return CRYPTO_malloc(num, file, line); in CRYPTO_realloc_clean()
364 if (num <= 0) return NULL; in CRYPTO_realloc_clean()
368 if (num < old_len) return NULL; in CRYPTO_realloc_clean()
371 realloc_debug_func(str, NULL, num, file, line, 0); in CRYPTO_realloc_clean()
372 ret=malloc_ex_func(num,file,line); in CRYPTO_realloc_clean()
382 str, ret, num); in CRYPTO_realloc_clean()
385 realloc_debug_func(str, ret, num, file, line, 1); in CRYPTO_realloc_clean()
402 void *CRYPTO_remalloc(void *a, int num, const char *file, int line) in CRYPTO_remalloc() argument
405 a=(char *)OPENSSL_malloc(num); in CRYPTO_remalloc()