vfs: check userland buffers before reading them.
[haiku.git] / headers / posix / alloca.h
blobdfe8f0d18057bbd7572c01b40dc335087b9b49dd
1 /*
2 * Copyright 2003-2012 Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _ALLOCA_H
6 #define _ALLOCA_H
9 #include <sys/types.h>
12 #undef __alloca
13 #undef alloca
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
19 extern void * __alloca (size_t __size);
20 extern void * alloca (size_t __size);
22 #ifdef __cplusplus
24 #endif
26 #define __alloca(size) __builtin_alloca (size)
27 #define alloca(size) __alloca (size)
29 #endif /* _ALLOCA_H */