diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-08-26 10:35:36 +0000 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-08-26 10:35:36 +0000 |
commit | 393415f09c80d9846cba6b7462d152bc0f032ede (patch) | |
tree | 3ae768c32dc6ff5d55be75a5263fad1a64a06f6c /extras/mini-os/include/lib.h | |
parent | 4fb2acfb09468669ebbeaa6570d42403bb8ffc4f (diff) | |
download | xen-393415f09c80d9846cba6b7462d152bc0f032ede.tar.gz xen-393415f09c80d9846cba6b7462d152bc0f032ede.tar.bz2 xen-393415f09c80d9846cba6b7462d152bc0f032ede.zip |
The patch removes broken, and very complicated malloc in
favour of much simpler (and working) Xen's allocator
(xmalloc by Rusty).
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
Diffstat (limited to 'extras/mini-os/include/lib.h')
-rw-r--r-- | extras/mini-os/include/lib.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/extras/mini-os/include/lib.h b/extras/mini-os/include/lib.h index 0b405ee006..dcf5a84e08 100644 --- a/extras/mini-os/include/lib.h +++ b/extras/mini-os/include/lib.h @@ -79,36 +79,4 @@ char *strchr(const char *s, int c); char *strstr(const char *s1, const char *s2); -/* dlmalloc functions */ -struct mallinfo { - int arena; /* non-mmapped space allocated from system */ - int ordblks; /* number of free chunks */ - int smblks; /* number of fastbin blocks */ - int hblks; /* number of mmapped regions */ - int hblkhd; /* space in mmapped regions */ - int usmblks; /* maximum total allocated space */ - int fsmblks; /* space available in freed fastbin blocks */ - int uordblks; /* total allocated space */ - int fordblks; /* total free space */ - int keepcost; /* top-most, releasable (via malloc_trim) space */ -}; - -void *malloc(size_t n); -void *calloc(size_t n_elements, size_t element_size); -void free(void* p); -void *realloc(void* p, size_t n); -void *memalign(size_t alignment, size_t n); -void *valloc(size_t n); -struct mallinfo mallinfo(void); -int mallopt(int parameter_number, int parameter_value); - -void **independent_calloc(size_t n_elements, size_t size, void* chunks[]); -void **independent_comalloc(size_t n_elements, size_t sizes[], void* chunks[]); -void *pvalloc(size_t n); -void cfree(void* p); -int malloc_trim(size_t pad); -size_t malloc_usable_size(void* p); -void malloc_stats(void); - - #endif /* _LIB_H_ */ |