7 # include <sys/types.h> /* for size_t */
8 # include <stdio.h> /* for NULL */
13 /* Allocate SIZE bytes of memory. */
15 extern PTR mmalloc
PARAMS ((PTR
, size_t));
17 /* Re-allocate the previously allocated block in PTR, making the new block
20 extern PTR mrealloc
PARAMS ((PTR
, PTR
, size_t));
22 /* Allocate NMEMB elements of SIZE bytes each, all initialized to 0. */
24 extern PTR mcalloc
PARAMS ((PTR
, size_t, size_t));
26 /* Free a block allocated by `mmalloc', `mrealloc' or `mcalloc'. */
28 extern void mfree
PARAMS ((PTR
, PTR
));
30 /* Allocate SIZE bytes allocated to ALIGNMENT bytes. */
32 extern PTR mmemalign
PARAMS ((PTR
, size_t, size_t));
34 /* Allocate SIZE bytes on a page boundary. */
36 extern PTR mvalloc
PARAMS ((PTR
, size_t));
38 /* Activate a standard collection of debugging hooks. */
40 extern int mmcheck
PARAMS ((PTR
, void (*) (void)));
42 extern int mmcheckf
PARAMS ((PTR
, void (*) (void), int));
44 /* Pick up the current statistics. (see FIXME elsewhere) */
46 extern struct mstats mmstats
PARAMS ((PTR
));
48 extern PTR mmalloc_attach
PARAMS ((int, PTR
));
50 extern PTR mmalloc_detach
PARAMS ((PTR
));
52 extern int mmalloc_setkey
PARAMS ((PTR
, int, PTR
));
54 extern PTR mmalloc_getkey
PARAMS ((PTR
, int));
56 extern int mmalloc_errno
PARAMS ((PTR
));
58 extern int mmtrace
PARAMS ((void));
60 extern PTR mmalloc_findbase
PARAMS ((int));
62 #endif /* MMALLOC_H */
This page took 0.037296 seconds and 4 git commands to generate.