OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
4 | 4 |
5 #ifndef LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ | 5 #ifndef LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ |
6 #define LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ | 6 #define LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ |
7 | 7 |
8 #include <dirent.h> | 8 #include <dirent.h> |
9 #include <stdarg.h> | 9 #include <stdarg.h> |
10 #include <sys/time.h> | 10 #include <sys/time.h> |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "sdk_util/macros.h" | 21 #include "sdk_util/macros.h" |
22 | 22 |
23 EXTERN_C_BEGIN | 23 EXTERN_C_BEGIN |
24 | 24 |
25 #ifdef __cplusplus | 25 #ifdef __cplusplus |
26 namespace nacl_io { | 26 namespace nacl_io { |
27 class KernelProxy; | 27 class KernelProxy; |
28 } | 28 } |
29 #endif | 29 #endif |
30 | 30 |
31 struct fuse_operations; | |
32 | |
33 /* | 31 /* |
34 * The kernel intercept module provides a C->C++ thunk between the libc | 32 * The kernel intercept module provides a C->C++ thunk between the libc |
35 * kernel calls and the KernelProxy singleton. | 33 * kernel calls and the KernelProxy singleton. |
36 */ | 34 */ |
37 | 35 |
38 /* | 36 /* |
39 * ki_init must be called with an uninitialized KernelProxy object. Calling | 37 * ki_init must be called with an uninitialized KernelProxy object. Calling |
40 * with NULL will instantiate a default kernel proxy object. ki_init must | 38 * with NULL will instantiate a default kernel proxy object. ki_init must |
41 * be called before any other ki_XXX function can be used. | 39 * be called before any other ki_XXX function can be used. |
42 */ | 40 */ |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 const void* optval, | 189 const void* optval, |
192 socklen_t len); | 190 socklen_t len); |
193 int ki_shutdown(int fd, int how); | 191 int ki_shutdown(int fd, int how); |
194 int ki_socket(int domain, int type, int protocol); | 192 int ki_socket(int domain, int type, int protocol); |
195 int ki_socketpair(int domain, int type, int protocl, int* sv); | 193 int ki_socketpair(int domain, int type, int protocl, int* sv); |
196 #endif /* PROVIDES_SOCKET_API */ | 194 #endif /* PROVIDES_SOCKET_API */ |
197 | 195 |
198 EXTERN_C_END | 196 EXTERN_C_END |
199 | 197 |
200 #endif /* LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ */ | 198 #endif /* LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ */ |
OLD | NEW |