1/*
2 * The @je_@ prefix on the following public symbol declarations is an artifact
3 * of namespace management, and should be omitted in application code unless
4 * JEMALLOC_NO_DEMANGLE is defined (see jemalloc_mangle@install_suffix@.h).
5 */
6extern JEMALLOC_EXPORT const char	*@je_@malloc_conf;
7extern JEMALLOC_EXPORT void		(*@je_@malloc_message)(void *cbopaque,
8    const char *s);
9
10JEMALLOC_EXPORT void	*@je_@malloc(size_t size) JEMALLOC_ATTR(malloc);
11JEMALLOC_EXPORT void	*@je_@calloc(size_t num, size_t size)
12    JEMALLOC_ATTR(malloc);
13JEMALLOC_EXPORT int	@je_@posix_memalign(void **memptr, size_t alignment,
14    size_t size) JEMALLOC_ATTR(nonnull(1));
15JEMALLOC_EXPORT void	*@je_@aligned_alloc(size_t alignment, size_t size)
16    JEMALLOC_ATTR(malloc);
17JEMALLOC_EXPORT void	*@je_@realloc(void *ptr, size_t size);
18JEMALLOC_EXPORT void	@je_@free(void *ptr);
19
20JEMALLOC_EXPORT void	*@je_@mallocx(size_t size, int flags)
21    JEMALLOC_ATTR(malloc);
22JEMALLOC_EXPORT void	*@je_@rallocx(void *ptr, size_t size, int flags);
23JEMALLOC_EXPORT size_t	@je_@xallocx(void *ptr, size_t size, size_t extra,
24    int flags);
25JEMALLOC_EXPORT size_t	@je_@sallocx(const void *ptr, int flags)
26    JEMALLOC_ATTR(pure);
27JEMALLOC_EXPORT void	@je_@dallocx(void *ptr, int flags);
28JEMALLOC_EXPORT void	@je_@sdallocx(void *ptr, size_t size, int flags);
29JEMALLOC_EXPORT size_t	@je_@nallocx(size_t size, int flags)
30    JEMALLOC_ATTR(pure);
31
32JEMALLOC_EXPORT int	@je_@mallctl(const char *name, void *oldp,
33    size_t *oldlenp, void *newp, size_t newlen);
34JEMALLOC_EXPORT int	@je_@mallctlnametomib(const char *name, size_t *mibp,
35    size_t *miblenp);
36JEMALLOC_EXPORT int	@je_@mallctlbymib(const size_t *mib, size_t miblen,
37    void *oldp, size_t *oldlenp, void *newp, size_t newlen);
38JEMALLOC_EXPORT void	@je_@malloc_stats_print(void (*write_cb)(void *,
39    const char *), void *@je_@cbopaque, const char *opts);
40JEMALLOC_EXPORT size_t	@je_@malloc_usable_size(
41    JEMALLOC_USABLE_SIZE_CONST void *ptr);
42
43#ifdef JEMALLOC_OVERRIDE_MEMALIGN
44JEMALLOC_EXPORT void *	@je_@memalign(size_t alignment, size_t size)
45    JEMALLOC_ATTR(malloc);
46#endif
47
48#ifdef JEMALLOC_OVERRIDE_VALLOC
49JEMALLOC_EXPORT void *	@je_@valloc(size_t size) JEMALLOC_ATTR(malloc);
50#endif
51
52typedef void *(chunk_alloc_t)(size_t, size_t, bool *, unsigned);
53typedef bool (chunk_dalloc_t)(void *, size_t, unsigned);
54