xref: /haiku/headers/posix/malloc.h (revision 2600324b57fa31cdea1627d584d314f2a579c4a8)
1 /*
2  * Copyright 2002-2006, Haiku Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _MALLOC_H
6 #define _MALLOC_H
7 
8 
9 #include <unistd.h>
10 
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 extern void *malloc(size_t numBytes);
17 extern void *realloc(void *oldPointer, size_t newSize);
18 extern void *calloc(size_t numElements, size_t size);
19 extern void free(void *pointer);
20 extern void *memalign(size_t alignment, size_t numBytes);
21 extern void *valloc(size_t numBytes);
22 
23 #ifdef __cplusplus
24 }
25 #endif
26 
27 #endif /* _MALLOC_H */
28