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 <stdarg.h> | 8 #include <stdarg.h> |
9 #include <sys/time.h> | 9 #include <sys/time.h> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 * ki_init_interface() is a variant of ki_init() that can be called with | 58 * ki_init_interface() is a variant of ki_init() that can be called with |
59 * a PepperInterface object. | 59 * a PepperInterface object. |
60 */ | 60 */ |
61 int ki_init_interface(void* kernel_proxy, void* pepper_interface); | 61 int ki_init_interface(void* kernel_proxy, void* pepper_interface); |
62 | 62 |
63 #ifdef __cplusplus | 63 #ifdef __cplusplus |
64 nacl_io::KernelProxy* ki_get_proxy(); | 64 nacl_io::KernelProxy* ki_get_proxy(); |
65 #endif | 65 #endif |
66 | 66 |
67 int ki_is_initialized(void); | 67 int ki_is_initialized(void); |
68 void ki_uninit(void); | 68 int ki_uninit(void); |
69 | 69 |
70 int ki_chdir(const char* path); | 70 int ki_chdir(const char* path); |
71 void ki_exit(int status); | 71 void ki_exit(int status); |
72 char* ki_getcwd(char* buf, size_t size); | 72 char* ki_getcwd(char* buf, size_t size); |
73 char* ki_getwd(char* buf); | 73 char* ki_getwd(char* buf); |
74 int ki_dup(int oldfd); | 74 int ki_dup(int oldfd); |
75 int ki_dup2(int oldfd, int newfd); | 75 int ki_dup2(int oldfd, int newfd); |
76 int ki_chmod(const char* path, mode_t mode); | 76 int ki_chmod(const char* path, mode_t mode); |
77 int ki_fchdir(int fd); | 77 int ki_fchdir(int fd); |
78 int ki_fchmod(int fd, mode_t mode); | 78 int ki_fchmod(int fd, mode_t mode); |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 const void* optval, | 189 const void* optval, |
190 socklen_t len); | 190 socklen_t len); |
191 int ki_shutdown(int fd, int how); | 191 int ki_shutdown(int fd, int how); |
192 int ki_socket(int domain, int type, int protocol); | 192 int ki_socket(int domain, int type, int protocol); |
193 int ki_socketpair(int domain, int type, int protocl, int* sv); | 193 int ki_socketpair(int domain, int type, int protocl, int* sv); |
194 #endif /* PROVIDES_SOCKET_API */ | 194 #endif /* PROVIDES_SOCKET_API */ |
195 | 195 |
196 EXTERN_C_END | 196 EXTERN_C_END |
197 | 197 |
198 #endif /* LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ */ | 198 #endif /* LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ */ |
OLD | NEW |