Personal tools
You are here: Home Projects C++ Cfront releases Release 1.0 Source cfront incl malloc.h
Document Actions

malloc.h

by Paul McJones last modified 2007-02-02 09:31

Click here to get the file

Size 1.1 kB - File type text/x-chdr

File contents

/* @(#) malloc.h 1.2 1/27/86 17:46:48 */
/*ident	"@(#)cfront:incl/malloc.h	1.2"*/

/*
	Constants defining mallopt operations
*/
#define M_MXFAST	1	/* set size of blocks to be fast */
#define M_NLBLKS	2	/* set number of block in a holding block */
#define M_GRAIN		3	/* set number of sizes mapped to one, for
				   small blocks */
#define M_KEEP		4	/* retain contents of block after a free until
				   another allocation */
/*
	structure filled by 
*/
struct mallinfo  {
	int arena;	/* total space in arena */
	int ordblks;	/* number of ordinary blocks */
	int smblks;	/* number of small blocks */
	int hblks;	/* number of holding blocks */
	int hblkhd;	/* space in holding block headers */
	int usmblks;	/* space in small blocks in use */
	int fsmblks;	/* space in free small blocks */
	int uordblks;	/* space in ordinary blocks in use */
	int fordblks;	/* space in free ordinary blocks */
	int keepcost;	/* cost of enabling keep option */
};	

extern char *malloc(unsigned);
extern void free(char*);
extern char *realloc(char*, unsigned);
extern int mallopt(int, int);
extern mallinfo mallinfo(int);
extern char *calloc (unsigned, unsigned);
« April 2024 »
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: