PPC: Fix rldcl
[qemu/agraf.git] / linux-user / openrisc / syscall_nr.h
blobf4ac91ef71802554d08bfdb60f3219fb46b5f465
1 #define TARGET_NR_io_setup 0
2 #define TARGET_NR_io_destroy 1
3 #define TARGET_NR_io_submit 2
4 #define TARGET_NR_io_cancel 3
5 #define TARGET_NR_io_getevents 4
7 /* fs/xattr.c */
8 #define TARGET_NR_setxattr 5
9 #define TARGET_NR_lsetxattr 6
10 #define TARGET_NR_fsetxattr 7
11 #define TARGET_NR_getxattr 8
12 #define TARGET_NR_lgetxattr 9
13 #define TARGET_NR_fgetxattr 10
14 #define TARGET_NR_listxattr 11
15 #define TARGET_NR_llistxattr 12
16 #define TARGET_NR_flistxattr 13
17 #define TARGET_NR_removexattr 14
18 #define TARGET_NR_lremovexattr 15
19 #define TARGET_NR_fremovexattr 16
21 /* fs/dcache.c */
22 #define TARGET_NR_getcwd 17
24 /* fs/cookies.c */
25 #define TARGET_NR_lookup_dcookie 18
27 /* fs/eventfd.c */
28 #define TARGET_NR_eventfd2 19
30 /* fs/eventpoll.c */
31 #define TARGET_NR_epoll_create1 20
32 #define TARGET_NR_epoll_ctl 21
33 #define TARGET_NR_epoll_pwait 22
35 /* fs/fcntl.c */
36 #define TARGET_NR_dup 23
37 #define TARGET_NR_dup3 24
38 #define TARGET_NR_3264_fcntl 25
40 /* fs/inotify_user.c */
41 #define TARGET_NR_inotify_init1 26
42 #define TARGET_NR_inotify_add_watch 27
43 #define TARGET_NR_inotify_rm_watch 28
45 /* fs/ioctl.c */
46 #define TARGET_NR_ioctl 29
48 /* fs/ioprio.c */
49 #define TARGET_NR_ioprio_set 30
50 #define TARGET_NR_ioprio_get 31
52 /* fs/locks.c */
53 #define TARGET_NR_flock 32
55 /* fs/namei.c */
56 #define TARGET_NR_mknodat 33
57 #define TARGET_NR_mkdirat 34
58 #define TARGET_NR_unlinkat 35
59 #define TARGET_NR_symlinkat 36
60 #define TARGET_NR_linkat 37
61 #define TARGET_NR_renameat 38
63 /* fs/namespace.c */
64 #define TARGET_NR_umount2 39
65 #define TARGET_NR_mount 40
66 #define TARGET_NR_pivot_root 41
68 /* fs/nfsctl.c */
69 #define TARGET_NR_nfsservctl 42
71 /* fs/open.c */
72 #define TARGET_NR_3264_statfs 43
73 #define TARGET_NR_3264_fstatfs 44
74 #define TARGET_NR_3264_truncate 45
75 #define TARGET_NR_3264_ftruncate 46
77 #define TARGET_NR_fallocate 47
78 #define TARGET_NR_faccessat 48
79 #define TARGET_NR_chdir 49
80 #define TARGET_NR_fchdir 50
81 #define TARGET_NR_chroot 51
82 #define TARGET_NR_fchmod 52
83 #define TARGET_NR_fchmodat 53
84 #define TARGET_NR_fchownat 54
85 #define TARGET_NR_fchown 55
86 #define TARGET_NR_openat 56
87 #define TARGET_NR_close 57
88 #define TARGET_NR_vhangup 58
90 /* fs/pipe.c */
91 #define TARGET_NR_pipe2 59
93 /* fs/quota.c */
94 #define TARGET_NR_quotactl 60
96 /* fs/readdir.c */
97 #define TARGET_NR_getdents64 61
99 /* fs/read_write.c */
100 #define TARGET_NR_3264_lseek 62
101 #define TARGET_NR_read 63
102 #define TARGET_NR_write 64
103 #define TARGET_NR_readv 65
104 #define TARGET_NR_writev 66
105 #define TARGET_NR_pread64 67
106 #define TARGET_NR_pwrite64 68
107 #define TARGET_NR_preadv 69
108 #define TARGET_NR_pwritev 70
110 /* fs/sendfile.c */
111 #define TARGET_NR_3264_sendfile 71
113 /* fs/select.c */
114 #define TARGET_NR_pselect6 72
115 #define TARGET_NR_ppoll 73
117 /* fs/signalfd.c */
118 #define TARGET_NR_signalfd4 74
120 /* fs/splice.c */
121 #define TARGET_NR_vmsplice 75
122 #define TARGET_NR_splice 76
123 #define TARGET_NR_tee 77
125 /* fs/stat.c */
126 #define TARGET_NR_readlinkat 78
127 #define TARGET_NR_3264_fstatat 79
128 #define TARGET_NR_3264_fstat 80
130 /* fs/sync.c */
131 #define TARGET_NR_sync 81
132 #define TARGET_NR_fsync 82
133 #define TARGET_NR_fdatasync 83
135 #ifdef __ARCH_WANT_SYNC_FILE_RANGE2
136 #define TARGET_NR_sync_file_range2 84
137 #else
138 #define TARGET_NR_sync_file_range 84
139 #endif
141 /* fs/timerfd.c */
142 #define TARGET_NR_timerfd_create 85
143 #define TARGET_NR_timerfd_settime 86
144 #define TARGET_NR_timerfd_gettime 87
146 /* fs/utimes.c */
147 #define TARGET_NR_utimensat 88
149 /* kernel/acct.c */
150 #define TARGET_NR_acct 89
152 /* kernel/capability.c */
153 #define TARGET_NR_capget 90
154 #define TARGET_NR_capset 91
156 /* kernel/exec_domain.c */
157 #define TARGET_NR_personality 92
159 /* kernel/exit.c */
160 #define TARGET_NR_exit 93
161 #define TARGET_NR_exit_group 94
162 #define TARGET_NR_waitid 95
164 /* kernel/fork.c */
165 #define TARGET_NR_set_tid_address 96
166 #define TARGET_NR_unshare 97
168 /* kernel/futex.c */
169 #define TARGET_NR_futex 98
170 #define TARGET_NR_set_robust_list 99
171 #define TARGET_NR_get_robust_list 100
173 /* kernel/hrtimer.c */
174 #define TARGET_NR_nanosleep 101
176 /* kernel/itimer.c */
177 #define TARGET_NR_getitimer 102
178 #define TARGET_NR_setitimer 103
180 /* kernel/kexec.c */
181 #define TARGET_NR_kexec_load 104
183 /* kernel/module.c */
184 #define TARGET_NR_init_module 105
185 #define TARGET_NR_delete_module 106
187 /* kernel/posix-timers.c */
188 #define TARGET_NR_timer_create 107
189 #define TARGET_NR_timer_gettime 108
190 #define TARGET_NR_timer_getoverrun 109
191 #define TARGET_NR_timer_settime 110
192 #define TARGET_NR_timer_delete 111
193 #define TARGET_NR_clock_settime 112
194 #define TARGET_NR_clock_gettime 113
195 #define TARGET_NR_clock_getres 114
196 #define TARGET_NR_clock_nanosleep 115
198 /* kernel/printk.c */
199 #define TARGET_NR_syslog 116
201 /* kernel/ptrace.c */
202 #define TARGET_NR_ptrace 117
204 /* kernel/sched.c */
205 #define TARGET_NR_sched_setparam 118
206 #define TARGET_NR_sched_setscheduler 119
207 #define TARGET_NR_sched_getscheduler 120
208 #define TARGET_NR_sched_getparam 121
209 #define TARGET_NR_sched_setaffinity 122
210 #define TARGET_NR_sched_getaffinity 123
211 #define TARGET_NR_sched_yield 124
212 #define TARGET_NR_sched_get_priority_max 125
213 #define TARGET_NR_sched_get_priority_min 126
214 #define TARGET_NR_sched_rr_get_interval 127
216 /* kernel/signal.c */
217 #define TARGET_NR_restart_syscall 128
218 #define TARGET_NR_kill 129
219 #define TARGET_NR_tkill 130
220 #define TARGET_NR_tgkill 131
221 #define TARGET_NR_sigaltstack 132
222 #define TARGET_NR_rt_sigsuspend 133
223 #define TARGET_NR_rt_sigaction 134
224 #define TARGET_NR_rt_sigprocmask 135
225 #define TARGET_NR_rt_sigpending 136
226 #define TARGET_NR_rt_sigtimedwait 137
227 #define TARGET_NR_rt_sigqueueinfo 138
228 #define TARGET_NR_rt_sigreturn 139
230 /* kernel/sys.c */
231 #define TARGET_NR_setpriority 140
232 #define TARGET_NR_getpriority 141
233 #define TARGET_NR_reboot 142
234 #define TARGET_NR_setregid 143
235 #define TARGET_NR_setgid 144
236 #define TARGET_NR_setreuid 145
237 #define TARGET_NR_setuid 146
238 #define TARGET_NR_setresuid 147
239 #define TARGET_NR_getresuid 148
240 #define TARGET_NR_setresgid 149
241 #define TARGET_NR_getresgid 150
242 #define TARGET_NR_setfsuid 151
243 #define TARGET_NR_setfsgid 152
244 #define TARGET_NR_times 153
245 #define TARGET_NR_setpgid 154
246 #define TARGET_NR_getpgid 155
247 #define TARGET_NR_getsid 156
248 #define TARGET_NR_setsid 157
249 #define TARGET_NR_getgroups 158
250 #define TARGET_NR_setgroups 159
251 #define TARGET_NR_uname 160
252 #define TARGET_NR_sethostname 161
253 #define TARGET_NR_setdomainname 162
254 #define TARGET_NR_getrlimit 163
255 #define TARGET_NR_setrlimit 164
256 #define TARGET_NR_getrusage 165
257 #define TARGET_NR_umask 166
258 #define TARGET_NR_prctl 167
259 #define TARGET_NR_getcpu 168
261 /* kernel/time.c */
262 #define TARGET_NR_gettimeofday 169
263 #define TARGET_NR_settimeofday 170
264 #define TARGET_NR_adjtimex 171
266 /* kernel/timer.c */
267 #define TARGET_NR_getpid 172
268 #define TARGET_NR_getppid 173
269 #define TARGET_NR_getuid 174
270 #define TARGET_NR_geteuid 175
271 #define TARGET_NR_getgid 176
272 #define TARGET_NR_getegid 177
273 #define TARGET_NR_gettid 178
274 #define TARGET_NR_sysinfo 179
276 /* ipc/mqueue.c */
277 #define TARGET_NR_mq_open 180
278 #define TARGET_NR_mq_unlink 181
279 #define TARGET_NR_mq_timedsend 182
280 #define TARGET_NR_mq_timedreceive 183
281 #define TARGET_NR_mq_notify 184
282 #define TARGET_NR_mq_getsetattr 185
284 /* ipc/msg.c */
285 #define TARGET_NR_msgget 186
286 #define TARGET_NR_msgctl 187
287 #define TARGET_NR_msgrcv 188
288 #define TARGET_NR_msgsnd 189
290 /* ipc/sem.c */
291 #define TARGET_NR_semget 190
292 #define TARGET_NR_semctl 191
293 #define TARGET_NR_semtimedop 192
294 #define TARGET_NR_semop 193
296 /* ipc/shm.c */
297 #define TARGET_NR_shmget 194
298 #define TARGET_NR_shmctl 195
299 #define TARGET_NR_shmat 196
300 #define TARGET_NR_shmdt 197
302 /* net/socket.c */
303 #define TARGET_NR_socket 198
304 #define TARGET_NR_socketpair 199
305 #define TARGET_NR_bind 200
306 #define TARGET_NR_listen 201
307 #define TARGET_NR_accept 202
308 #define TARGET_NR_connect 203
309 #define TARGET_NR_getsockname 204
310 #define TARGET_NR_getpeername 205
311 #define TARGET_NR_sendto 206
312 #define TARGET_NR_recvfrom 207
313 #define TARGET_NR_setsockopt 208
314 #define TARGET_NR_getsockopt 209
315 #define TARGET_NR_shutdown 210
316 #define TARGET_NR_sendmsg 211
317 #define TARGET_NR_recvmsg 212
319 /* mm/filemap.c */
320 #define TARGET_NR_readahead 213
322 /* mm/nommu.c, also with MMU */
323 #define TARGET_NR_brk 214
324 #define TARGET_NR_munmap 215
325 #define TARGET_NR_mremap 216
327 /* security/keys/keyctl.c */
328 #define TARGET_NR_add_key 217
329 #define TARGET_NR_request_key 218
330 #define TARGET_NR_keyctl 219
332 /* arch/example/kernel/sys_example.c */
333 #define TARGET_NR_clone 220
334 #define TARGET_NR_execve 221
336 #define TARGET_NR_3264_mmap 222
337 /* mm/fadvise.c */
338 #define TARGET_NR_3264_fadvise64 223
340 /* mm/, CONFIG_MMU only */
341 #ifndef __ARCH_NOMMU
342 #define TARGET_NR_swapon 224
343 #define TARGET_NR_swapoff 225
344 #define TARGET_NR_mprotect 226
345 #define TARGET_NR_msync 227
346 #define TARGET_NR_mlock 228
347 #define TARGET_NR_munlock 229
348 #define TARGET_NR_mlockall 230
349 #define TARGET_NR_munlockall 231
350 #define TARGET_NR_mincore 232
351 #define TARGET_NR_madvise 233
352 #define TARGET_NR_remap_file_pages 234
353 #define TARGET_NR_mbind 235
354 #define TARGET_NR_get_mempolicy 236
355 #define TARGET_NR_set_mempolicy 237
356 #define TARGET_NR_migrate_pages 238
357 #define TARGET_NR_move_pages 239
358 #endif
360 #define TARGET_NR_rt_tgsigqueueinfo 240
361 #define TARGET_NR_perf_event_open 241
362 #define TARGET_NR_accept4 242
363 #define TARGET_NR_recvmmsg 243
366 * Architectures may provide up to 16 syscalls of their own
367 * starting with this value.
369 #define TARGET_NR_arch_specific_syscall 244
371 #define TARGET_NR_wait4 260
372 #define TARGET_NR_prlimit64 261
373 #define TARGET_NR_fanotify_init 262
374 #define TARGET_NR_fanotify_mark 263
375 #define TARGET_NR_name_to_handle_at 264
376 #define TARGET_NR_open_by_handle_at 265
377 #define TARGET_NR_clock_adjtime 266
378 #define TARGET_NR_syncfs 267
379 #define TARGET_NR_setns 268
380 #define TARGET_NR_sendmmsg 269
382 #undef TARGET_NR_syscalls
383 #define TARGET_NR_syscalls 270
386 * All syscalls below here should go away really,
387 * these are provided for both review and as a porting
388 * help for the C library version.
390 * Last chance: are any of these important enough to
391 * enable by default?
393 #define TARGET_NR_open 1024
394 #define TARGET_NR_link 1025
395 #define TARGET_NR_unlink 1026
396 #define TARGET_NR_mknod 1027
397 #define TARGET_NR_chmod 1028
398 #define TARGET_NR_chown 1029
399 #define TARGET_NR_mkdir 1030
400 #define TARGET_NR_rmdir 1031
401 #define TARGET_NR_lchown 1032
402 #define TARGET_NR_access 1033
403 #define TARGET_NR_rename 1034
404 #define TARGET_NR_readlink 1035
405 #define TARGET_NR_symlink 1036
406 #define TARGET_NR_utimes 1037
407 #define TARGET_NR_3264_stat 1038
408 #define TARGET_NR_3264_lstat 1039
410 #undef TARGET_NR_syscalls
411 #define TARGET_NR_syscalls (TARGET_NR_3264_lstat+1)
413 #define TARGET_NR_pipe 1040
414 #define TARGET_NR_dup2 1041
415 #define TARGET_NR_epoll_create 1042
416 #define TARGET_NR_inotify_init 1043
417 #define TARGET_NR_eventfd 1044
418 #define TARGET_NR_signalfd 1045
420 #undef TARGET_NR_syscalls
421 #define TARGET_NR_syscalls (TARGET_NR_signalfd+1)
424 #define TARGET_NR_sendfile 1046
425 #define TARGET_NR_ftruncate 1047
426 #define TARGET_NR_truncate 1048
427 #define TARGET_NR_stat 1049
428 #define TARGET_NR_lstat 1050
429 #define TARGET_NR_fstat 1051
430 #define TARGET_NR_fcntl 1052
431 #define TARGET_NR_fadvise64 1053
432 #define __ARCH_WANT_SYS_FADVISE64
433 #define TARGET_NR_newfstatat 1054
434 #define __ARCH_WANT_SYS_NEWFSTATAT
435 #define TARGET_NR_fstatfs 1055
436 #define TARGET_NR_statfs 1056
437 #define TARGET_NR_lseek 1057
438 #define TARGET_NR_mmap 1058
440 #undef TARGET_NR_syscalls
441 #define TARGET_NR_syscalls (TARGET_NR_mmap+1)
443 #define TARGET_NR_alarm 1059
444 #define __ARCH_WANT_SYS_ALARM
445 #define TARGET_NR_getpgrp 1060
446 #define __ARCH_WANT_SYS_GETPGRP
447 #define TARGET_NR_pause 1061
448 #define __ARCH_WANT_SYS_PAUSE
449 #define TARGET_NR_time 1062
450 #define __ARCH_WANT_SYS_TIME
451 #define __ARCH_WANT_COMPAT_SYS_TIME
452 #define TARGET_NR_utime 1063
453 #define __ARCH_WANT_SYS_UTIME
455 #define TARGET_NR_creat 1064
456 #define TARGET_NR_getdents 1065
457 #define __ARCH_WANT_SYS_GETDENTS
458 #define TARGET_NR_futimesat 1066
459 #define TARGET_NR_select 1067
460 #define __ARCH_WANT_SYS_SELECT
461 #define TARGET_NR_poll 1068
462 #define TARGET_NR_epoll_wait 1069
463 #define TARGET_NR_ustat 1070
464 #define TARGET_NR_vfork 1071
465 #define TARGET_NR_oldwait4 1072
466 #define TARGET_NR_recv 1073
467 #define TARGET_NR_send 1074
468 #define TARGET_NR_bdflush 1075
469 #define TARGET_NR_umount 1076
470 #define __ARCH_WANT_SYS_OLDUMOUNT
471 #define TARGET_NR_uselib 1077
472 #define TARGET_NR__sysctl 1078
474 #define TARGET_NR_fork 1079
476 #undef TARGET_NR_syscalls
477 #define TARGET_NR_syscalls (TARGET_NR_fork+1)
481 * 32 bit systems traditionally used different
482 * syscalls for off_t and loff_t arguments, while
483 * 64 bit systems only need the off_t version.
484 * For new 32 bit platforms, there is no need to
485 * implement the old 32 bit off_t syscalls, so
486 * they take different names.
487 * Here we map the numbers so that both versions
488 * use the same syscall table layout.
491 #define TARGET_NR_fcntl64 TARGET_NR_3264_fcntl
492 #define TARGET_NR_statfs64 TARGET_NR_3264_statfs
493 #define TARGET_NR_fstatfs64 TARGET_NR_3264_fstatfs
494 #define TARGET_NR_truncate64 TARGET_NR_3264_truncate
495 #define TARGET_NR_ftruncate64 TARGET_NR_3264_ftruncate
496 #define TARGET_NR_llseek TARGET_NR_3264_lseek
497 #define TARGET_NR_sendfile64 TARGET_NR_3264_sendfile
498 #define TARGET_NR_fstatat64 TARGET_NR_3264_fstatat
499 #define TARGET_NR_fstat64 TARGET_NR_3264_fstat
500 #define TARGET_NR_mmap2 TARGET_NR_3264_mmap
501 #define TARGET_NR_fadvise64_64 TARGET_NR_3264_fadvise64
503 #ifdef TARGET_NR_3264_stat
504 #define TARGET_NR_stat64 TARGET_NR_3264_stat
505 #define TARGET_NR_lstat64 TARGET_NR_3264_lstat
506 #endif