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 <ppapi/c/ppb.h> | 8 #include <ppapi/c/ppb.h> |
9 #include <ppapi/c/pp_instance.h> | 9 #include <ppapi/c/pp_instance.h> |
10 #include "nacl_io/ostypes.h" | 10 #include "nacl_io/ostypes.h" |
11 #include "utils/macros.h" | 11 #include "sdk_util/macros.h" |
12 | 12 |
13 EXTERN_C_BEGIN | 13 EXTERN_C_BEGIN |
14 | 14 |
15 // The kernel intercept module provides a C->C++ thunk between the libc | 15 // The kernel intercept module provides a C->C++ thunk between the libc |
16 // kernel calls and the KernelProxy singleton. | 16 // kernel calls and the KernelProxy singleton. |
17 | 17 |
18 // ki_init must be called with an uninitialized KernelProxy object. Calling | 18 // ki_init must be called with an uninitialized KernelProxy object. Calling |
19 // with NULL will instantiate a default kernel proxy object. ki_init must | 19 // with NULL will instantiate a default kernel proxy object. ki_init must |
20 // be called before any other ki_XXX function can be used. | 20 // be called before any other ki_XXX function can be used. |
21 void ki_init(void* kernel_proxy); | 21 void ki_init(void* kernel_proxy); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 int ki_symlink(const char* oldpath, const char* newpath); | 54 int ki_symlink(const char* oldpath, const char* newpath); |
55 void* ki_mmap(void* addr, size_t length, int prot, int flags, int fd, | 55 void* ki_mmap(void* addr, size_t length, int prot, int flags, int fd, |
56 off_t offset); | 56 off_t offset); |
57 int ki_munmap(void* addr, size_t length); | 57 int ki_munmap(void* addr, size_t length); |
58 int ki_open_resource(const char* file); | 58 int ki_open_resource(const char* file); |
59 | 59 |
60 EXTERN_C_END | 60 EXTERN_C_END |
61 | 61 |
62 #endif // LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ | 62 #endif // LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ |
63 | 63 |
OLD | NEW |