4 /* FIXME: If <stddef.h> doesn't exist, you'll need to do something
5 to define size_t before including this file. Like upgrading
6 to a system with an ANSI C environment. */
14 /* Allocate SIZE bytes of memory. */
16 extern PTR mmalloc
PARAMS ((PTR
, size_t));
18 /* Re-allocate the previously allocated block in PTR, making the new block
21 extern PTR mrealloc
PARAMS ((PTR
, PTR
, size_t));
23 /* Allocate NMEMB elements of SIZE bytes each, all initialized to 0. */
25 extern PTR mcalloc
PARAMS ((PTR
, size_t, size_t));
27 /* Free a block allocated by `mmalloc', `mrealloc' or `mcalloc'. */
29 extern void mfree
PARAMS ((PTR
, PTR
));
31 /* Allocate SIZE bytes allocated to ALIGNMENT bytes. */
33 extern PTR mmemalign
PARAMS ((PTR
, size_t, size_t));
35 /* Allocate SIZE bytes on a page boundary. */
37 extern PTR mvalloc
PARAMS ((PTR
, size_t));
39 /* Activate a standard collection of debugging hooks. */
41 extern int mmcheck
PARAMS ((PTR
, void (*) (void)));
43 extern int mmcheckf
PARAMS ((PTR
, void (*) (void), int));
45 /* Pick up the current statistics. (see FIXME elsewhere) */
47 extern struct mstats mmstats
PARAMS ((PTR
));
49 extern PTR mmalloc_attach
PARAMS ((int, PTR
));
51 extern PTR mmalloc_detach
PARAMS ((PTR
));
53 extern int mmalloc_setkey
PARAMS ((PTR
, int, PTR
));
55 extern PTR mmalloc_getkey
PARAMS ((PTR
, int));
57 extern int mmalloc_errno
PARAMS ((PTR
));
59 extern int mmtrace
PARAMS ((void));
61 #endif /* MMALLOC_H */
This page took 0.029609 seconds and 4 git commands to generate.