glibc/include/malloc.h
Siddhesh Poyarekar cc35896ea3 Simplify __malloc_initialized
Now that mcheck no longer needs to check __malloc_initialized (and no
other third party hook can since the symbol is not exported), make the
variable boolean and static so that it is used strictly within malloc.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
2021-07-22 18:38:04 +05:30

14 lines
182 B
C

#ifndef _MALLOC_H
#include <malloc/malloc.h>
# ifndef _ISOMAC
# include <rtld-malloc.h>
struct malloc_state;
typedef struct malloc_state *mstate;
# endif /* !_ISOMAC */
#endif