Arm MAP Metric Plugin Interface
Metric Plugin Interface for MAP
allinea_safe_malloc.h
Go to the documentation of this file.
1 
5 #ifndef ALLINEA_SAFE_MALLOC_H
6 #define ALLINEA_SAFE_MALLOC_H
7 
8 #include <stdlib.h>
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
24 
37 extern void* allinea_safe_malloc(size_t size);
38 
40 
49 extern void allinea_safe_free(void *ptr);
50 
52 
67 extern void* allinea_safe_calloc(size_t nmemb, size_t size);
68 
70 
89 extern void* allinea_safe_realloc(void *ptr, size_t size);
90 
92 
93 #ifdef __cplusplus
94 }
95 #endif
96 
97 #endif
void * allinea_safe_malloc(size_t size)
An async-signal-safe version of malloc.
void allinea_safe_free(void *ptr)
An async-signal-safe version of free.
void * allinea_safe_realloc(void *ptr, size_t size)
An async-signal-safe version of realloc.
void * allinea_safe_calloc(size_t nmemb, size_t size)
An async-signal-safe version of calloc.