PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
alloc.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
16
#ifndef __ALLOC_H__
17
#define __ALLOC_H__
18
19
#include <types.h>
20
#include <
irx.h
>
21
22
extern
void
* malloc(
size_t
size);
23
extern
void
* realloc(
void
* ptr,
size_t
size);
24
extern
void
free(
void
* ptr);
25
extern
void
* calloc(
size_t
n,
size_t
size);
26
extern
void
* memalign(
size_t
align,
size_t
size);
27
extern
void
* __mem_walk_begin();
28
extern
void
__mem_walk_read(
void
* token, u32 * size,
void
** ptr,
int
* valid);
29
extern
void
* __mem_walk_inc(
void
* token);
30
extern
int
__mem_walk_end(
void
* token);
31
32
#define alloc_IMPORTS_start DECLARE_IMPORT_TABLE(alloc, 1, 1)
33
#define alloc_IMPORTS_end END_IMPORT_TABLE
34
35
#define I_malloc DECLARE_IMPORT(4, malloc)
36
#define I_realloc DECLARE_IMPORT(5, realloc)
37
#define I_free DECLARE_IMPORT(6, free)
38
#define I_calloc DECLARE_IMPORT(7, calloc)
39
#define I_memalign DECLARE_IMPORT(8, memalign)
40
#define I___mem_walk_begin DECLARE_IMPORT(9, __mem_walk_begin)
41
#define I___mem_walk_read DECLARE_IMPORT(10, __mem_walk_read)
42
#define I___mem_walk_inc DECLARE_IMPORT(11, __mem_walk_inc)
43
#define I___mem_walk_end DECLARE_IMPORT(12, __mem_walk_end)
44
45
#endif
/* __ALLOC_H__ */
irx.h
iop
system
alloc
include
alloc.h
Generated on Tue Feb 11 2025 21:35:59 for PS2SDK by
1.12.0