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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 int ki_remove(const char* path); | 100 int ki_remove(const char* path); |
101 int ki_unlink(const char* path); | 101 int ki_unlink(const char* path); |
102 int ki_truncate(const char* path, off_t length); | 102 int ki_truncate(const char* path, off_t length); |
103 int ki_lstat(const char* path, struct stat* buf); | 103 int ki_lstat(const char* path, struct stat* buf); |
104 int ki_link(const char* oldpath, const char* newpath); | 104 int ki_link(const char* oldpath, const char* newpath); |
105 int ki_rename(const char* oldpath, const char* newpath); | 105 int ki_rename(const char* oldpath, const char* newpath); |
106 int ki_symlink(const char* oldpath, const char* newpath); | 106 int ki_symlink(const char* oldpath, const char* newpath); |
107 int ki_access(const char* path, int amode); | 107 int ki_access(const char* path, int amode); |
108 int ki_readlink(const char* path, char* buf, size_t count); | 108 int ki_readlink(const char* path, char* buf, size_t count); |
109 int ki_utimes(const char* path, const struct timeval times[2]); | 109 int ki_utimes(const char* path, const struct timeval times[2]); |
| 110 int ki_futimes(int fd, const struct timeval times[2]); |
110 void* ki_mmap(void* addr, | 111 void* ki_mmap(void* addr, |
111 size_t length, | 112 size_t length, |
112 int prot, | 113 int prot, |
113 int flags, | 114 int flags, |
114 int fd, | 115 int fd, |
115 off_t offset); | 116 off_t offset); |
116 int ki_munmap(void* addr, size_t length); | 117 int ki_munmap(void* addr, size_t length); |
117 int ki_open_resource(const char* file); | 118 int ki_open_resource(const char* file); |
118 int ki_fcntl(int d, int request, va_list args); | 119 int ki_fcntl(int d, int request, va_list args); |
119 int ki_ioctl(int d, int request, va_list args); | 120 int ki_ioctl(int d, int request, va_list args); |
120 int ki_chown(const char* path, uid_t owner, gid_t group); | 121 int ki_chown(const char* path, uid_t owner, gid_t group); |
121 int ki_fchown(int fd, uid_t owner, gid_t group); | 122 int ki_fchown(int fd, uid_t owner, gid_t group); |
122 int ki_lchown(const char* path, uid_t owner, gid_t group); | 123 int ki_lchown(const char* path, uid_t owner, gid_t group); |
123 int ki_utime(const char* filename, const struct utimbuf* times); | 124 int ki_utime(const char* filename, const struct utimbuf* times); |
| 125 int ki_futimens(int fd, const struct timespec times[2]); |
124 | 126 |
125 int ki_poll(struct pollfd* fds, nfds_t nfds, int timeout); | 127 int ki_poll(struct pollfd* fds, nfds_t nfds, int timeout); |
126 int ki_select(int nfds, | 128 int ki_select(int nfds, |
127 fd_set* readfds, | 129 fd_set* readfds, |
128 fd_set* writefds, | 130 fd_set* writefds, |
129 fd_set* exceptfds, | 131 fd_set* exceptfds, |
130 struct timeval* timeout); | 132 struct timeval* timeout); |
131 | 133 |
132 int ki_tcflush(int fd, int queue_selector); | 134 int ki_tcflush(int fd, int queue_selector); |
133 int ki_tcgetattr(int fd, struct termios* termios_p); | 135 int ki_tcgetattr(int fd, struct termios* termios_p); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 const void* optval, | 189 const void* optval, |
188 socklen_t len); | 190 socklen_t len); |
189 int ki_shutdown(int fd, int how); | 191 int ki_shutdown(int fd, int how); |
190 int ki_socket(int domain, int type, int protocol); | 192 int ki_socket(int domain, int type, int protocol); |
191 int ki_socketpair(int domain, int type, int protocl, int* sv); | 193 int ki_socketpair(int domain, int type, int protocl, int* sv); |
192 #endif /* PROVIDES_SOCKET_API */ | 194 #endif /* PROVIDES_SOCKET_API */ |
193 | 195 |
194 EXTERN_C_END | 196 EXTERN_C_END |
195 | 197 |
196 #endif /* LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ */ | 198 #endif /* LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ */ |
OLD | NEW |