1
2
3
4
5
6
7
8
9
10 #include <sys/param.h>
11 #include <sys/systm.h>
12 #include <sys/signal.h>
13 #include <sys/mount.h>
14 #include <sys/syscallargs.h>
15 #include <sys/poll.h>
16 #include <sys/event.h>
17 #include <xfs/xfs_pioctl.h>
18
19 #ifdef COMPAT_43
20 #define compat_43(func) __CONCAT(compat_43_,func)
21 #else
22 #define compat_43(func) sys_nosys
23 #endif
24
25 #ifdef COMPAT_09
26 #define compat_09(func) __CONCAT(compat_09_,func)
27 #else
28 #define compat_09(func) sys_nosys
29 #endif
30
31 #ifdef COMPAT_10
32 #define compat_10(func) __CONCAT(compat_10_,func)
33 #else
34 #define compat_10(func) sys_nosys
35 #endif
36
37 #ifdef COMPAT_23
38 #define compat_23(func) __CONCAT(compat_23_,func)
39 #else
40 #define compat_23(func) sys_nosys
41 #endif
42
43 #ifdef COMPAT_25
44 #define compat_25(func) __CONCAT(compat_25_,func)
45 #else
46 #define compat_25(func) sys_nosys
47 #endif
48
49 #ifdef COMPAT_35
50 #define compat_35(func) __CONCAT(compat_35_,func)
51 #else
52 #define compat_35(func) sys_nosys
53 #endif
54
55 #define s(type) sizeof(type)
56
57 struct sysent sysent[] = {
58 { 0, 0,
59 sys_nosys },
60 { 1, s(struct sys_exit_args),
61 sys_exit },
62 { 0, 0,
63 sys_fork },
64 { 3, s(struct sys_read_args),
65 sys_read },
66 { 3, s(struct sys_write_args),
67 sys_write },
68 { 3, s(struct sys_open_args),
69 sys_open },
70 { 1, s(struct sys_close_args),
71 sys_close },
72 { 4, s(struct sys_wait4_args),
73 sys_wait4 },
74 { 2, s(struct compat_43_sys_creat_args),
75 compat_43(sys_creat) },
76 { 2, s(struct sys_link_args),
77 sys_link },
78 { 1, s(struct sys_unlink_args),
79 sys_unlink },
80 { 0, 0,
81 sys_nosys },
82 { 1, s(struct sys_chdir_args),
83 sys_chdir },
84 { 1, s(struct sys_fchdir_args),
85 sys_fchdir },
86 { 3, s(struct sys_mknod_args),
87 sys_mknod },
88 { 2, s(struct sys_chmod_args),
89 sys_chmod },
90 { 3, s(struct sys_chown_args),
91 sys_chown },
92 { 1, s(struct sys_obreak_args),
93 sys_obreak },
94 { 3, s(struct compat_25_sys_getfsstat_args),
95 compat_25(sys_getfsstat) },
96 { 3, s(struct compat_43_sys_lseek_args),
97 compat_43(sys_lseek) },
98 { 0, 0,
99 sys_getpid },
100 { 4, s(struct sys_mount_args),
101 sys_mount },
102 { 2, s(struct sys_unmount_args),
103 sys_unmount },
104 { 1, s(struct sys_setuid_args),
105 sys_setuid },
106 { 0, 0,
107 sys_getuid },
108 { 0, 0,
109 sys_geteuid },
110 #ifdef PTRACE
111 { 4, s(struct sys_ptrace_args),
112 sys_ptrace },
113 #else
114 { 0, 0,
115 sys_nosys },
116 #endif
117 { 3, s(struct sys_recvmsg_args),
118 sys_recvmsg },
119 { 3, s(struct sys_sendmsg_args),
120 sys_sendmsg },
121 { 6, s(struct sys_recvfrom_args),
122 sys_recvfrom },
123 { 3, s(struct sys_accept_args),
124 sys_accept },
125 { 3, s(struct sys_getpeername_args),
126 sys_getpeername },
127 { 3, s(struct sys_getsockname_args),
128 sys_getsockname },
129 { 2, s(struct sys_access_args),
130 sys_access },
131 { 2, s(struct sys_chflags_args),
132 sys_chflags },
133 { 2, s(struct sys_fchflags_args),
134 sys_fchflags },
135 { 0, 0,
136 sys_sync },
137 { 2, s(struct sys_kill_args),
138 sys_kill },
139 { 2, s(struct compat_43_sys_stat_args),
140 compat_43(sys_stat) },
141 { 0, 0,
142 sys_getppid },
143 { 2, s(struct compat_43_sys_lstat_args),
144 compat_43(sys_lstat) },
145 { 1, s(struct sys_dup_args),
146 sys_dup },
147 { 0, 0,
148 sys_opipe },
149 { 0, 0,
150 sys_getegid },
151 { 4, s(struct sys_profil_args),
152 sys_profil },
153 #ifdef KTRACE
154 { 4, s(struct sys_ktrace_args),
155 sys_ktrace },
156 #else
157 { 0, 0,
158 sys_nosys },
159 #endif
160 { 3, s(struct sys_sigaction_args),
161 sys_sigaction },
162 { 0, 0,
163 sys_getgid },
164 { 2, s(struct sys_sigprocmask_args),
165 sys_sigprocmask },
166 { 2, s(struct sys_getlogin_args),
167 sys_getlogin },
168 { 1, s(struct sys_setlogin_args),
169 sys_setlogin },
170 #ifdef ACCOUNTING
171 { 1, s(struct sys_acct_args),
172 sys_acct },
173 #else
174 { 0, 0,
175 sys_nosys },
176 #endif
177 { 0, 0,
178 sys_sigpending },
179 { 2, s(struct sys_osigaltstack_args),
180 sys_osigaltstack },
181 { 3, s(struct sys_ioctl_args),
182 sys_ioctl },
183 { 1, s(struct sys_reboot_args),
184 sys_reboot },
185 { 1, s(struct sys_revoke_args),
186 sys_revoke },
187 { 2, s(struct sys_symlink_args),
188 sys_symlink },
189 { 3, s(struct sys_readlink_args),
190 sys_readlink },
191 { 3, s(struct sys_execve_args),
192 sys_execve },
193 { 1, s(struct sys_umask_args),
194 sys_umask },
195 { 1, s(struct sys_chroot_args),
196 sys_chroot },
197 { 2, s(struct compat_43_sys_fstat_args),
198 compat_43(sys_fstat) },
199 { 4, s(struct compat_43_sys_getkerninfo_args),
200 compat_43(sys_getkerninfo) },
201 { 0, 0,
202 compat_43(sys_getpagesize) },
203 { 2, s(struct compat_25_sys_omsync_args),
204 compat_25(sys_omsync) },
205 { 0, 0,
206 sys_vfork },
207 { 0, 0,
208 sys_nosys },
209 { 0, 0,
210 sys_nosys },
211 { 1, s(struct sys_sbrk_args),
212 sys_sbrk },
213 { 1, s(struct sys_sstk_args),
214 sys_sstk },
215 { 6, s(struct compat_43_sys_mmap_args),
216 compat_43(sys_mmap) },
217 { 1, s(struct sys_ovadvise_args),
218 sys_ovadvise },
219 { 2, s(struct sys_munmap_args),
220 sys_munmap },
221 { 3, s(struct sys_mprotect_args),
222 sys_mprotect },
223 { 3, s(struct sys_madvise_args),
224 sys_madvise },
225 { 0, 0,
226 sys_nosys },
227 { 0, 0,
228 sys_nosys },
229 { 3, s(struct sys_mincore_args),
230 sys_mincore },
231 { 2, s(struct sys_getgroups_args),
232 sys_getgroups },
233 { 2, s(struct sys_setgroups_args),
234 sys_setgroups },
235 { 0, 0,
236 sys_getpgrp },
237 { 2, s(struct sys_setpgid_args),
238 sys_setpgid },
239 { 3, s(struct sys_setitimer_args),
240 sys_setitimer },
241 { 0, 0,
242 compat_43(sys_wait) },
243 { 1, s(struct compat_25_sys_swapon_args),
244 compat_25(sys_swapon) },
245 { 2, s(struct sys_getitimer_args),
246 sys_getitimer },
247 { 2, s(struct compat_43_sys_gethostname_args),
248 compat_43(sys_gethostname) },
249 { 2, s(struct compat_43_sys_sethostname_args),
250 compat_43(sys_sethostname) },
251 { 0, 0,
252 compat_43(sys_getdtablesize) },
253 { 2, s(struct sys_dup2_args),
254 sys_dup2 },
255 { 0, 0,
256 sys_nosys },
257 { 3, s(struct sys_fcntl_args),
258 sys_fcntl },
259 { 5, s(struct sys_select_args),
260 sys_select },
261 { 0, 0,
262 sys_nosys },
263 { 1, s(struct sys_fsync_args),
264 sys_fsync },
265 { 3, s(struct sys_setpriority_args),
266 sys_setpriority },
267 { 3, s(struct sys_socket_args),
268 sys_socket },
269 { 3, s(struct sys_connect_args),
270 sys_connect },
271 { 3, s(struct compat_43_sys_accept_args),
272 compat_43(sys_accept) },
273 { 2, s(struct sys_getpriority_args),
274 sys_getpriority },
275 { 4, s(struct compat_43_sys_send_args),
276 compat_43(sys_send) },
277 { 4, s(struct compat_43_sys_recv_args),
278 compat_43(sys_recv) },
279 { 1, s(struct sys_sigreturn_args),
280 sys_sigreturn },
281 { 3, s(struct sys_bind_args),
282 sys_bind },
283 { 5, s(struct sys_setsockopt_args),
284 sys_setsockopt },
285 { 2, s(struct sys_listen_args),
286 sys_listen },
287 { 0, 0,
288 sys_nosys },
289 { 3, s(struct compat_43_sys_sigvec_args),
290 compat_43(sys_sigvec) },
291 { 1, s(struct compat_43_sys_sigblock_args),
292 compat_43(sys_sigblock) },
293 { 1, s(struct compat_43_sys_sigsetmask_args),
294 compat_43(sys_sigsetmask) },
295 { 1, s(struct sys_sigsuspend_args),
296 sys_sigsuspend },
297 { 2, s(struct compat_43_sys_sigstack_args),
298 compat_43(sys_sigstack) },
299 { 3, s(struct compat_43_sys_recvmsg_args),
300 compat_43(sys_recvmsg) },
301 { 3, s(struct compat_43_sys_sendmsg_args),
302 compat_43(sys_sendmsg) },
303 { 0, 0,
304 sys_nosys },
305 { 2, s(struct sys_gettimeofday_args),
306 sys_gettimeofday },
307 { 2, s(struct sys_getrusage_args),
308 sys_getrusage },
309 { 5, s(struct sys_getsockopt_args),
310 sys_getsockopt },
311 { 0, 0,
312 sys_nosys },
313 { 3, s(struct sys_readv_args),
314 sys_readv },
315 { 3, s(struct sys_writev_args),
316 sys_writev },
317 { 2, s(struct sys_settimeofday_args),
318 sys_settimeofday },
319 { 3, s(struct sys_fchown_args),
320 sys_fchown },
321 { 2, s(struct sys_fchmod_args),
322 sys_fchmod },
323 { 6, s(struct compat_43_sys_recvfrom_args),
324 compat_43(sys_recvfrom) },
325 { 2, s(struct sys_setreuid_args),
326 sys_setreuid },
327 { 2, s(struct sys_setregid_args),
328 sys_setregid },
329 { 2, s(struct sys_rename_args),
330 sys_rename },
331 { 2, s(struct compat_43_sys_truncate_args),
332 compat_43(sys_truncate) },
333 { 2, s(struct compat_43_sys_ftruncate_args),
334 compat_43(sys_ftruncate) },
335 { 2, s(struct sys_flock_args),
336 sys_flock },
337 { 2, s(struct sys_mkfifo_args),
338 sys_mkfifo },
339 { 6, s(struct sys_sendto_args),
340 sys_sendto },
341 { 2, s(struct sys_shutdown_args),
342 sys_shutdown },
343 { 4, s(struct sys_socketpair_args),
344 sys_socketpair },
345 { 2, s(struct sys_mkdir_args),
346 sys_mkdir },
347 { 1, s(struct sys_rmdir_args),
348 sys_rmdir },
349 { 2, s(struct sys_utimes_args),
350 sys_utimes },
351 { 0, 0,
352 sys_nosys },
353 { 2, s(struct sys_adjtime_args),
354 sys_adjtime },
355 { 3, s(struct compat_43_sys_getpeername_args),
356 compat_43(sys_getpeername) },
357 { 0, 0,
358 compat_43(sys_gethostid) },
359 { 1, s(struct compat_43_sys_sethostid_args),
360 compat_43(sys_sethostid) },
361 { 2, s(struct compat_43_sys_getrlimit_args),
362 compat_43(sys_getrlimit) },
363 { 2, s(struct compat_43_sys_setrlimit_args),
364 compat_43(sys_setrlimit) },
365 { 2, s(struct compat_43_sys_killpg_args),
366 compat_43(sys_killpg) },
367 { 0, 0,
368 sys_setsid },
369 { 4, s(struct sys_quotactl_args),
370 sys_quotactl },
371 { 0, 0,
372 compat_43(sys_quota) },
373 { 3, s(struct compat_43_sys_getsockname_args),
374 compat_43(sys_getsockname) },
375 { 0, 0,
376 sys_nosys },
377 { 0, 0,
378 sys_nosys },
379 { 0, 0,
380 sys_nosys },
381 { 0, 0,
382 sys_nosys },
383 #if defined(NFSCLIENT) || defined(NFSSERVER)
384 { 2, s(struct sys_nfssvc_args),
385 sys_nfssvc },
386 #else
387 { 0, 0,
388 sys_nosys },
389 #endif
390 { 4, s(struct compat_43_sys_getdirentries_args),
391 compat_43(sys_getdirentries) },
392 { 2, s(struct compat_25_sys_statfs_args),
393 compat_25(sys_statfs) },
394 { 2, s(struct compat_25_sys_fstatfs_args),
395 compat_25(sys_fstatfs) },
396 { 0, 0,
397 sys_nosys },
398 { 0, 0,
399 sys_nosys },
400 { 2, s(struct sys_getfh_args),
401 sys_getfh },
402 { 2, s(struct compat_09_sys_getdomainname_args),
403 compat_09(sys_getdomainname) },
404 { 2, s(struct compat_09_sys_setdomainname_args),
405 compat_09(sys_setdomainname) },
406 { 1, s(struct compat_09_sys_uname_args),
407 compat_09(sys_uname) },
408 { 2, s(struct sys_sysarch_args),
409 sys_sysarch },
410 { 0, 0,
411 sys_nosys },
412 { 0, 0,
413 sys_nosys },
414 { 0, 0,
415 sys_nosys },
416 #if defined(SYSVSEM) && !defined(__LP64__)
417 { 5, s(struct compat_10_sys_semsys_args),
418 compat_10(sys_semsys) },
419 #else
420 { 0, 0,
421 sys_nosys },
422 #endif
423 #if defined(SYSVMSG) && !defined(__LP64__)
424 { 6, s(struct compat_10_sys_msgsys_args),
425 compat_10(sys_msgsys) },
426 #else
427 { 0, 0,
428 sys_nosys },
429 #endif
430 #if defined(SYSVSHM) && !defined(__LP64__)
431 { 4, s(struct compat_10_sys_shmsys_args),
432 compat_10(sys_shmsys) },
433 #else
434 { 0, 0,
435 sys_nosys },
436 #endif
437 { 0, 0,
438 sys_nosys },
439 { 5, s(struct sys_pread_args),
440 sys_pread },
441 { 5, s(struct sys_pwrite_args),
442 sys_pwrite },
443 { 0, 0,
444 sys_nosys },
445 { 0, 0,
446 sys_nosys },
447 { 0, 0,
448 sys_nosys },
449 { 0, 0,
450 sys_nosys },
451 { 0, 0,
452 sys_nosys },
453 { 0, 0,
454 sys_nosys },
455 { 1, s(struct sys_setgid_args),
456 sys_setgid },
457 { 1, s(struct sys_setegid_args),
458 sys_setegid },
459 { 1, s(struct sys_seteuid_args),
460 sys_seteuid },
461 #ifdef LFS
462 { 3, s(struct lfs_bmapv_args),
463 lfs_bmapv },
464 { 3, s(struct lfs_markv_args),
465 lfs_markv },
466 { 2, s(struct lfs_segclean_args),
467 lfs_segclean },
468 { 2, s(struct lfs_segwait_args),
469 lfs_segwait },
470 #else
471 { 0, 0,
472 sys_nosys },
473 { 0, 0,
474 sys_nosys },
475 { 0, 0,
476 sys_nosys },
477 { 0, 0,
478 sys_nosys },
479 #endif
480 { 2, s(struct compat_35_sys_stat_args),
481 compat_35(sys_stat) },
482 { 2, s(struct compat_35_sys_fstat_args),
483 compat_35(sys_fstat) },
484 { 2, s(struct compat_35_sys_lstat_args),
485 compat_35(sys_lstat) },
486 { 2, s(struct sys_pathconf_args),
487 sys_pathconf },
488 { 2, s(struct sys_fpathconf_args),
489 sys_fpathconf },
490 { 3, s(struct sys_swapctl_args),
491 sys_swapctl },
492 { 2, s(struct sys_getrlimit_args),
493 sys_getrlimit },
494 { 2, s(struct sys_setrlimit_args),
495 sys_setrlimit },
496 { 4, s(struct sys_getdirentries_args),
497 sys_getdirentries },
498 { 7, s(struct sys_mmap_args),
499 sys_mmap },
500 { 0, 0,
501 sys_nosys },
502 { 4, s(struct sys_lseek_args),
503 sys_lseek },
504 { 3, s(struct sys_truncate_args),
505 sys_truncate },
506 { 3, s(struct sys_ftruncate_args),
507 sys_ftruncate },
508 { 6, s(struct sys___sysctl_args),
509 sys___sysctl },
510 { 2, s(struct sys_mlock_args),
511 sys_mlock },
512 { 2, s(struct sys_munlock_args),
513 sys_munlock },
514 { 0, 0,
515 sys_nosys },
516 { 2, s(struct sys_futimes_args),
517 sys_futimes },
518 { 1, s(struct sys_getpgid_args),
519 sys_getpgid },
520 { 5, s(struct sys_xfspioctl_args),
521 sys_xfspioctl },
522 { 0, 0,
523 sys_nosys },
524 #ifdef LKM
525 { 0, 0,
526 sys_lkmnosys },
527 { 0, 0,
528 sys_lkmnosys },
529 { 0, 0,
530 sys_lkmnosys },
531 { 0, 0,
532 sys_lkmnosys },
533 { 0, 0,
534 sys_lkmnosys },
535 { 0, 0,
536 sys_lkmnosys },
537 { 0, 0,
538 sys_lkmnosys },
539 { 0, 0,
540 sys_lkmnosys },
541 { 0, 0,
542 sys_lkmnosys },
543 { 0, 0,
544 sys_lkmnosys },
545 #else
546 { 0, 0,
547 sys_nosys },
548 { 0, 0,
549 sys_nosys },
550 { 0, 0,
551 sys_nosys },
552 { 0, 0,
553 sys_nosys },
554 { 0, 0,
555 sys_nosys },
556 { 0, 0,
557 sys_nosys },
558 { 0, 0,
559 sys_nosys },
560 { 0, 0,
561 sys_nosys },
562 { 0, 0,
563 sys_nosys },
564 { 0, 0,
565 sys_nosys },
566 #endif
567 #ifdef SYSVSEM
568 { 4, s(struct compat_23_sys___semctl_args),
569 compat_23(sys___semctl) },
570 { 3, s(struct sys_semget_args),
571 sys_semget },
572 { 3, s(struct compat_35_sys_semop_args),
573 compat_35(sys_semop) },
574 { 0, 0,
575 sys_nosys },
576 #else
577 { 0, 0,
578 sys_nosys },
579 { 0, 0,
580 sys_nosys },
581 { 0, 0,
582 sys_nosys },
583 { 0, 0,
584 sys_nosys },
585 #endif
586 #ifdef SYSVMSG
587 { 3, s(struct compat_23_sys_msgctl_args),
588 compat_23(sys_msgctl) },
589 { 2, s(struct sys_msgget_args),
590 sys_msgget },
591 { 4, s(struct sys_msgsnd_args),
592 sys_msgsnd },
593 { 5, s(struct sys_msgrcv_args),
594 sys_msgrcv },
595 #else
596 { 0, 0,
597 sys_nosys },
598 { 0, 0,
599 sys_nosys },
600 { 0, 0,
601 sys_nosys },
602 { 0, 0,
603 sys_nosys },
604 #endif
605 #ifdef SYSVSHM
606 { 3, s(struct sys_shmat_args),
607 sys_shmat },
608 { 3, s(struct compat_23_sys_shmctl_args),
609 compat_23(sys_shmctl) },
610 { 1, s(struct sys_shmdt_args),
611 sys_shmdt },
612 { 3, s(struct compat_35_sys_shmget_args),
613 compat_35(sys_shmget) },
614 #else
615 { 0, 0,
616 sys_nosys },
617 { 0, 0,
618 sys_nosys },
619 { 0, 0,
620 sys_nosys },
621 { 0, 0,
622 sys_nosys },
623 #endif
624 { 2, s(struct sys_clock_gettime_args),
625 sys_clock_gettime },
626 { 2, s(struct sys_clock_settime_args),
627 sys_clock_settime },
628 { 2, s(struct sys_clock_getres_args),
629 sys_clock_getres },
630 { 0, 0,
631 sys_nosys },
632 { 0, 0,
633 sys_nosys },
634 { 0, 0,
635 sys_nosys },
636 { 0, 0,
637 sys_nosys },
638 { 0, 0,
639 sys_nosys },
640 { 2, s(struct sys_nanosleep_args),
641 sys_nanosleep },
642 { 0, 0,
643 sys_nosys },
644 { 0, 0,
645 sys_nosys },
646 { 0, 0,
647 sys_nosys },
648 { 0, 0,
649 sys_nosys },
650 { 0, 0,
651 sys_nosys },
652 { 0, 0,
653 sys_nosys },
654 { 0, 0,
655 sys_nosys },
656 { 0, 0,
657 sys_nosys },
658 { 0, 0,
659 sys_nosys },
660 { 3, s(struct sys_minherit_args),
661 sys_minherit },
662 { 1, s(struct sys_rfork_args),
663 sys_rfork },
664 { 3, s(struct sys_poll_args),
665 sys_poll },
666 { 0, 0,
667 sys_issetugid },
668 { 3, s(struct sys_lchown_args),
669 sys_lchown },
670 { 1, s(struct sys_getsid_args),
671 sys_getsid },
672 { 3, s(struct sys_msync_args),
673 sys_msync },
674 #ifdef SYSVSEM
675 { 4, s(struct compat_35_sys___semctl_args),
676 compat_35(sys___semctl) },
677 #else
678 { 0, 0,
679 sys_nosys },
680 #endif
681 #ifdef SYSVSHM
682 { 3, s(struct compat_35_sys_shmctl_args),
683 compat_35(sys_shmctl) },
684 #else
685 { 0, 0,
686 sys_nosys },
687 #endif
688 #ifdef SYSVMSG
689 { 3, s(struct compat_35_sys_msgctl_args),
690 compat_35(sys_msgctl) },
691 #else
692 { 0, 0,
693 sys_nosys },
694 #endif
695 { 3, s(struct sys_getfsstat_args),
696 sys_getfsstat },
697 { 2, s(struct sys_statfs_args),
698 sys_statfs },
699 { 2, s(struct sys_fstatfs_args),
700 sys_fstatfs },
701 { 1, s(struct sys_pipe_args),
702 sys_pipe },
703 { 2, s(struct sys_fhopen_args),
704 sys_fhopen },
705 { 2, s(struct compat_35_sys_fhstat_args),
706 compat_35(sys_fhstat) },
707 { 2, s(struct sys_fhstatfs_args),
708 sys_fhstatfs },
709 { 5, s(struct sys_preadv_args),
710 sys_preadv },
711 { 5, s(struct sys_pwritev_args),
712 sys_pwritev },
713 { 0, 0,
714 sys_kqueue },
715 { 6, s(struct sys_kevent_args),
716 sys_kevent },
717 { 1, s(struct sys_mlockall_args),
718 sys_mlockall },
719 { 0, 0,
720 sys_munlockall },
721 { 3, s(struct sys_getpeereid_args),
722 sys_getpeereid },
723 { 0, 0,
724 sys_nosys },
725 { 0, 0,
726 sys_nosys },
727 { 0, 0,
728 sys_nosys },
729 { 0, 0,
730 sys_nosys },
731 { 0, 0,
732 sys_nosys },
733 { 0, 0,
734 sys_nosys },
735 { 0, 0,
736 sys_nosys },
737 { 3, s(struct sys_getresuid_args),
738 sys_getresuid },
739 { 3, s(struct sys_setresuid_args),
740 sys_setresuid },
741 { 3, s(struct sys_getresgid_args),
742 sys_getresgid },
743 { 3, s(struct sys_setresgid_args),
744 sys_setresgid },
745 { 0, 0,
746 sys_nosys },
747 { 7, s(struct sys_mquery_args),
748 sys_mquery },
749 { 1, s(struct sys_closefrom_args),
750 sys_closefrom },
751 { 2, s(struct sys_sigaltstack_args),
752 sys_sigaltstack },
753 #ifdef SYSVSHM
754 { 3, s(struct sys_shmget_args),
755 sys_shmget },
756 #else
757 { 0, 0,
758 sys_nosys },
759 #endif
760 #ifdef SYSVSEM
761 { 3, s(struct sys_semop_args),
762 sys_semop },
763 #else
764 { 0, 0,
765 sys_nosys },
766 #endif
767 { 2, s(struct sys_stat_args),
768 sys_stat },
769 { 2, s(struct sys_fstat_args),
770 sys_fstat },
771 { 2, s(struct sys_lstat_args),
772 sys_lstat },
773 { 2, s(struct sys_fhstat_args),
774 sys_fhstat },
775 #ifdef SYSVSEM
776 { 4, s(struct sys___semctl_args),
777 sys___semctl },
778 #else
779 { 0, 0,
780 sys_nosys },
781 #endif
782 #ifdef SYSVSHM
783 { 3, s(struct sys_shmctl_args),
784 sys_shmctl },
785 #else
786 { 0, 0,
787 sys_nosys },
788 #endif
789 #ifdef SYSVMSG
790 { 3, s(struct sys_msgctl_args),
791 sys_msgctl },
792 #else
793 { 0, 0,
794 sys_nosys },
795 #endif
796 { 0, 0,
797 sys_sched_yield },
798 #ifdef RTHREADS
799 { 0, 0,
800 sys_getthrid },
801 { 3, s(struct sys_thrsleep_args),
802 sys_thrsleep },
803 { 2, s(struct sys_thrwakeup_args),
804 sys_thrwakeup },
805 { 1, s(struct sys_threxit_args),
806 sys_threxit },
807 { 1, s(struct sys_thrsigdivert_args),
808 sys_thrsigdivert },
809 #else
810 { 0, 0,
811 sys_nosys },
812 { 0, 0,
813 sys_nosys },
814 { 0, 0,
815 sys_nosys },
816 { 0, 0,
817 sys_nosys },
818 { 0, 0,
819 sys_nosys },
820 #endif
821 { 2, s(struct sys___getcwd_args),
822 sys___getcwd },
823 { 2, s(struct sys_adjfreq_args),
824 sys_adjfreq },
825 };
826