OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 /* | 6 /* |
7 * TODO(bradchen): figure out where to move this include file and then | 7 * TODO(bradchen): figure out where to move this include file and then |
8 * move it. | 8 * move it. |
9 */ | 9 */ |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 typedef int (*TYPE_nacl_write) (int desc, void const *buf, size_t count); | 69 typedef int (*TYPE_nacl_write) (int desc, void const *buf, size_t count); |
70 | 70 |
71 typedef int (*TYPE_nacl_open) (char const *pathname, int flags, mode_t mode); | 71 typedef int (*TYPE_nacl_open) (char const *pathname, int flags, mode_t mode); |
72 | 72 |
73 typedef int (*TYPE_nacl_lseek) (int desc, | 73 typedef int (*TYPE_nacl_lseek) (int desc, |
74 off_t *offset, /* 64 bit value */ | 74 off_t *offset, /* 64 bit value */ |
75 int whence); | 75 int whence); |
76 | 76 |
77 typedef int (*TYPE_nacl_stat) (const char *file, struct stat *st); | 77 typedef int (*TYPE_nacl_stat) (const char *file, struct stat *st); |
78 | 78 |
| 79 typedef int (*TYPE_nacl_fchdir) (int fd); |
| 80 |
| 81 typedef int (*TYPE_nacl_fchmod) (int fd, mode_t mode); |
| 82 |
| 83 typedef int (*TYPE_nacl_fsync) (int fd); |
| 84 |
| 85 typedef int (*TYPE_nacl_fdatasync) (int fd); |
| 86 |
| 87 typedef int (*TYPE_nacl_ftruncate) (int fd, off_t length); |
| 88 |
| 89 typedef int (*TYPE_nacl_truncate) (const char *pathname, off_t length); |
| 90 |
| 91 typedef int (*TYPE_nacl_lstat) (const char *pathname, struct stat *); |
| 92 |
| 93 typedef int (*TYPE_nacl_link) (const char *oldpath, const char *newpath); |
| 94 |
| 95 typedef int (*TYPE_nacl_chmod) (const char *path, mode_t mode); |
| 96 |
| 97 typedef int (*TYPE_nacl_access) (const char *path, int amode); |
| 98 |
| 99 typedef int (*TYPE_nacl_rename) (const char *oldpath, const char *newpath); |
| 100 |
| 101 typedef int (*TYPE_nacl_readlink) (const char *path, char *buf, size_t bufsiz); |
| 102 |
| 103 typedef int (*TYPE_nacl_symlink) (const char *oldpath, const char *newpath); |
| 104 |
| 105 typedef int (*TYPE_nacl_utimes) (const char *filename, |
| 106 const struct timeval *times); |
| 107 |
79 /* ============================================================ */ | 108 /* ============================================================ */ |
80 /* imc */ | 109 /* imc */ |
81 /* ============================================================ */ | 110 /* ============================================================ */ |
82 | 111 |
83 typedef int (*TYPE_nacl_imc_recvmsg) (int desc, | 112 typedef int (*TYPE_nacl_imc_recvmsg) (int desc, |
84 struct NaClAbiNaClImcMsgHdr *nmhp, | 113 struct NaClAbiNaClImcMsgHdr *nmhp, |
85 int flags); | 114 int flags); |
86 typedef int (*TYPE_nacl_imc_sendmsg) (int desc, | 115 typedef int (*TYPE_nacl_imc_sendmsg) (int desc, |
87 struct NaClAbiNaClImcMsgHdr const *nmhp, | 116 struct NaClAbiNaClImcMsgHdr const *nmhp, |
88 int flags); | 117 int flags); |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 254 |
226 typedef int (*TYPE_nacl_test_infoleak) (void); | 255 typedef int (*TYPE_nacl_test_infoleak) (void); |
227 | 256 |
228 typedef int (*TYPE_nacl_test_crash) (int crash_type); | 257 typedef int (*TYPE_nacl_test_crash) (int crash_type); |
229 | 258 |
230 #if defined(__cplusplus) | 259 #if defined(__cplusplus) |
231 } | 260 } |
232 #endif | 261 #endif |
233 | 262 |
234 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_NACL_SYSCALL_BINDINGS_TRAMPOLINE_H */ | 263 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_NACL_SYSCALL_BINDINGS_TRAMPOLINE_H */ |
OLD | NEW |