summary refs log tree commit diff
path: root/include/malloc.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-01-13 03:42:27 +0000
committerRoland McGrath <roland@gnu.org>2003-01-13 03:42:27 +0000
commitf1c5213d6908c00e42556e9ac910cf150029f4c2 (patch)
tree97737a5aa00658c356b14b80570e5a253c7e45f5 /include/malloc.h
parent2674e3c6fc3d2a1279b0e31877f90a22a523504c (diff)
downloadglibc-f1c5213d6908c00e42556e9ac910cf150029f4c2.tar.gz
glibc-f1c5213d6908c00e42556e9ac910cf150029f4c2.tar.xz
glibc-f1c5213d6908c00e42556e9ac910cf150029f4c2.zip
* include/fcntl.h: Declare __libc_creat.
	* sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
	libhurduser-link.so-no-z-defs): New variables.

	* malloc/malloc.c: Revert last change.
	* malloc/malloc.h (_int_*): Move these decls to ...
	* include/malloc.h: ... here.  Add attribute_hidden.
	(_int_valloc): Declare it too.
Diffstat (limited to 'include/malloc.h')
-rw-r--r--include/malloc.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/malloc.h b/include/malloc.h
index eb2afb9330..f0164a6273 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -8,4 +8,21 @@
 /* Nonzero if the malloc is already initialized.  */
 extern int __malloc_initialized attribute_hidden;
 
+/* Internal routines, operating on "arenas".  */
+struct malloc_state;
+typedef struct malloc_state *mstate;
+
+extern mstate         _int_new_arena (size_t __ini_size) attribute_hidden;
+extern __malloc_ptr_t _int_malloc (mstate __m, size_t __size) attribute_hidden;
+extern void           _int_free (mstate __m, __malloc_ptr_t __ptr)
+     attribute_hidden;
+extern __malloc_ptr_t _int_realloc (mstate __m,
+				    __malloc_ptr_t __ptr,
+				    size_t __size) attribute_hidden;
+extern __malloc_ptr_t _int_memalign (mstate __m, size_t __alignment,
+				     size_t __size)
+     attribute_hidden;
+extern __malloc_ptr_t _int_valloc (mstate __m, size_t __size)
+     attribute_hidden;
+
 #endif