• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 /*--------------------------------------------------------------------*/
3 /*--- System call numbers for tilegx-linux.                         ---*/
4 /*---                                     vki-scnums-tilegx-linux.h ---*/
5 /*--------------------------------------------------------------------*/
6 
7 /*
8    This file is part of Valgrind, a dynamic binary instrumentation
9    framework.
10 
11    Copyright (C) 2010-2015 Tilera Corp.
12 
13    This program is free software; you can redistribute it and/or
14    modify it under the terms of the GNU General Public License as
15    published by the Free Software Foundation; either version 2 of the
16    License, or (at your option) any later version.
17 
18    This program is distributed in the hope that it will be useful, but
19    WITHOUT ANY WARRANTY; without even the implied warranty of
20    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21    General Public License for more details.
22 
23    You should have received a copy of the GNU General Public License
24    along with this program; if not, write to the Free Software
25    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
26    02111-1307, USA.
27 
28    The GNU General Public License is contained in the file COPYING.
29 */
30 
31 /* Contributed by Zhi-Gang Liu <zliu at tilera dot com> */
32 
33 #ifndef __VKI_SCNUMS_TILEGX_LINUX_H
34 #define __VKI_SCNUMS_TILEGX_LINUX_H
35 
36 /* From tilegx linux/include/asm-generic/unistd.h */
37 
38 #define __NR_io_setup 0
39 #define __NR_io_destroy 1
40 #define __NR_io_submit 2
41 #define __NR_io_cancel 3
42 #define __NR_io_getevents 4
43 
44 /* fs/xattr.c */
45 #define __NR_setxattr 5
46 #define __NR_lsetxattr 6
47 #define __NR_fsetxattr 7
48 #define __NR_getxattr 8
49 #define __NR_lgetxattr 9
50 #define __NR_fgetxattr 10
51 #define __NR_listxattr 11
52 #define __NR_llistxattr 12
53 #define __NR_flistxattr 13
54 #define __NR_removexattr 14
55 #define __NR_lremovexattr 15
56 #define __NR_fremovexattr 16
57 
58 /* fs/dcache.c */
59 #define __NR_getcwd 17
60 
61 /* fs/cookies.c */
62 #define __NR_lookup_dcookie 18
63 
64 /* fs/eventfd.c */
65 #define __NR_eventfd2 19
66 
67 /* fs/eventpoll.c */
68 #define __NR_epoll_create1 20
69 #define __NR_epoll_ctl 21
70 #define __NR_epoll_pwait 22
71 
72 /* fs/fcntl.c */
73 #define __NR_dup 23
74 #define __NR_dup2 23
75 #define __NR_dup3 24
76 #define __NR_fcntl 25
77 
78 /* fs/inotify_user.c */
79 #define __NR_inotify_init1 26
80 #define __NR_inotify_add_watch 27
81 #define __NR_inotify_rm_watch 28
82 
83 /* fs/ioctl.c */
84 #define __NR_ioctl 29
85 
86 /* fs/ioprio.c */
87 #define __NR_ioprio_set 30
88 #define __NR_ioprio_get 31
89 
90 /* fs/locks.c */
91 #define __NR_flock 32
92 
93 /* fs/namei.c */
94 #define __NR_mknodat 33
95 #define __NR_mkdirat 34
96 #define __NR_unlinkat 35
97 #define __NR_symlinkat 36
98 #define __NR_linkat 37
99 #define __NR_renameat 38
100 
101 /* fs/namespace.c */
102 #define __NR_umount2 39
103 
104 #define __NR_mount 40
105 #define __NR_pivot_root 41
106 
107 /* fs/nfsctl.c */
108 #define __NR_nfsservctl 42
109 
110 /* fs/open.c */
111 #define __NR_statfs 43
112 #define __NR_fstatfs 44
113 #define __NR_truncate 45
114 #define __NR_ftruncate 46
115 #define __NR_fallocate 47
116 #define __NR_faccessat 48
117 #define __NR_chdir 49
118 #define __NR_fchdir 50
119 #define __NR_chroot 51
120 #define __NR_fchmod 52
121 #define __NR_fchmodat 53
122 #define __NR_fchownat 54
123 #define __NR_fchown 55
124 #define __NR_openat 56
125 #define __NR_close 57
126 #define __NR_vhangup 58
127 
128 /* fs/pipe.c */
129 #define __NR_pipe2 59
130 
131 /* fs/quota.c */
132 #define __NR_quotactl 60
133 
134 /* fs/readdir.c */
135 #define __NR_getdents64 61
136 
137 /* fs/read_write.c */
138 #define __NR_lseek 62
139 #define __NR_read 63
140 #define __NR_write 64
141 #define __NR_readv 65
142 #define __NR_writev 66
143 #define __NR_pread64 67
144 #define __NR_pwrite64 68
145 #define __NR_preadv 69
146 #define __NR_pwritev 70
147 
148 /* fs/sendfile.c */
149 #define __NR_sendfile 71
150 
151 /* fs/select.c */
152 #define __NR_pselect6 72
153 #define __NR_ppoll 73
154 
155 /* fs/signalfd.c */
156 #define __NR_signalfd4 74
157 
158 /* fs/splice.c */
159 #define __NR_vmsplice 75
160 #define __NR_splice 76
161 #define __NR_tee 77
162 
163 /* fs/stat.c */
164 #define __NR_readlinkat 78
165 #define __NR3264_fstatat 79
166 #define __NR_stat     -10000
167 #define __NR_fstat   80
168 
169 /* fs/sync.c */
170 #define __NR_sync 81
171 #define __NR_fsync 82
172 #define __NR_fdatasync 83
173 #define __NR_sync_file_range2 84
174 #define __NR_sync_file_range 84
175 
176 /* fs/timerfd.c */
177 #define __NR_timerfd_create 85
178 #define __NR_timerfd_settime 86
179 #define __NR_timerfd_gettime 87
180 
181 /* fs/utimes.c */
182 #define __NR_utimensat 88
183 
184 /* kernel/acct.c */
185 #define __NR_acct 89
186 
187 /* kernel/capability.c */
188 #define __NR_capget 90
189 #define __NR_capset 91
190 
191 /* kernel/exec_domain.c */
192 #define __NR_personality 92
193 
194 /* kernel/exit.c */
195 #define __NR_exit 93
196 
197 #define __NR_exit_group 94
198 #define __NR_waitid 95
199 
200 /* kernel/fork.c */
201 #define __NR_set_tid_address 96
202 #define __NR_unshare 97
203 
204 /* kernel/futex.c */
205 #define __NR_futex 98
206 #define __NR_set_robust_list 99
207 #define __NR_get_robust_list 100
208 
209 /* kernel/hrtimer.c */
210 #define __NR_nanosleep 101
211 
212 /* kernel/itimer.c */
213 #define __NR_getitimer 102
214 #define __NR_setitimer 103
215 
216 /* kernel/kexec.c */
217 #define __NR_kexec_load 104
218 
219 /* kernel/module.c */
220 #define __NR_init_module 105
221 #define __NR_delete_module 106
222 
223 /* kernel/posix-timers.c */
224 #define __NR_timer_create 107
225 #define __NR_timer_gettime 108
226 #define __NR_timer_getoverrun 109
227 #define __NR_timer_settime 110
228 #define __NR_timer_delete 111
229 #define __NR_clock_settime 112
230 #define __NR_clock_gettime 113
231 #define __NR_clock_getres 114
232 #define __NR_clock_nanosleep 115
233 
234 /* kernel/printk.c */
235 #define __NR_syslog 116
236 
237 /* kernel/ptrace.c */
238 #define __NR_ptrace 117
239 
240 /* kernel/sched.c */
241 #define __NR_sched_setparam 118
242 #define __NR_sched_setscheduler 119
243 #define __NR_sched_getscheduler 120
244 #define __NR_sched_getparam 121
245 #define __NR_sched_setaffinity 122
246 #define __NR_sched_getaffinity 123
247 #define __NR_sched_yield 124
248 #define __NR_sched_get_priority_max 125
249 #define __NR_sched_get_priority_min 126
250 #define __NR_sched_rr_get_interval 127
251 
252 /* kernel/signal.c */
253 #define __NR_restart_syscall 128
254 #define __NR_kill 129
255 #define __NR_tkill 130
256 #define __NR_tgkill 131
257 #define __NR_sigaltstack 132
258 #define __NR_rt_sigsuspend 133
259 #define __NR_rt_sigaction 134
260 #define __NR_rt_sigprocmask 135
261 #define __NR_rt_sigpending 136
262 #define __NR_rt_sigtimedwait 137
263 #define __NR_rt_sigqueueinfo 138
264 #define __NR_rt_sigreturn 139
265 
266 /* kernel/sys.c */
267 #define __NR_setpriority 140
268 #define __NR_getpriority 141
269 #define __NR_reboot 142
270 #define __NR_setregid 143
271 #define __NR_setgid 144
272 #define __NR_setreuid 145
273 #define __NR_setuid 146
274 #define __NR_setresuid 147
275 #define __NR_getresuid 148
276 #define __NR_setresgid 149
277 #define __NR_getresgid 150
278 #define __NR_setfsuid 151
279 #define __NR_setfsgid 152
280 #define __NR_times 153
281 #define __NR_setpgid 154
282 #define __NR_getpgid 155
283 #define __NR_getsid 156
284 #define __NR_setsid 157
285 #define __NR_getgroups 158
286 #define __NR_setgroups 159
287 #define __NR_uname 160
288 #define __NR_sethostname 161
289 #define __NR_setdomainname 162
290 #define __NR_getrlimit 163
291 #define __NR_setrlimit 164
292 #define __NR_getrusage 165
293 #define __NR_umask 166
294 #define __NR_prctl 167
295 #define __NR_getcpu 168
296 
297 /* kernel/time.c */
298 #define __NR_gettimeofday 169
299 
300 #define __NR_settimeofday 170
301 #define __NR_adjtimex 171
302 
303 /* kernel/timer.c */
304 #define __NR_getpid 172
305 #define __NR_getppid 173
306 #define __NR_getuid 174
307 #define __NR_geteuid 175
308 #define __NR_getgid 176
309 #define __NR_getpgrp __NR_getgid
310 #define __NR_getegid 177
311 #define __NR_gettid 178
312 #define __NR_sysinfo 179
313 
314 /* ipc/mqueue.c */
315 #define __NR_mq_open 180
316 #define __NR_mq_unlink 181
317 #define __NR_mq_timedsend 182
318 #define __NR_mq_timedreceive 183
319 #define __NR_mq_notify 184
320 #define __NR_mq_getsetattr 185
321 
322 /* ipc/msg.c */
323 #define __NR_msgget 186
324 #define __NR_msgctl 187
325 #define __NR_msgrcv 188
326 #define __NR_msgsnd 189
327 
328 /* ipc/sem.c */
329 #define __NR_semget 190
330 #define __NR_semctl 191
331 #define __NR_semtimedop 192
332 #define __NR_semop 193
333 
334 /* ipc/shm.c */
335 #define __NR_shmget 194
336 #define __NR_shmctl 195
337 #define __NR_shmat 196
338 #define __NR_shmdt 197
339 
340 /* net/socket.c */
341 #define __NR_socket 198
342 #define __NR_socketpair 199
343 #define __NR_bind 200
344 #define __NR_listen 201
345 #define __NR_accept 202
346 #define __NR_connect 203
347 #define __NR_getsockname 204
348 #define __NR_getpeername 205
349 #define __NR_sendto 206
350 #define __NR_recvfrom 207
351 #define __NR_setsockopt 208
352 #define __NR_getsockopt 209
353 #define __NR_shutdown 210
354 #define __NR_sendmsg 211
355 #define __NR_recvmsg 212
356 
357 /* mm/filemap.c */
358 #define __NR_readahead 213
359 
360 /* mm/nommu.c, also with MMU */
361 #define __NR_brk 214
362 #define __NR_munmap 215
363 #define __NR_mremap 216
364 
365 /* security/keys/keyctl.c */
366 #define __NR_add_key 217
367 #define __NR_request_key 218
368 #define __NR_keyctl 219
369 
370 /* arch/example/kernel/sys_example.c */
371 #define __NR_clone 220
372 #define __NR_fork  __NR_clone
373 #define __NR_execve 221
374 #define __NR_mmap  222
375 
376 /* mm/fadvise.c */
377 #define __NR3264_fadvise64 223
378 
379 /* mm/, CONFIG_MMU only */
380 
381 #define __NR_swapon 224
382 #define __NR_swapoff 225
383 #define __NR_mprotect 226
384 #define __NR_msync 227
385 #define __NR_mlock 228
386 #define __NR_munlock 229
387 #define __NR_mlockall 230
388 #define __NR_munlockall 231
389 #define __NR_mincore 232
390 #define __NR_madvise 233
391 #define __NR_remap_file_pages 234
392 #define __NR_mbind 235
393 #define __NR_get_mempolicy 236
394 #define __NR_set_mempolicy 237
395 #define __NR_migrate_pages 238
396 #define __NR_move_pages 239
397 #define __NR_rt_tgsigqueueinfo 240
398 #define __NR_perf_event_open 241
399 #define __NR_accept4 242
400 #define __NR_recvmmsg 243
401 
402 /*
403  * Architectures may provide up to 16 syscalls of their own
404  * starting with this value.
405  */
406 #define __NR_arch_specific_syscall 244
407 #define __NR_cacheflush 245
408 #define __NR_set_dataplane 246
409 #define __NR_wait4 260
410 #define __NR_prlimit64 261
411 #define __NR_fanotify_init 262
412 #define __NR_fanotify_mark 263
413 #define __NR_syscalls 264
414 
415 #endif /* __VKI_SCNUMS_TILEGX_LINUX_H */
416 
417 /*--------------------------------------------------------------------*/
418 /*--- end                                                          ---*/
419 /*--------------------------------------------------------------------*/
420