vfs: check userland buffers before reading them.
[haiku.git] / headers / private / kernel / kernel_c++_structs.h
blob71819cba42ee6a9bc506a6610f230d9dc80c7eac
1 /*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _KERNEL_KERNEL_CPP_STRUCTS_H
6 #define _KERNEL_KERNEL_CPP_STRUCTS_H
9 #include <util/kernel_c.h>
11 #include <kernel_c++_struct_sizes.h>
12 // this is the generated defining macros for the structure sizes
15 // in C++ mode include the headers defining the structures
16 #ifdef __cplusplus
17 # include <condition_variable.h>
18 #endif
20 // in C mode define the structures
21 DEFINE_KERNEL_CPP_STRUCT(ConditionVariable)
24 #endif // _KERNEL_KERNEL_CPP_STRUCTS_H