]> git.proxmox.com Git - rustc.git/blob - src/jemalloc/include/jemalloc/jemalloc_protos.h.in
Imported Upstream version 1.0.0~0alpha
[rustc.git] / src / jemalloc / include / jemalloc / jemalloc_protos.h.in
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 */
6 extern JEMALLOC_EXPORT const char *@je_@malloc_conf;
7 extern JEMALLOC_EXPORT void (*@je_@malloc_message)(void *cbopaque,
8 const char *s);
9
10 JEMALLOC_EXPORT void *@je_@malloc(size_t size) JEMALLOC_ATTR(malloc);
11 JEMALLOC_EXPORT void *@je_@calloc(size_t num, size_t size)
12 JEMALLOC_ATTR(malloc);
13 JEMALLOC_EXPORT int @je_@posix_memalign(void **memptr, size_t alignment,
14 size_t size) JEMALLOC_ATTR(nonnull(1));
15 JEMALLOC_EXPORT void *@je_@aligned_alloc(size_t alignment, size_t size)
16 JEMALLOC_ATTR(malloc);
17 JEMALLOC_EXPORT void *@je_@realloc(void *ptr, size_t size);
18 JEMALLOC_EXPORT void @je_@free(void *ptr);
19
20 JEMALLOC_EXPORT void *@je_@mallocx(size_t size, int flags)
21 JEMALLOC_ATTR(malloc);
22 JEMALLOC_EXPORT void *@je_@rallocx(void *ptr, size_t size, int flags);
23 JEMALLOC_EXPORT size_t @je_@xallocx(void *ptr, size_t size, size_t extra,
24 int flags);
25 JEMALLOC_EXPORT size_t @je_@sallocx(const void *ptr, int flags)
26 JEMALLOC_ATTR(pure);
27 JEMALLOC_EXPORT void @je_@dallocx(void *ptr, int flags);
28 JEMALLOC_EXPORT void @je_@sdallocx(void *ptr, size_t size, int flags);
29 JEMALLOC_EXPORT size_t @je_@nallocx(size_t size, int flags)
30 JEMALLOC_ATTR(pure);
31
32 JEMALLOC_EXPORT int @je_@mallctl(const char *name, void *oldp,
33 size_t *oldlenp, void *newp, size_t newlen);
34 JEMALLOC_EXPORT int @je_@mallctlnametomib(const char *name, size_t *mibp,
35 size_t *miblenp);
36 JEMALLOC_EXPORT int @je_@mallctlbymib(const size_t *mib, size_t miblen,
37 void *oldp, size_t *oldlenp, void *newp, size_t newlen);
38 JEMALLOC_EXPORT void @je_@malloc_stats_print(void (*write_cb)(void *,
39 const char *), void *@je_@cbopaque, const char *opts);
40 JEMALLOC_EXPORT size_t @je_@malloc_usable_size(
41 JEMALLOC_USABLE_SIZE_CONST void *ptr);
42
43 #ifdef JEMALLOC_OVERRIDE_MEMALIGN
44 JEMALLOC_EXPORT void * @je_@memalign(size_t alignment, size_t size)
45 JEMALLOC_ATTR(malloc);
46 #endif
47
48 #ifdef JEMALLOC_OVERRIDE_VALLOC
49 JEMALLOC_EXPORT void * @je_@valloc(size_t size) JEMALLOC_ATTR(malloc);
50 #endif