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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 __sysret = _expr; \ | 55 __sysret = _expr; \ |
56 IRT_post_irtcall_hook(); \ | 56 IRT_post_irtcall_hook(); \ |
57 __sysret; \ | 57 __sysret; \ |
58 }) | 58 }) |
59 #endif | 59 #endif |
60 | 60 |
61 /* ============================================================ */ | 61 /* ============================================================ */ |
62 /* files */ | 62 /* files */ |
63 /* ============================================================ */ | 63 /* ============================================================ */ |
64 | 64 |
65 typedef int (*TYPE_nacl_nameservice)(int *desc_in_out); | |
66 | |
67 typedef int (*TYPE_nacl_dup)(int oldfd); | 65 typedef int (*TYPE_nacl_dup)(int oldfd); |
68 | 66 |
69 typedef int (*TYPE_nacl_dup2)(int oldfd, int newfd); | 67 typedef int (*TYPE_nacl_dup2)(int oldfd, int newfd); |
70 | 68 |
71 typedef int (*TYPE_nacl_read) (int desc, void *buf, size_t count); | 69 typedef int (*TYPE_nacl_read) (int desc, void *buf, size_t count); |
72 | 70 |
73 typedef int (*TYPE_nacl_close) (int desc); | 71 typedef int (*TYPE_nacl_close) (int desc); |
74 | 72 |
75 typedef int (*TYPE_nacl_fstat) (int fd, struct stat *stbp); | 73 typedef int (*TYPE_nacl_fstat) (int fd, struct stat *stbp); |
76 | 74 |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 | 264 |
267 typedef int (*TYPE_nacl_futex_wake) (volatile int *addr, int nwake); | 265 typedef int (*TYPE_nacl_futex_wake) (volatile int *addr, int nwake); |
268 | 266 |
269 typedef int (*TYPE_nacl_get_random_bytes) (void *buf, size_t buf_size); | 267 typedef int (*TYPE_nacl_get_random_bytes) (void *buf, size_t buf_size); |
270 | 268 |
271 #if defined(__cplusplus) | 269 #if defined(__cplusplus) |
272 } | 270 } |
273 #endif | 271 #endif |
274 | 272 |
275 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_NACL_SYSCALL_BINDINGS_TRAMPOLINE_H */ | 273 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_NACL_SYSCALL_BINDINGS_TRAMPOLINE_H */ |
OLD | NEW |