| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 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 /* | 7 /* |
| 8 * NaCl kernel / service run-time system call numbers | 8 * NaCl kernel / service run-time system call numbers |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #define NACL_sys_fstat 17 | 43 #define NACL_sys_fstat 17 |
| 44 #define NACL_sys_chmod 18 | 44 #define NACL_sys_chmod 18 |
| 45 /* no fchmod emulation on windows */ | 45 /* no fchmod emulation on windows */ |
| 46 | 46 |
| 47 #define NACL_sys_sysbrk 20 | 47 #define NACL_sys_sysbrk 20 |
| 48 #define NACL_sys_mmap 21 | 48 #define NACL_sys_mmap 21 |
| 49 #define NACL_sys_munmap 22 | 49 #define NACL_sys_munmap 22 |
| 50 | 50 |
| 51 #define NACL_sys_getdents 23 | 51 #define NACL_sys_getdents 23 |
| 52 | 52 |
| 53 #define NACL_sys_mprotect 24 |
| 54 |
| 53 #define NACL_sys_exit 30 | 55 #define NACL_sys_exit 30 |
| 54 #define NACL_sys_getpid 31 | 56 #define NACL_sys_getpid 31 |
| 55 #define NACL_sys_sched_yield 32 | 57 #define NACL_sys_sched_yield 32 |
| 56 #define NACL_sys_sysconf 33 | 58 #define NACL_sys_sysconf 33 |
| 57 | 59 |
| 58 #define NACL_sys_gettimeofday 40 | 60 #define NACL_sys_gettimeofday 40 |
| 59 #define NACL_sys_clock 41 | 61 #define NACL_sys_clock 41 |
| 60 #define NACL_sys_nanosleep 42 | 62 #define NACL_sys_nanosleep 42 |
| 61 #define NACL_sys_clock_getres 43 | 63 #define NACL_sys_clock_getres 43 |
| 62 #define NACL_sys_clock_gettime 44 | 64 #define NACL_sys_clock_gettime 44 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 typedef int (*TYPE_nacl_imc_makeboundsock) (int *dp); | 139 typedef int (*TYPE_nacl_imc_makeboundsock) (int *dp); |
| 138 typedef int (*TYPE_nacl_imc_socketpair) (int *d2); | 140 typedef int (*TYPE_nacl_imc_socketpair) (int *d2); |
| 139 typedef int (*TYPE_nacl_imc_mem_obj_create) (size_t nbytes); | 141 typedef int (*TYPE_nacl_imc_mem_obj_create) (size_t nbytes); |
| 140 | 142 |
| 141 typedef void *(*TYPE_nacl_mmap) (void *start, size_t length, | 143 typedef void *(*TYPE_nacl_mmap) (void *start, size_t length, |
| 142 int prot, int flags, int desc, | 144 int prot, int flags, int desc, |
| 143 nacl_abi_off_t *offset); | 145 nacl_abi_off_t *offset); |
| 144 | 146 |
| 145 typedef int (*TYPE_nacl_munmap) (void *start, size_t length); | 147 typedef int (*TYPE_nacl_munmap) (void *start, size_t length); |
| 146 | 148 |
| 149 typedef int (*TYPE_nacl_mprotect) (void *addr, size_t length, int prot); |
| 150 |
| 147 typedef void (*TYPE_nacl_thread_exit) (int32_t *stack_flag); | 151 typedef void (*TYPE_nacl_thread_exit) (int32_t *stack_flag); |
| 148 typedef int (*TYPE_nacl_thread_create) (void *start_user_address, | 152 typedef int (*TYPE_nacl_thread_create) (void *start_user_address, |
| 149 void *stack, | 153 void *stack, |
| 150 void *thread_ptr, | 154 void *thread_ptr, |
| 151 void *second_thread_ptr); | 155 void *second_thread_ptr); |
| 152 typedef int (*TYPE_nacl_thread_nice) (const int nice); | 156 typedef int (*TYPE_nacl_thread_nice) (const int nice); |
| 153 | 157 |
| 154 typedef int (*TYPE_nacl_mutex_create) (void); | 158 typedef int (*TYPE_nacl_mutex_create) (void); |
| 155 typedef int (*TYPE_nacl_mutex_lock) (int mutex); | 159 typedef int (*TYPE_nacl_mutex_lock) (int mutex); |
| 156 typedef int (*TYPE_nacl_mutex_unlock) (int mutex); | 160 typedef int (*TYPE_nacl_mutex_unlock) (int mutex); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 typedef void *(*TYPE_nacl_second_tls_get) (void); | 193 typedef void *(*TYPE_nacl_second_tls_get) (void); |
| 190 typedef int (*TYPE_nacl_srpc_get_fd) (void); | 194 typedef int (*TYPE_nacl_srpc_get_fd) (void); |
| 191 typedef int (*TYPE_nacl_dyncode_create) (void *dest, const void *src, | 195 typedef int (*TYPE_nacl_dyncode_create) (void *dest, const void *src, |
| 192 size_t size); | 196 size_t size); |
| 193 typedef int (*TYPE_nacl_dyncode_modify) (void *dest, const void *src, | 197 typedef int (*TYPE_nacl_dyncode_modify) (void *dest, const void *src, |
| 194 size_t size); | 198 size_t size); |
| 195 typedef int (*TYPE_nacl_dyncode_delete) (void *dest, size_t size); | 199 typedef int (*TYPE_nacl_dyncode_delete) (void *dest, size_t size); |
| 196 | 200 |
| 197 | 201 |
| 198 #endif | 202 #endif |
| OLD | NEW |