summaryrefslogtreecommitdiff
path: root/deps/jemalloc/include/jemalloc/jemalloc_protos.h.in
blob: 25446de3d96ec376f26e8cf33b745aa0705bb116 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
 * The @je_@ prefix on the following public symbol declarations is an artifact
 * of namespace management, and should be omitted in application code unless
 * JEMALLOC_NO_DEMANGLE is defined (see jemalloc_mangle@install_suffix@.h).
 */
extern JEMALLOC_EXPORT const char	*@je_@malloc_conf;
extern JEMALLOC_EXPORT void		(*@je_@malloc_message)(void *cbopaque,
    const char *s);

JEMALLOC_EXPORT void	*@je_@malloc(size_t size) JEMALLOC_ATTR(malloc);
JEMALLOC_EXPORT void	*@je_@calloc(size_t num, size_t size)
    JEMALLOC_ATTR(malloc);
JEMALLOC_EXPORT int	@je_@posix_memalign(void **memptr, size_t alignment,
    size_t size) JEMALLOC_ATTR(nonnull(1));
JEMALLOC_EXPORT void	*@je_@aligned_alloc(size_t alignment, size_t size)
    JEMALLOC_ATTR(malloc);
JEMALLOC_EXPORT void	*@je_@realloc(void *ptr, size_t size);
JEMALLOC_EXPORT void	@je_@free(void *ptr);

JEMALLOC_EXPORT void	*@je_@mallocx(size_t size, int flags);
JEMALLOC_EXPORT void	*@je_@rallocx(void *ptr, size_t size, int flags);
JEMALLOC_EXPORT size_t	@je_@xallocx(void *ptr, size_t size, size_t extra,
    int flags);
JEMALLOC_EXPORT size_t	@je_@sallocx(const void *ptr, int flags);
JEMALLOC_EXPORT void	@je_@dallocx(void *ptr, int flags);
JEMALLOC_EXPORT size_t	@je_@nallocx(size_t size, int flags);

JEMALLOC_EXPORT int	@je_@mallctl(const char *name, void *oldp,
    size_t *oldlenp, void *newp, size_t newlen);
JEMALLOC_EXPORT int	@je_@mallctlnametomib(const char *name, size_t *mibp,
    size_t *miblenp);
JEMALLOC_EXPORT int	@je_@mallctlbymib(const size_t *mib, size_t miblen,
    void *oldp, size_t *oldlenp, void *newp, size_t newlen);
JEMALLOC_EXPORT void	@je_@malloc_stats_print(void (*write_cb)(void *,
    const char *), void *@je_@cbopaque, const char *opts);
JEMALLOC_EXPORT size_t	@je_@malloc_usable_size(
    JEMALLOC_USABLE_SIZE_CONST void *ptr);

#ifdef JEMALLOC_OVERRIDE_MEMALIGN
JEMALLOC_EXPORT void *	@je_@memalign(size_t alignment, size_t size)
    JEMALLOC_ATTR(malloc);
#endif

#ifdef JEMALLOC_OVERRIDE_VALLOC
JEMALLOC_EXPORT void *	@je_@valloc(size_t size) JEMALLOC_ATTR(malloc);
#endif

#ifdef JEMALLOC_EXPERIMENTAL
JEMALLOC_EXPORT int	@je_@allocm(void **ptr, size_t *rsize, size_t size,
    int flags) JEMALLOC_ATTR(nonnull(1));
JEMALLOC_EXPORT int	@je_@rallocm(void **ptr, size_t *rsize, size_t size,
    size_t extra, int flags) JEMALLOC_ATTR(nonnull(1));
JEMALLOC_EXPORT int	@je_@sallocm(const void *ptr, size_t *rsize, int flags)
    JEMALLOC_ATTR(nonnull(1));
JEMALLOC_EXPORT int	@je_@dallocm(void *ptr, int flags)
    JEMALLOC_ATTR(nonnull(1));
JEMALLOC_EXPORT int	@je_@nallocm(size_t *rsize, size_t size, int flags);
#endif