plan to cleanup the fd generation code
[trinity.git] / include / syscalls-mips.h
bloba7ae056b3fe7a3c8f253f22d76c8e8b25fa22e82
1 #pragma once
3 /* Syscalls from arch/mips/kernel/scall32-o32.S */
5 #include "sanitise.h"
6 #include "syscall.h"
7 #include "syscalls/syscalls.h"
9 struct syscalltable syscalls_mips[] = {
10 { .entry = &syscall_ni_syscall }, /* 4000 */
11 /* { .entry = &syscall_syscall }, 4000 */
12 { .entry = &syscall_exit },
13 { .entry = &syscall_fork },
14 { .entry = &syscall_read },
15 { .entry = &syscall_write },
16 { .entry = &syscall_open }, /* 4005 */
17 { .entry = &syscall_close },
18 { .entry = &syscall_waitpid },
19 { .entry = &syscall_creat },
20 { .entry = &syscall_link },
21 { .entry = &syscall_unlink }, /* 4010 */
22 { .entry = &syscall_execve },
23 { .entry = &syscall_chdir },
24 { .entry = &syscall_time },
25 { .entry = &syscall_mknod },
26 { .entry = &syscall_chmod }, /* 4015 */
27 { .entry = &syscall_lchown },
28 { .entry = &syscall_ni_syscall },
29 { .entry = &syscall_ni_syscall }, /* was sys_stat */
30 { .entry = &syscall_lseek },
31 { .entry = &syscall_getpid }, /* 4020 */
32 { .entry = &syscall_mount },
33 { .entry = &syscall_oldumount },
34 { .entry = &syscall_setuid },
35 { .entry = &syscall_getuid },
36 { .entry = &syscall_stime }, /* 4025 */
37 { .entry = &syscall_ptrace },
38 { .entry = &syscall_alarm },
39 { .entry = &syscall_ni_syscall }, /* was sys_fstat */
40 { .entry = &syscall_pause },
41 { .entry = &syscall_utime }, /* 4030 */
42 { .entry = &syscall_ni_syscall }, /* was sys_stty */
43 { .entry = &syscall_ni_syscall }, /* was sys_getty */
44 { .entry = &syscall_access },
45 { .entry = &syscall_nice },
46 { .entry = &syscall_ni_syscall }, /* 4035 */
47 { .entry = &syscall_sync },
48 { .entry = &syscall_kill },
49 { .entry = &syscall_rename },
50 { .entry = &syscall_mkdir },
51 { .entry = &syscall_rmdir }, /* 4040 */
52 { .entry = &syscall_dup },
53 { .entry = &syscall_pipe },
54 { .entry = &syscall_times },
55 { .entry = &syscall_ni_syscall },
56 { .entry = &syscall_brk }, /* 4045 */
57 { .entry = &syscall_setgid },
58 { .entry = &syscall_getgid },
59 { .entry = &syscall_ni_syscall }, /* was signal(2) */
60 { .entry = &syscall_geteuid },
61 { .entry = &syscall_getegid }, /* 4050 */
62 { .entry = &syscall_acct },
63 { .entry = &syscall_umount },
64 { .entry = &syscall_ni_syscall },
65 { .entry = &syscall_ioctl },
66 { .entry = &syscall_fcntl }, /* 4055 */
67 { .entry = &syscall_ni_syscall },
68 { .entry = &syscall_setpgid },
69 { .entry = &syscall_ni_syscall },
70 { .entry = &syscall_olduname },
71 { .entry = &syscall_umask }, /* 4060 */
72 { .entry = &syscall_chroot },
73 { .entry = &syscall_ustat },
74 { .entry = &syscall_dup2 },
75 { .entry = &syscall_getppid },
76 { .entry = &syscall_getpgrp }, /* 4065 */
77 { .entry = &syscall_setsid },
78 { .entry = &syscall_sigaction },
79 { .entry = &syscall_sgetmask },
80 { .entry = &syscall_ssetmask },
81 { .entry = &syscall_setreuid }, /* 4070 */
82 { .entry = &syscall_setregid },
83 { .entry = &syscall_sigsuspend },
84 { .entry = &syscall_sigpending },
85 { .entry = &syscall_sethostname },
86 { .entry = &syscall_setrlimit }, /* 4075 */
87 { .entry = &syscall_getrlimit },
88 { .entry = &syscall_getrusage },
89 { .entry = &syscall_gettimeofday },
90 { .entry = &syscall_settimeofday },
91 { .entry = &syscall_getgroups }, /* 4080 */
92 { .entry = &syscall_setgroups },
93 { .entry = &syscall_ni_syscall }, /* old_select */
94 { .entry = &syscall_symlink },
95 { .entry = &syscall_ni_syscall }, /* was sys_lstat */
96 { .entry = &syscall_readlink }, /* 4085 */
97 { .entry = &syscall_uselib },
98 { .entry = &syscall_swapon },
99 { .entry = &syscall_reboot },
100 { .entry = &syscall_ni_syscall },
101 /* { .entry = &syscall_old_readdir }, */
102 /* { .entry = &syscall_mips_mmap }, 4090 */
103 { .entry = &syscall_ni_syscall }, /* 4090 */
104 { .entry = &syscall_munmap },
105 { .entry = &syscall_truncate },
106 { .entry = &syscall_ftruncate },
107 { .entry = &syscall_fchmod },
108 { .entry = &syscall_fchown }, /* 4095 */
109 { .entry = &syscall_getpriority },
110 { .entry = &syscall_setpriority },
111 { .entry = &syscall_ni_syscall },
112 { .entry = &syscall_statfs },
113 { .entry = &syscall_fstatfs }, /* 4100 */
114 { .entry = &syscall_ni_syscall },
115 { .entry = &syscall_socketcall },
116 { .entry = &syscall_syslog },
117 { .entry = &syscall_setitimer },
118 { .entry = &syscall_getitimer }, /* 4105 */
119 { .entry = &syscall_newstat },
120 { .entry = &syscall_newlstat },
121 { .entry = &syscall_newfstat },
122 { .entry = &syscall_uname },
123 { .entry = &syscall_ni_syscall }, /* 4110 was ioperm(2) */
124 { .entry = &syscall_vhangup },
125 { .entry = &syscall_ni_syscall }, /* was sys_idle() */
126 { .entry = &syscall_ni_syscall }, /* was sys_vm86 */
127 { .entry = &syscall_wait4 },
128 { .entry = &syscall_swapoff }, /* 4115 */
129 { .entry = &syscall_sysinfo },
130 { .entry = &syscall_ipc },
131 { .entry = &syscall_fsync },
132 { .entry = &syscall_sigreturn },
133 { .entry = &syscall_clone }, /* 4120 */
134 { .entry = &syscall_setdomainname },
135 { .entry = &syscall_newuname },
136 { .entry = &syscall_ni_syscall }, /* sys_modify_ldt */
137 { .entry = &syscall_adjtimex },
138 { .entry = &syscall_mprotect }, /* 4125 */
139 { .entry = &syscall_sigprocmask },
140 { .entry = &syscall_ni_syscall }, /* was sys_create_module */
141 { .entry = &syscall_init_module },
142 { .entry = &syscall_delete_module },
143 { .entry = &syscall_ni_syscall }, /* 4130 was sys_get_kernel_syms */
144 { .entry = &syscall_quotactl },
145 { .entry = &syscall_getpgid },
146 { .entry = &syscall_fchdir },
147 { .entry = &syscall_bdflush },
148 { .entry = &syscall_sysfs }, /* 4135 */
149 { .entry = &syscall_personality },
150 { .entry = &syscall_ni_syscall }, /* reserved for afs_syscall */
151 { .entry = &syscall_setfsuid },
152 { .entry = &syscall_setfsgid },
153 { .entry = &syscall_llseek }, /* 4140 */
154 { .entry = &syscall_getdents },
155 { .entry = &syscall_select },
156 { .entry = &syscall_flock },
157 { .entry = &syscall_msync },
158 { .entry = &syscall_readv }, /* 4145 */
159 { .entry = &syscall_writev },
160 /* { .entry = &syscall_cacheflush }, */
161 { .entry = &syscall_ni_syscall },
162 /* { .entry = &syscall_cachectl }, */
163 { .entry = &syscall_ni_syscall },
164 /* { .entry = &syscall_sysmips }, */
165 { .entry = &syscall_ni_syscall },
166 { .entry = &syscall_ni_syscall }, /* 4150 */
167 { .entry = &syscall_getsid },
168 { .entry = &syscall_fdatasync },
169 { .entry = &syscall_sysctl },
170 { .entry = &syscall_mlock },
171 { .entry = &syscall_munlock }, /* 4155 */
172 { .entry = &syscall_mlockall },
173 { .entry = &syscall_munlockall },
174 { .entry = &syscall_sched_setparam },
175 { .entry = &syscall_sched_getparam },
176 { .entry = &syscall_sched_setscheduler }, /* 4160 */
177 { .entry = &syscall_sched_getscheduler },
178 { .entry = &syscall_sched_yield },
179 { .entry = &syscall_sched_get_priority_max },
180 { .entry = &syscall_sched_get_priority_min },
181 { .entry = &syscall_sched_rr_get_interval }, /* 4165 */
182 { .entry = &syscall_nanosleep },
183 { .entry = &syscall_mremap },
184 { .entry = &syscall_accept },
185 { .entry = &syscall_bind },
186 { .entry = &syscall_connect }, /* 4170 */
187 { .entry = &syscall_getpeername },
188 { .entry = &syscall_getsockname },
189 { .entry = &syscall_getsockopt },
190 { .entry = &syscall_listen },
191 { .entry = &syscall_recv }, /* 4175 */
192 { .entry = &syscall_recvfrom },
193 { .entry = &syscall_recvmsg },
194 { .entry = &syscall_send },
195 { .entry = &syscall_sendmsg },
196 { .entry = &syscall_sendto }, /* 4180 */
197 { .entry = &syscall_setsockopt },
198 { .entry = &syscall_shutdown },
199 { .entry = &syscall_socket },
200 { .entry = &syscall_socketpair },
201 { .entry = &syscall_setresuid }, /* 4185 */
202 { .entry = &syscall_getresuid },
203 { .entry = &syscall_ni_syscall },
204 { .entry = &syscall_poll },
205 { .entry = &syscall_ni_syscall },
206 { .entry = &syscall_setresgid }, /* 4190 */
207 { .entry = &syscall_getresgid },
208 { .entry = &syscall_prctl },
209 { .entry = &syscall_rt_sigreturn },
210 { .entry = &syscall_rt_sigaction },
211 { .entry = &syscall_rt_sigprocmask }, /* 4195 */
212 { .entry = &syscall_rt_sigpending },
213 { .entry = &syscall_rt_sigtimedwait },
214 { .entry = &syscall_rt_sigqueueinfo },
215 { .entry = &syscall_rt_sigsuspend },
216 { .entry = &syscall_pread64 }, /* 4200 */
217 { .entry = &syscall_pwrite64 },
218 { .entry = &syscall_chown },
219 { .entry = &syscall_getcwd },
220 { .entry = &syscall_capget },
221 { .entry = &syscall_capset }, /* 4205 */
222 { .entry = &syscall_sigaltstack },
223 { .entry = &syscall_sendfile },
224 { .entry = &syscall_ni_syscall },
225 { .entry = &syscall_ni_syscall },
226 /* { .entry = &syscall_mips_mmap2 }, 4210 */
227 { .entry = &syscall_ni_syscall }, /* 4210 */
228 { .entry = &syscall_truncate64 },
229 { .entry = &syscall_ftruncate64 },
230 { .entry = &syscall_stat64 },
231 { .entry = &syscall_lstat64 },
232 { .entry = &syscall_fstat64 }, /* 4215 */
233 { .entry = &syscall_pivot_root },
234 { .entry = &syscall_mincore },
235 { .entry = &syscall_madvise },
236 { .entry = &syscall_getdents64 },
237 /* { .entry = &syscall_fcntl64 }, 4220 */
238 { .entry = &syscall_ni_syscall }, /* 4220 */
239 { .entry = &syscall_ni_syscall },
240 { .entry = &syscall_gettid },
241 { .entry = &syscall_readahead },
242 { .entry = &syscall_setxattr },
243 { .entry = &syscall_lsetxattr }, /* 4225 */
244 { .entry = &syscall_fsetxattr },
245 { .entry = &syscall_getxattr },
246 { .entry = &syscall_lgetxattr },
247 { .entry = &syscall_fgetxattr },
248 { .entry = &syscall_listxattr }, /* 4230 */
249 { .entry = &syscall_llistxattr },
250 { .entry = &syscall_flistxattr },
251 { .entry = &syscall_removexattr },
252 { .entry = &syscall_lremovexattr },
253 { .entry = &syscall_fremovexattr }, /* 4235 */
254 { .entry = &syscall_tkill },
255 { .entry = &syscall_sendfile64 },
256 { .entry = &syscall_futex },
257 { .entry = &syscall_sched_setaffinity },
258 { .entry = &syscall_sched_getaffinity },/* 4240 */
259 { .entry = &syscall_io_setup },
260 { .entry = &syscall_io_destroy },
261 { .entry = &syscall_io_getevents },
262 { .entry = &syscall_io_submit },
263 { .entry = &syscall_io_cancel }, /* 4245 */
264 { .entry = &syscall_exit_group },
265 { .entry = &syscall_lookup_dcookie },
266 { .entry = &syscall_epoll_create },
267 { .entry = &syscall_epoll_ctl },
268 { .entry = &syscall_epoll_wait }, /* 4250 */
269 { .entry = &syscall_remap_file_pages },
270 { .entry = &syscall_set_tid_address },
271 { .entry = &syscall_restart_syscall },
272 { .entry = &syscall_fadvise64_64 },
273 { .entry = &syscall_statfs64 }, /* 4255 */
274 { .entry = &syscall_fstatfs64 },
275 { .entry = &syscall_timer_create },
276 { .entry = &syscall_timer_settime },
277 { .entry = &syscall_timer_gettime },
278 { .entry = &syscall_timer_getoverrun }, /* 4260 */
279 { .entry = &syscall_timer_delete },
280 { .entry = &syscall_clock_settime },
281 { .entry = &syscall_clock_gettime },
282 { .entry = &syscall_clock_getres },
283 { .entry = &syscall_clock_nanosleep }, /* 4265 */
284 { .entry = &syscall_tgkill },
285 { .entry = &syscall_utimes },
286 { .entry = &syscall_mbind },
287 { .entry = &syscall_ni_syscall },
288 { .entry = &syscall_ni_syscall }, /* 4270 */
289 { .entry = &syscall_mq_open },
290 { .entry = &syscall_mq_unlink },
291 { .entry = &syscall_mq_timedsend },
292 { .entry = &syscall_mq_timedreceive },
293 { .entry = &syscall_mq_notify }, /* 4275 */
294 { .entry = &syscall_mq_getsetattr },
295 { .entry = &syscall_ni_syscall },
296 { .entry = &syscall_waitid },
297 { .entry = &syscall_ni_syscall },
298 { .entry = &syscall_add_key }, /* 4280 */
299 { .entry = &syscall_request_key },
300 { .entry = &syscall_keyctl },
301 { .entry = &syscall_ni_syscall }, /* obsolete "set_thread_area" syscall */
302 { .entry = &syscall_inotify_init },
303 { .entry = &syscall_inotify_add_watch },/* 4285 */
304 { .entry = &syscall_inotify_rm_watch },
305 { .entry = &syscall_migrate_pages },
306 { .entry = &syscall_openat },
307 { .entry = &syscall_mkdirat },
308 { .entry = &syscall_mknodat }, /* 4290 */
309 { .entry = &syscall_fchownat },
310 { .entry = &syscall_futimesat },
311 { .entry = &syscall_fstatat64 },
312 { .entry = &syscall_unlinkat },
313 { .entry = &syscall_renameat }, /* 4295 */
314 { .entry = &syscall_linkat },
315 { .entry = &syscall_symlinkat },
316 { .entry = &syscall_readlinkat },
317 { .entry = &syscall_fchmodat },
318 { .entry = &syscall_faccessat }, /* 4300 */
319 { .entry = &syscall_pselect6 },
320 { .entry = &syscall_ppoll },
321 { .entry = &syscall_unshare },
322 { .entry = &syscall_splice },
323 { .entry = &syscall_sync_file_range }, /* 4305 */
324 { .entry = &syscall_tee },
325 { .entry = &syscall_vmsplice },
326 { .entry = &syscall_move_pages },
327 { .entry = &syscall_set_robust_list },
328 { .entry = &syscall_get_robust_list }, /* 4310 */
329 /* vserver */ { .entry = &syscall_kexec_load },
330 { .entry = &syscall_getcpu },
331 { .entry = &syscall_epoll_pwait },
332 { .entry = &syscall_ioprio_set },
333 { .entry = &syscall_ioprio_get }, /* 4315 */
334 { .entry = &syscall_utimensat },
335 { .entry = &syscall_signalfd },
336 { .entry = &syscall_ni_syscall },
337 { .entry = &syscall_eventfd },
338 { .entry = &syscall_fallocate }, /* 4320 */
339 { .entry = &syscall_timerfd_create },
340 { .entry = &syscall_timerfd_gettime },
341 { .entry = &syscall_timerfd_settime },
342 { .entry = &syscall_signalfd4 },
343 { .entry = &syscall_eventfd2 }, /* 4325 */
344 { .entry = &syscall_epoll_create1 },
345 { .entry = &syscall_dup3 },
346 { .entry = &syscall_pipe2 },
347 { .entry = &syscall_inotify_init1 },
348 { .entry = &syscall_preadv }, /* 4330 */
349 { .entry = &syscall_pwritev },
350 { .entry = &syscall_rt_tgsigqueueinfo },
351 { .entry = &syscall_perf_event_open },
352 { .entry = &syscall_accept4 },
353 { .entry = &syscall_recvmmsg }, /* 4335 */
354 { .entry = &syscall_accept4 },
355 { .entry = &syscall_fanotify_init },
356 { .entry = &syscall_fanotify_mark },
357 { .entry = &syscall_prlimit64 },
358 { .entry = &syscall_name_to_handle_at },
359 { .entry = &syscall_open_by_handle_at },/* 4340 */
360 { .entry = &syscall_clock_adjtime },
361 { .entry = &syscall_syncfs },
362 { .entry = &syscall_sendmmsg },
363 { .entry = &syscall_setns },
364 { .entry = &syscall_process_vm_readv }, /* 4345 */
365 { .entry = &syscall_process_vm_writev },
366 { .entry = &syscall_kcmp },