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 /* | 7 /* |
8 * NaCl kernel / service run-time system call numbers | 8 * NaCl kernel / service run-time system call numbers |
9 */ | 9 */ |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 #define NACL_sys_dup2 9 | 24 #define NACL_sys_dup2 9 |
25 #define NACL_sys_open 10 | 25 #define NACL_sys_open 10 |
26 #define NACL_sys_close 11 | 26 #define NACL_sys_close 11 |
27 #define NACL_sys_read 12 | 27 #define NACL_sys_read 12 |
28 #define NACL_sys_write 13 | 28 #define NACL_sys_write 13 |
29 #define NACL_sys_lseek 14 | 29 #define NACL_sys_lseek 14 |
30 #define NACL_sys_ioctl 15 | 30 #define NACL_sys_ioctl 15 |
31 #define NACL_sys_stat 16 | 31 #define NACL_sys_stat 16 |
32 #define NACL_sys_fstat 17 | 32 #define NACL_sys_fstat 17 |
33 #define NACL_sys_chmod 18 | 33 #define NACL_sys_chmod 18 |
34 /* no fchmod emulation on windows */ | 34 #define NACL_sys_fchmod 19 |
35 | 35 |
36 #define NACL_sys_brk 20 | 36 #define NACL_sys_brk 20 |
37 #define NACL_sys_mmap 21 | 37 #define NACL_sys_mmap 21 |
38 #define NACL_sys_munmap 22 | 38 #define NACL_sys_munmap 22 |
39 | 39 |
40 #define NACL_sys_getdents 23 | 40 #define NACL_sys_getdents 23 |
41 | 41 |
42 #define NACL_sys_mprotect 24 | 42 #define NACL_sys_mprotect 24 |
43 | 43 |
44 #define NACL_sys_list_mappings 25 | 44 #define NACL_sys_list_mappings 25 |
45 | 45 |
| 46 #define NACL_sys_fsync 26 |
| 47 #define NACL_sys_fdatasync 27 |
| 48 |
46 #define NACL_sys_exit 30 | 49 #define NACL_sys_exit 30 |
47 #define NACL_sys_getpid 31 | 50 #define NACL_sys_getpid 31 |
48 #define NACL_sys_sched_yield 32 | 51 #define NACL_sys_sched_yield 32 |
49 #define NACL_sys_sysconf 33 | 52 #define NACL_sys_sysconf 33 |
50 | 53 |
51 #define NACL_sys_gettimeofday 40 | 54 #define NACL_sys_gettimeofday 40 |
52 #define NACL_sys_clock 41 | 55 #define NACL_sys_clock 41 |
53 #define NACL_sys_nanosleep 42 | 56 #define NACL_sys_nanosleep 42 |
54 #define NACL_sys_clock_getres 43 | 57 #define NACL_sys_clock_getres 43 |
55 #define NACL_sys_clock_gettime 44 | 58 #define NACL_sys_clock_gettime 44 |
56 | 59 |
57 #define NACL_sys_mkdir 45 | 60 #define NACL_sys_mkdir 45 |
58 #define NACL_sys_rmdir 46 | 61 #define NACL_sys_rmdir 46 |
59 #define NACL_sys_chdir 47 | 62 #define NACL_sys_chdir 47 |
60 #define NACL_sys_getcwd 48 | 63 #define NACL_sys_getcwd 48 |
61 #define NACL_sys_unlink 49 | 64 #define NACL_sys_unlink 49 |
| 65 #define NACL_sys_fchdir 50 |
| 66 |
| 67 #define NACL_sys_truncate 51 |
| 68 #define NACL_sys_ftruncate 52 |
| 69 #define NACL_sys_lstat 53 |
| 70 #define NACL_sys_link 54 |
| 71 #define NACL_sys_access 55 |
| 72 #define NACL_sys_rename 56 |
| 73 #define NACL_sys_readlink 57 |
| 74 #define NACL_sys_symlink 58 |
| 75 #define NACL_sys_utimes 59 |
62 | 76 |
63 /* 50-58 previously used for multimedia syscalls */ | 77 /* 50-58 previously used for multimedia syscalls */ |
64 | 78 |
65 #define NACL_sys_imc_makeboundsock 60 | 79 #define NACL_sys_imc_makeboundsock 60 |
66 #define NACL_sys_imc_accept 61 | 80 #define NACL_sys_imc_accept 61 |
67 #define NACL_sys_imc_connect 62 | 81 #define NACL_sys_imc_connect 62 |
68 #define NACL_sys_imc_sendmsg 63 | 82 #define NACL_sys_imc_sendmsg 63 |
69 #define NACL_sys_imc_recvmsg 64 | 83 #define NACL_sys_imc_recvmsg 64 |
70 #define NACL_sys_imc_mem_obj_create 65 | 84 #define NACL_sys_imc_mem_obj_create 65 |
71 #define NACL_sys_imc_socketpair 66 | 85 #define NACL_sys_imc_socketpair 66 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 /* | 120 /* |
107 * These syscall numbers are set aside for use in tests that add | 121 * These syscall numbers are set aside for use in tests that add |
108 * syscalls that must coexist with the normal syscalls. | 122 * syscalls that must coexist with the normal syscalls. |
109 */ | 123 */ |
110 #define NACL_sys_test_syscall_1 111 | 124 #define NACL_sys_test_syscall_1 111 |
111 #define NACL_sys_test_syscall_2 112 | 125 #define NACL_sys_test_syscall_2 112 |
112 | 126 |
113 #define NACL_MAX_SYSCALLS 113 | 127 #define NACL_MAX_SYSCALLS 113 |
114 | 128 |
115 #endif | 129 #endif |
OLD | NEW |