| Line | |
|---|
| 1 | /* $Id: rmalloc.h,v 1.2 2000-01-24 01:44:08 bird Exp $
|
|---|
| 2 | *
|
|---|
| 3 | * Resident Heap.
|
|---|
| 4 | *
|
|---|
| 5 | * Note: This heap does very little checking on input.
|
|---|
| 6 | * Use with care! We're running at Ring-0!
|
|---|
| 7 | *
|
|---|
| 8 | * Copyright (c) 1999-2000 knut st. osmundsen
|
|---|
| 9 | *
|
|---|
| 10 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 11 | *
|
|---|
| 12 | */
|
|---|
| 13 |
|
|---|
| 14 | /* XLATOFF */
|
|---|
| 15 | #ifndef _RMALLOC_H_
|
|---|
| 16 | #define _RMALLOC_H_
|
|---|
| 17 |
|
|---|
| 18 | #ifdef __cplusplus
|
|---|
| 19 | extern "C" {
|
|---|
| 20 | #endif
|
|---|
| 21 | /* XLATON */
|
|---|
| 22 |
|
|---|
| 23 | /*******************************************************************************
|
|---|
| 24 | * Exported Functions and Variables *
|
|---|
| 25 | *******************************************************************************/
|
|---|
| 26 | int resHeapInit(unsigned, unsigned);
|
|---|
| 27 | void * rmalloc(unsigned);
|
|---|
| 28 | void * rrealloc(void *, unsigned);
|
|---|
| 29 | void rfree(void *);
|
|---|
| 30 |
|
|---|
| 31 | unsigned _res_msize(void *);
|
|---|
| 32 | int _res_validptr(void *);
|
|---|
| 33 | int _res_validptr2(void *, unsigned);
|
|---|
| 34 | unsigned _res_memfree(void);
|
|---|
| 35 | int _res_heap_check(void);
|
|---|
| 36 | void _res_heapmin(void);
|
|---|
| 37 | void _res_dump_subheaps(void);
|
|---|
| 38 | void _res_dump_allocated(unsigned);
|
|---|
| 39 |
|
|---|
| 40 | /* XLATOFF */
|
|---|
| 41 | #ifdef __cplusplus
|
|---|
| 42 | }
|
|---|
| 43 | #endif
|
|---|
| 44 | #endif /* _MALLOC_H_ */
|
|---|
| 45 | /* XLATON */
|
|---|
| 46 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.