malloc.h revision 1.4 1 /* $NetBSD: malloc.h,v 1.4 2019/03/09 03:52:10 christos Exp $ */
2
3 #ifndef _MALLOC_H_
4 #define _MALLOC_H_
5
6 #include <stdlib.h>
7
8 __BEGIN_DECLS
9
10 void *mallocx(size_t, int);
11 void *rallocx(void *, size_t, int);
12 size_t xallocx(void *, size_t, size_t, int);
13 size_t sallocx(void *, int);
14 void dallocx(void *, int);
15 void sdallocx(void *, size_t, int);
16 size_t nallocx(size_t, int);
17
18 int mallctl(const char *, void *, size_t *, void *, size_t);
19 int mallctltomib(const char *, size_t *, size_t *);
20 int mallctlbymib(const size_t *, size_t, void *, size_t *, void *, size_t);
21
22 void malloc_stats_print(void (*)(void *, const char *), void *, const char *);
23
24 size_t malloc_usable_size(const void *);
25
26 void (*malloc_message)(void *, const char *);
27
28 const char *malloc_conf;
29
30 __END_DECLS
31
32 #endif /* _MALLOC_H_ */
33