OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2015 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 #ifndef NATIVE_CLIENT_SRC_PUBLIC_LINUX_SYSCALLS_SYS_SYSCALLS_H_ | 7 #ifndef NATIVE_CLIENT_SRC_PUBLIC_LINUX_SYSCALLS_SYS_SYSCALLS_H_ |
8 #define NATIVE_CLIENT_SRC_PUBLIC_LINUX_SYSCALLS_SYS_SYSCALLS_H_ 1 | 8 #define NATIVE_CLIENT_SRC_PUBLIC_LINUX_SYSCALLS_SYS_SYSCALLS_H_ 1 |
9 | 9 |
10 #ifdef __cplusplus | 10 #ifdef __cplusplus |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 # define __NR_pwrite64 181 | 64 # define __NR_pwrite64 181 |
65 # define __NR_getcwd 183 | 65 # define __NR_getcwd 183 |
66 # define __NR_ugetrlimit 191 | 66 # define __NR_ugetrlimit 191 |
67 # define __NR_mmap2 192 | 67 # define __NR_mmap2 192 |
68 # define __NR_truncate64 193 | 68 # define __NR_truncate64 193 |
69 # define __NR_stat64 195 | 69 # define __NR_stat64 195 |
70 # define __NR_lstat64 196 | 70 # define __NR_lstat64 196 |
71 # define __NR_fstat64 197 | 71 # define __NR_fstat64 197 |
72 # define __NR_getdents64 220 | 72 # define __NR_getdents64 220 |
73 # define __NR_fcntl64 221 | 73 # define __NR_fcntl64 221 |
74 # define __NR_gettid 224 | |
75 # define __NR_futex 240 | 74 # define __NR_futex 240 |
76 # define __NR_set_thread_area 243 | 75 # define __NR_set_thread_area 243 |
77 # define __NR_exit_group 252 | 76 # define __NR_exit_group 252 |
78 # define __NR_clock_gettime 265 | 77 # define __NR_clock_gettime 265 |
79 # define __NR_clock_getres 266 | 78 # define __NR_clock_getres 266 |
80 # define __NR_tgkill 270 | |
81 # define __NR_utimes 271 | 79 # define __NR_utimes 271 |
82 # define __NR_openat 295 | 80 # define __NR_openat 295 |
83 # define __NR_fstatat64 300 | 81 # define __NR_fstatat64 300 |
84 | 82 |
85 #elif defined(__arm__) | 83 #elif defined(__arm__) |
86 | 84 |
87 # define __NR_exit 1 | 85 # define __NR_exit 1 |
88 # define __NR_read 3 | 86 # define __NR_read 3 |
89 # define __NR_write 4 | 87 # define __NR_write 4 |
90 # define __NR_open 5 | 88 # define __NR_open 5 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 # define __NR_pwrite64 181 | 124 # define __NR_pwrite64 181 |
127 # define __NR_getcwd 183 | 125 # define __NR_getcwd 183 |
128 # define __NR_ugetrlimit 191 | 126 # define __NR_ugetrlimit 191 |
129 # define __NR_mmap2 192 | 127 # define __NR_mmap2 192 |
130 # define __NR_truncate64 193 | 128 # define __NR_truncate64 193 |
131 # define __NR_stat64 195 | 129 # define __NR_stat64 195 |
132 # define __NR_lstat64 196 | 130 # define __NR_lstat64 196 |
133 # define __NR_fstat64 197 | 131 # define __NR_fstat64 197 |
134 # define __NR_getdents64 217 | 132 # define __NR_getdents64 217 |
135 # define __NR_fcntl64 221 | 133 # define __NR_fcntl64 221 |
136 # define __NR_gettid 224 | |
137 # define __NR_futex 240 | 134 # define __NR_futex 240 |
138 # define __NR_exit_group 248 | 135 # define __NR_exit_group 248 |
139 # define __NR_clock_gettime 263 | 136 # define __NR_clock_gettime 263 |
140 # define __NR_clock_getres 264 | 137 # define __NR_clock_getres 264 |
141 # define __NR_tgkill 268 | |
142 # define __NR_utimes 271 | 138 # define __NR_utimes 271 |
143 # define __NR_socketpair 288 | 139 # define __NR_socketpair 288 |
144 # define __NR_shutdown 293 | 140 # define __NR_shutdown 293 |
145 # define __NR_sendmsg 296 | 141 # define __NR_sendmsg 296 |
146 # define __NR_recvmsg 297 | 142 # define __NR_recvmsg 297 |
147 # define __NR_openat 322 | 143 # define __NR_openat 322 |
148 # define __NR_fstatat64 327 | 144 # define __NR_fstatat64 327 |
149 # define __NR_ARM_cacheflush 0xf0002 | 145 # define __NR_ARM_cacheflush 0xf0002 |
150 # define __NR_ARM_set_tls 0xf0005 | 146 # define __NR_ARM_set_tls 0xf0005 |
151 | 147 |
152 #else | 148 #else |
153 # error Unsupported architecture | 149 # error Unsupported architecture |
154 #endif | 150 #endif |
155 | 151 |
156 #endif | 152 #endif |
OLD | NEW |