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