OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [mmalloc/] [mmalloc.h] - Diff between revs 1181 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 1181 Rev 1765
#ifndef MMALLOC_H
#ifndef MMALLOC_H
#define MMALLOC_H 1
#define MMALLOC_H 1
 
 
#ifdef HAVE_STDDEF_H
#ifdef HAVE_STDDEF_H
#  include <stddef.h>
#  include <stddef.h>
#else
#else
#  include <sys/types.h>   /* for size_t */
#  include <sys/types.h>   /* for size_t */
#  include <stdio.h>       /* for NULL */
#  include <stdio.h>       /* for NULL */
#endif
#endif
 
 
#include "ansidecl.h"
#include "ansidecl.h"
 
 
/* Allocate SIZE bytes of memory.  */
/* Allocate SIZE bytes of memory.  */
 
 
extern PTR mmalloc PARAMS ((PTR, size_t));
extern PTR mmalloc PARAMS ((PTR, size_t));
 
 
/* Re-allocate the previously allocated block in PTR, making the new block
/* Re-allocate the previously allocated block in PTR, making the new block
   SIZE bytes long.  */
   SIZE bytes long.  */
 
 
extern PTR mrealloc PARAMS ((PTR, PTR, size_t));
extern PTR mrealloc PARAMS ((PTR, PTR, size_t));
 
 
/* Allocate NMEMB elements of SIZE bytes each, all initialized to 0.  */
/* Allocate NMEMB elements of SIZE bytes each, all initialized to 0.  */
 
 
extern PTR mcalloc PARAMS ((PTR, size_t, size_t));
extern PTR mcalloc PARAMS ((PTR, size_t, size_t));
 
 
/* Free a block allocated by `mmalloc', `mrealloc' or `mcalloc'.  */
/* Free a block allocated by `mmalloc', `mrealloc' or `mcalloc'.  */
 
 
extern void mfree PARAMS ((PTR, PTR));
extern void mfree PARAMS ((PTR, PTR));
 
 
/* Allocate SIZE bytes allocated to ALIGNMENT bytes.  */
/* Allocate SIZE bytes allocated to ALIGNMENT bytes.  */
 
 
extern PTR mmemalign PARAMS ((PTR, size_t, size_t));
extern PTR mmemalign PARAMS ((PTR, size_t, size_t));
 
 
/* Allocate SIZE bytes on a page boundary.  */
/* Allocate SIZE bytes on a page boundary.  */
 
 
extern PTR mvalloc PARAMS ((PTR, size_t));
extern PTR mvalloc PARAMS ((PTR, size_t));
 
 
/* Activate a standard collection of debugging hooks.  */
/* Activate a standard collection of debugging hooks.  */
 
 
extern int mmcheck PARAMS ((PTR, void (*) (void)));
extern int mmcheck PARAMS ((PTR, void (*) (void)));
 
 
extern int mmcheckf PARAMS ((PTR, void (*) (void), int));
extern int mmcheckf PARAMS ((PTR, void (*) (void), int));
 
 
/* Pick up the current statistics. (see FIXME elsewhere) */
/* Pick up the current statistics. (see FIXME elsewhere) */
 
 
extern struct mstats mmstats PARAMS ((PTR));
extern struct mstats mmstats PARAMS ((PTR));
 
 
extern PTR mmalloc_attach PARAMS ((int, PTR));
extern PTR mmalloc_attach PARAMS ((int, PTR));
 
 
extern PTR mmalloc_detach PARAMS ((PTR));
extern PTR mmalloc_detach PARAMS ((PTR));
 
 
extern int mmalloc_setkey PARAMS ((PTR, int, PTR));
extern int mmalloc_setkey PARAMS ((PTR, int, PTR));
 
 
extern PTR mmalloc_getkey PARAMS ((PTR, int));
extern PTR mmalloc_getkey PARAMS ((PTR, int));
 
 
extern int mmalloc_errno PARAMS ((PTR));
extern int mmalloc_errno PARAMS ((PTR));
 
 
extern int mmtrace PARAMS ((void));
extern int mmtrace PARAMS ((void));
 
 
extern PTR mmalloc_findbase PARAMS ((int));
extern PTR mmalloc_findbase PARAMS ((int));
 
 
#endif  /* MMALLOC_H */
#endif  /* MMALLOC_H */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.