blob: b03f9b426d2f2061cc97856760c7575d1872e8c2 (
plain)
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
31
32
|
#ifndef _MALLOC_H
#define _MALLOC_H
#ifdef __cplusplus
extern "C" {
#endif
#include <bits/size_t.h>
#include <mlibc-config.h>
#ifndef __MLIBC_ABI_ONLY
// [7.22.3] Memory management functions
void *calloc(size_t count, size_t size);
void free(void *pointer);
void *malloc(size_t size);
void *realloc(void *pointer, size_t size);
void *memalign(size_t, size_t);
#if __MLIBC_GLIBC_OPTION
#include <bits/glibc/glibc_malloc.h>
#endif
#endif /* !__MLIBC_ABI_ONLY */
#ifdef __cplusplus
}
#endif
#endif // _MALLOC_H
|