OSDN Git Service

hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing...
[uclinux-h8/uClibc.git] / libc / stdlib / malloc / malloc.h
index 37afe72..9360eec 100644 (file)
 /* The alignment we guarantee for malloc return values.  */
 #define MALLOC_ALIGNMENT       (sizeof (double))
 
-/* The system pagesize we assume; we really ought to get it with
-   getpagesize, but gee, how annoying.  */
-#define MALLOC_PAGE_SIZE       4096
+/* The system pagesize... */
+extern size_t __pagesize;
+libc_hidden_proto(__pagesize)
+#define MALLOC_PAGE_SIZE       __pagesize
 
 /* The minimum size of block we request from the the system to extend the
    heap for small allocations (we may request a bigger block if necessary to
@@ -79,6 +80,8 @@ extern struct heap __malloc_mmb_heap;
    to stderr, when the variable __malloc_mmb_debug is set to true. */
 #ifdef MALLOC_MMB_DEBUGGING
 # include <stdio.h>
+extern int __putc(int c, FILE *stream) attribute_hidden;
+
 extern int __malloc_mmb_debug;
 # define MALLOC_MMB_DEBUG(indent, fmt, args...)                                      \
    (__malloc_mmb_debug ? __malloc_debug_printf (indent, fmt , ##args) : 0)