vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / kernel / file_systems / btrfs / system_dependencies.h
blob9f3b2d5c28a9c5f7cdfb67a7450a3a46d537acbf
1 /*
2 * Copyright 2017, Chế Vũ Gia Hy, cvghy116@gmail.com.
3 * This file may be used under the terms of the MIT License.
4 */
5 #ifndef _SYSTEM_DEPENDENCIES_H
6 #define _SYSTEM_DEPENDENCIES_H
9 #ifdef FS_SHELL
11 // This needs to be included before the fs_shell wrapper
12 #include <zlib.h>
13 #include <new>
14 #include <util/AVLTree.h>
16 #include "fssh_api_wrapper.h"
17 #include "fssh_auto_deleter.h"
19 #else // !FS_SHELL
21 #include <AutoDeleter.h>
22 #include <util/kernel_cpp.h>
23 #include <util/AutoLock.h>
24 #include <util/SinglyLinkedList.h>
25 #include <util/Stack.h>
26 #include <util/AVLTree.h>
27 #include <sys/stat.h>
28 #include <sys/types.h>
29 #include <ByteOrder.h>
30 #include <fs_cache.h>
31 #include <fs_interface.h>
32 #include <fs_info.h>
33 #include <fs_volume.h>
34 #include <KernelExport.h>
35 #include <io_requests.h>
36 #include <NodeMonitor.h>
37 #include <SupportDefs.h>
38 #include <lock.h>
39 #include <errno.h>
40 #include <new>
41 #include <dirent.h>
42 #include <string.h>
43 #include <stdio.h>
44 #include <stdlib.h>
45 #include <unistd.h>
46 #include <zlib.h>
48 #endif // !FS_SHELL
51 #endif // _SYSTEM_DEPENDENCIES