* configure.in: Add support for --enable-cgen-maint.
[deliverable/binutils-gdb.git] / mmalloc / mmalloc.h
CommitLineData
c93a17b7
JM
1#ifndef MMALLOC_H
2#define MMALLOC_H 1
9640d887 3
7f12eb53
FF
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. */
7
89097c5b 8#ifdef HAVE_STDDEF_H
7f12eb53 9# include <stddef.h>
9640d887
FF
10#endif
11
c93a17b7
JM
12#include "ansidecl.h"
13
9640d887
FF
14/* Allocate SIZE bytes of memory. */
15
16extern PTR mmalloc PARAMS ((PTR, size_t));
17
18/* Re-allocate the previously allocated block in PTR, making the new block
19 SIZE bytes long. */
20
21extern PTR mrealloc PARAMS ((PTR, PTR, size_t));
22
23/* Allocate NMEMB elements of SIZE bytes each, all initialized to 0. */
24
25extern PTR mcalloc PARAMS ((PTR, size_t, size_t));
26
27/* Free a block allocated by `mmalloc', `mrealloc' or `mcalloc'. */
28
29extern void mfree PARAMS ((PTR, PTR));
30
31/* Allocate SIZE bytes allocated to ALIGNMENT bytes. */
32
33extern PTR mmemalign PARAMS ((PTR, size_t, size_t));
34
35/* Allocate SIZE bytes on a page boundary. */
36
37extern PTR mvalloc PARAMS ((PTR, size_t));
38
39/* Activate a standard collection of debugging hooks. */
40
41extern int mmcheck PARAMS ((PTR, void (*) (void)));
42
7f12eb53
FF
43extern int mmcheckf PARAMS ((PTR, void (*) (void), int));
44
9640d887
FF
45/* Pick up the current statistics. (see FIXME elsewhere) */
46
47extern struct mstats mmstats PARAMS ((PTR));
48
c93a17b7 49extern PTR mmalloc_attach PARAMS ((int, PTR));
9640d887 50
c93a17b7 51extern PTR mmalloc_detach PARAMS ((PTR));
9640d887 52
c93a17b7 53extern int mmalloc_setkey PARAMS ((PTR, int, PTR));
9640d887 54
c93a17b7 55extern PTR mmalloc_getkey PARAMS ((PTR, int));
9640d887 56
c93a17b7 57extern int mmalloc_errno PARAMS ((PTR));
9640d887 58
7f12eb53
FF
59extern int mmtrace PARAMS ((void));
60
c93a17b7 61#endif /* MMALLOC_H */
This page took 0.204496 seconds and 4 git commands to generate.