X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Finternal%2Fmalloc_impl.h;h=59785a7fe137bbe0736bbcfc7f541761f73ca9d7;hb=2d72b58070bc43a727b580a46746e87215a60a33;hp=4c4a4b461519863c59f6be01740e9585da214881;hpb=72141795d4edd17f88da192447395a48444afa10;p=musl diff --git a/src/internal/malloc_impl.h b/src/internal/malloc_impl.h index 4c4a4b46..59785a7f 100644 --- a/src/internal/malloc_impl.h +++ b/src/internal/malloc_impl.h @@ -1,10 +1,13 @@ #ifndef MALLOC_IMPL_H #define MALLOC_IMPL_H -void *__mmap(void *, size_t, int, int, int, off_t); -int __munmap(void *, size_t); -void *__mremap(void *, size_t, size_t, int, ...); -int __madvise(void *, size_t, int); +#include + +hidden void *__expand_heap(size_t *); + +hidden void __malloc_donate(char *, char *); + +hidden void *__memalign(size_t, size_t); struct chunk { size_t psize, csize; @@ -36,7 +39,8 @@ struct bin { #define IS_MMAPPED(c) !((c)->csize & (C_INUSE)) -__attribute__((__visibility__("hidden"))) -void __bin_chunk(struct chunk *); +hidden void __bin_chunk(struct chunk *); + +hidden extern int __malloc_replaced; #endif