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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 int ki_fchmod(int fd, mode_t mode); | 78 int ki_fchmod(int fd, mode_t mode); |
79 int ki_stat(const char* path, struct stat* buf); | 79 int ki_stat(const char* path, struct stat* buf); |
80 int ki_mkdir(const char* path, mode_t mode); | 80 int ki_mkdir(const char* path, mode_t mode); |
81 int ki_rmdir(const char* path); | 81 int ki_rmdir(const char* path); |
82 int ki_mount(const char* source, | 82 int ki_mount(const char* source, |
83 const char* target, | 83 const char* target, |
84 const char* filesystemtype, | 84 const char* filesystemtype, |
85 unsigned long mountflags, | 85 unsigned long mountflags, |
86 const void* data); | 86 const void* data); |
87 int ki_umount(const char* path); | 87 int ki_umount(const char* path); |
88 int ki_open(const char* path, int oflag); | 88 int ki_open(const char* path, int oflag, mode_t mode); |
89 int ki_pipe(int pipefds[2]); | 89 int ki_pipe(int pipefds[2]); |
90 ssize_t ki_read(int fd, void* buf, size_t nbyte); | 90 ssize_t ki_read(int fd, void* buf, size_t nbyte); |
91 ssize_t ki_write(int fd, const void* buf, size_t nbyte); | 91 ssize_t ki_write(int fd, const void* buf, size_t nbyte); |
92 int ki_fstat(int fd, struct stat* buf); | 92 int ki_fstat(int fd, struct stat* buf); |
93 int ki_getdents(int fd, void* buf, unsigned int count); | 93 int ki_getdents(int fd, void* buf, unsigned int count); |
94 int ki_fsync(int fd); | 94 int ki_fsync(int fd); |
95 int ki_fdatasync(int fd); | 95 int ki_fdatasync(int fd); |
96 int ki_ftruncate(int fd, off_t length); | 96 int ki_ftruncate(int fd, off_t length); |
97 int ki_isatty(int fd); | 97 int ki_isatty(int fd); |
98 int ki_close(int fd); | 98 int ki_close(int fd); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 const void* optval, | 187 const void* optval, |
188 socklen_t len); | 188 socklen_t len); |
189 int ki_shutdown(int fd, int how); | 189 int ki_shutdown(int fd, int how); |
190 int ki_socket(int domain, int type, int protocol); | 190 int ki_socket(int domain, int type, int protocol); |
191 int ki_socketpair(int domain, int type, int protocl, int* sv); | 191 int ki_socketpair(int domain, int type, int protocl, int* sv); |
192 #endif /* PROVIDES_SOCKET_API */ | 192 #endif /* PROVIDES_SOCKET_API */ |
193 | 193 |
194 EXTERN_C_END | 194 EXTERN_C_END |
195 | 195 |
196 #endif /* LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ */ | 196 #endif /* LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ */ |
OLD | NEW |