| 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_MOUNTS_KERNEL_INTERCEPT_H_ | 5 #ifndef LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ |
| 6 #define LIBRARIES_NACL_MOUNTS_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_mounts/ostypes.h" | 10 #include "nacl_io/ostypes.h" |
| 11 #include "utils/macros.h" | 11 #include "utils/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. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 47 int ki_close(int fd); | 47 int ki_close(int fd); |
| 48 off_t ki_lseek(int fd, off_t offset, int whence); | 48 off_t ki_lseek(int fd, off_t offset, int whence); |
| 49 int ki_remove(const char* path); | 49 int ki_remove(const char* path); |
| 50 int ki_unlink(const char* path); | 50 int ki_unlink(const char* path); |
| 51 int ki_access(const char* path, int amode); | 51 int ki_access(const char* path, int amode); |
| 52 int ki_link(const char* oldpath, const char* newpath); | 52 int ki_link(const char* oldpath, const char* newpath); |
| 53 int ki_symlink(const char* oldpath, const char* newpath); | 53 int ki_symlink(const char* oldpath, const char* newpath); |
| 54 | 54 |
| 55 EXTERN_C_END | 55 EXTERN_C_END |
| 56 | 56 |
| 57 #endif // LIBRARIES_NACL_MOUNTS_KERNEL_INTERCEPT_H_ | 57 #endif // LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ |
| 58 | 58 |
| OLD | NEW |