mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 17:06:29 +00:00
- Add BGET (public domain heap implementation).
svn path=/trunk/; revision=31756
This commit is contained in:
parent
0165cc9725
commit
56ed86bd5b
|
@ -51,6 +51,7 @@
|
|||
<file>reactos.c</file>
|
||||
</directory>
|
||||
<directory name="rtl">
|
||||
<file>bget.c</file>
|
||||
<file>libsupp.c</file>
|
||||
</directory>
|
||||
<directory name="ui">
|
||||
|
|
30
reactos/boot/freeldr/freeldr/include/bget.h
Normal file
30
reactos/boot/freeldr/freeldr/include/bget.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
|
||||
Interface definitions for bget.c, the memory management package.
|
||||
|
||||
*/
|
||||
|
||||
#ifndef _
|
||||
#ifdef PROTOTYPES
|
||||
#define _(x) x /* If compiler knows prototypes */
|
||||
#else
|
||||
#define _(x) () /* It it doesn't */
|
||||
#endif /* PROTOTYPES */
|
||||
#endif
|
||||
|
||||
typedef long bufsize;
|
||||
void bpool _((void *buffer, bufsize len));
|
||||
void *bget _((bufsize size));
|
||||
void *bgetz _((bufsize size));
|
||||
void *bgetr _((void *buffer, bufsize newsize));
|
||||
void brel _((void *buf));
|
||||
void bectl _((int (*compact)(bufsize sizereq, int sequence),
|
||||
void *(*acquire)(bufsize size),
|
||||
void (*release)(void *buf), bufsize pool_incr));
|
||||
void bstats _((bufsize *curalloc, bufsize *totfree, bufsize *maxfree,
|
||||
long *nget, long *nrel));
|
||||
void bstatse _((bufsize *pool_incr, long *npool, long *npget,
|
||||
long *nprel, long *ndget, long *ndrel));
|
||||
void bufdump _((void *buf));
|
||||
void bpoold _((void *pool, int dumpalloc, int dumpfree));
|
||||
int bpoolv _((void *pool));
|
1593
reactos/boot/freeldr/freeldr/rtl/bget.c
Normal file
1593
reactos/boot/freeldr/freeldr/rtl/bget.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue