Make UEFI boot-platform build again
[haiku.git] / headers / posix / malloc.h
blob7754038311eadb0115f5f92b1cb5345cbbe5137c
1 /*
2 * Copyright 2002-2012 Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _MALLOC_H
6 #define _MALLOC_H
9 #include <unistd.h>
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
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);
23 #ifdef _GNU_SOURCE
24 size_t malloc_usable_size(void *ptr);
25 #endif
27 #ifdef __cplusplus
29 #endif
31 #endif /* _MALLOC_H */