UbixOS V2 2.0

syscalls_posix.c
Go to the documentation of this file.
1 /*-
2 * Copyright (c) 2002-2018 The UbixOS Project.
3 * All rights reserved.
4 *
5 * This was developed by Christopher W. Olsen for the UbixOS Project.
6 *
7 * Redistribution and use in source and binary forms, with or without modification, are permitted
8 * provided that the following conditions are met:
9 *
10 * 1) Redistributions of source code must retain the above copyright notice, this list of
11 * conditions, the following disclaimer and the list of authors.
12 * 2) Redistributions in binary form must reproduce the above copyright notice, this list of
13 * conditions, the following disclaimer and the list of authors in the documentation and/or
14 * other materials provided with the distribution.
15 * 3) Neither the name of the UbixOS Project nor the names of its contributors may be used to
16 * endorse or promote products derived from this software without specific prior written
17 * permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
20 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
22 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
24 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29 #include <ubixos/syscalls.h>
30 #include <sys/sysproto_posix.h>
31
32 /* System Calls List */
33 struct syscall_entry systemCalls_posix[] = {
34 {
35 0,
36 "No Call",
37 sys_invalid,
38 SYSCALL_VALID }, /* 0 */
39 {
40 ARG_COUNT(sys_exit_args),
41 "exit",
42 (sys_call_t *) sys_exit,
43 SYSCALL_VALID }, /* 1 */
44 {
45 ARG_COUNT(sys_fork_args),
46 "fork",
47 (sys_call_t *) sys_fork,
48 SYSCALL_VALID }, /* 2 */
49 {
50 ARG_COUNT(sys_read_args),
51 "read",
52 (sys_call_t *) sys_read,
53 SYSCALL_VALID }, /* 3 */
54 {
55 ARG_COUNT(sys_write_args),
56 "write",
57 (sys_call_t *) sys_write,
58 SYSCALL_VALID }, /* 4 */
59 {
60 ARG_COUNT(sys_open_args),
61 "open",
62 (sys_call_t *) sys_open,
63 SYSCALL_VALID }, /* 5 */
64 {
65 ARG_COUNT(sys_close_args),
66 "close",
67 (sys_call_t *) sys_close,
68 SYSCALL_VALID }, /* 6 */
69 {
70 ARG_COUNT(sys_wait4_args),
71 "wiat4",
72 (sys_call_t *) sys_wait4,
73 SYSCALL_VALID }, /* 7 */
74 {
75 0,
76 "No Call",
77 sys_invalid,
78 SYSCALL_INVALID }, /* 8 */
79 {
80 0,
81 "link",
82 sys_invalid,
83 SYSCALL_NOTIMP }, /* 9 */
84 {
85 0,
86 "unlink",
87 sys_invalid,
88 SYSCALL_NOTIMP }, /* 10 */
89 {
90 0,
91 "No Call",
92 sys_invalid,
93 SYSCALL_INVALID }, /* 11 */
94 {
95 ARG_COUNT(sys_chdir_args),
96 "cgdur",
97 (sys_call_t *) sys_chdir,
98 SYSCALL_VALID }, /* 12 */
99 {
100 ARG_COUNT(sys_fchdir_args),
101 "fchdir",
102 sys_fchdir,
103 SYSCALL_VALID }, /* 13 */
104 {
105 0,
106 "mknod",
107 sys_invalid,
108 SYSCALL_NOTIMP }, /* 14 */
109 {
110 0,
111 "chmod",
112 sys_invalid,
113 SYSCALL_NOTIMP }, /* 15 */
114 {
115 0,
116 "chown",
117 sys_invalid,
118 SYSCALL_NOTIMP }, /* 16 */
119 {
120 0,
121 "break",
122 sys_invalid,
123 SYSCALL_NOTIMP }, /* 17 */
124 {
125 0,
126 "No Call",
127 sys_invalid,
128 SYSCALL_INVALID }, /* 18 */
129 {
130 0,
131 "No Call",
132 sys_invalid,
133 SYSCALL_INVALID }, /* 19 */
134 {
135 ARG_COUNT(sys_getpid_args),
136 "getpid",
137 sys_getpid,
138 SYSCALL_VALID }, // 20 - getpid
139 {
140 0,
141 "mount",
142 sys_invalid,
143 SYSCALL_NOTIMP }, // 21 - mount
144 {
145 0,
146 "unmount",
147 sys_invalid,
148 SYSCALL_NOTIMP }, // 22 - unmount
149 {
150 ARG_COUNT(sys_setUID_args),
151 "setuid",
152 (sys_call_t *) sys_setUID,
153 SYSCALL_VALID }, // 23 - setUID
154 {
155 0,
156 "getuid",
157 sys_getUID,
158 SYSCALL_VALID }, // 24 - getuid
159 {
160 ARG_COUNT(sys_geteuid_args),
161 "geteuid",
162 sys_geteuid,
163 SYSCALL_VALID }, // 25 - geteuid
164 {
165 0,
166 "ptrace",
167 sys_invalid,
168 SYSCALL_NOTIMP }, // 26 - ptrace
169 {
170 0,
171 "recvmsg",
172 sys_invalid,
173 SYSCALL_NOTIMP }, // 27 - recvmsg
174 {
175 0,
176 "sendmsg",
177 sys_invalid,
178 SYSCALL_NOTIMP }, // 28 - sendmsg
179 {
180 0,
181 "recvfrom",
182 sys_invalid,
183 SYSCALL_NOTIMP }, // 29 - recvfrom
184 {
185 0,
186 "accept",
187 sys_invalid,
188 SYSCALL_NOTIMP }, // 30 - accept
189 {
190 0,
191 "getpeername",
192 sys_invalid,
193 SYSCALL_NOTIMP }, // 31 - getpeername
194 {
195 0,
196 "getsockname",
197 sys_invalid,
198 SYSCALL_NOTIMP }, // 32 - getsockname
199 {
200 ARG_COUNT(sys_access_args),
201 "access",
202 sys_access,
203 SYSCALL_VALID }, /* 33 */
204 {
205 0,
206 "chflags",
207 sys_invalid,
208 SYSCALL_NOTIMP }, // 34 - chflags
209 {
210 0,
211 "fchflags",
212 sys_invalid,
213 SYSCALL_NOTIMP }, // 35 - fchflags
214 {
215 0,
216 "sync",
217 sys_invalid,
218 SYSCALL_NOTIMP }, // 36 - sync
219 {
220 0,
221 "kill",
222 sys_invalid,
223 SYSCALL_NOTIMP }, // 37 - kill
224 {
225 0,
226 "No Call",
227 sys_invalid,
228 SYSCALL_INVALID }, // 38
229 {
230 ARG_COUNT(sys_getppid_args),
231 "getpid",
232 sys_getpid,
233 SYSCALL_VALID }, // 39 - getppid
234 {
235 0,
236 "No Call",
237 sys_invalid,
238 SYSCALL_INVALID }, // 40
239 {
240 0,
241 "dup",
242 sys_invalid,
243 SYSCALL_NOTIMP }, // 41 - dup
244 {
245 0,
246 "No Call",
247 sys_invalid,
248 SYSCALL_INVALID }, // 42
249 {
250 ARG_COUNT(sys_getegid_args),
251 "getegid",
252 sys_getegid,
253 SYSCALL_VALID }, // 43 - getegid
254 {
255 0,
256 "profil",
257 sys_invalid,
258 SYSCALL_NOTIMP }, // 44 - profil
259 {
260 0,
261 "No Call",
262 sys_invalid,
263 SYSCALL_NOTIMP }, // 45 - ktrace
264 {
265 0,
266 "No Call",
267 sys_invalid,
268 SYSCALL_INVALID }, // 46
269 {
270 0,
271 "getuid",
272 sys_getGID,
273 SYSCALL_VALID }, // 47 - getgid
274 {
275 0,
276 "No Call",
277 sys_invalid,
278 SYSCALL_INVALID }, // 48
279 {
280 ARG_COUNT(sys_getlogin_args),
281 "getlogin",
282 sys_getlogin,
283 SYSCALL_VALID }, /* 49 */
284 {
285 ARG_COUNT(sys_setlogin_args),
286 "setlogin",
287 sys_setlogin,
288 SYSCALL_NOTIMP }, /* 50 */
289 {
290 0,
291 "acct",
292 sys_invalid,
293 SYSCALL_NOTIMP }, /* 51 */
294 {
295 0,
296 "No Call",
297 sys_invalid,
298 SYSCALL_INVALID }, /* 52 */
299 {
300 0,
301 "sigaltstack",
302 sys_invalid,
303 SYSCALL_NOTIMP }, /* 53 */
304 {
305 ARG_COUNT(sys_ioctl_args),
306 "ioctl",
307 sys_ioctl,
308 SYSCALL_VALID }, // 54 - ioctl
309 {
310 0,
311 "reboot",
312 sys_invalid,
313 SYSCALL_NOTIMP }, // 55 - reboot
314 {
315 0,
316 "revoke",
317 sys_invalid,
318 SYSCALL_NOTIMP }, // 56 - revoke
319 {
320 0,
321 "symlink",
322 sys_invalid,
323 SYSCALL_NOTIMP }, /* 57 */
324 {
325 0,
326 "readlink",
327 sys_readlink,
328 SYSCALL_VALID }, /* 58 */
329 {
330 ARG_COUNT(sys_execve_args),
331 "execve",
332 (sys_call_t *) sys_execve,
333 SYSCALL_VALID }, // 59 - execv
334 {
335 0,
336 "umask",
337 sys_invalid,
338 SYSCALL_NOTIMP }, // 60 - umask
339 {
340 0,
341 "chroot",
342 sys_invalid,
343 SYSCALL_NOTIMP }, // 61 - chroot
344 {
345 0,
346 "No Call",
347 sys_invalid,
348 SYSCALL_INVALID }, // 62
349 {
350 0,
351 "No Call",
352 sys_invalid,
353 SYSCALL_INVALID }, // 63
354 {
355 0,
356 "No Call",
357 sys_invalid,
358 SYSCALL_INVALID }, // 64
359 {
360 0,
361 "msync",
362 sys_invalid,
363 SYSCALL_NOTIMP }, // 65 - msync
364 {
365 0,
366 "vfork",
367 sys_invalid,
368 SYSCALL_NOTIMP }, // 66 - vfork
369 {
370 0,
371 "No Call",
372 sys_invalid,
373 SYSCALL_INVALID }, /* 67 - Invalid */
374 {
375 0,
376 "No Call",
377 sys_invalid,
378 SYSCALL_INVALID }, /* 68 - Invalid */
379 {
380 0,
381 "sbrk",
382 sys_invalid,
383 SYSCALL_NOTIMP }, /* 69 - sbrk */
384 {
385 0,
386 "sstk",
387 sys_invalid,
388 SYSCALL_NOTIMP }, /* 70 - sstk */
389 {
390 0,
391 "old mmap",
392 sys_invalid,
393 SYSCALL_INVALID }, // 71
394 {
395 0,
396 "vadvise",
397 sys_invalid,
398 SYSCALL_NOTIMP }, /* 72 */
399 {
400 ARG_COUNT(sys_munmap_args),
401 "munmap",
402 sys_munmap,
403 SYSCALL_VALID }, /* 73 */
404 {
405 0,
406 "mprotect",
407 sys_invalid,
408 SYSCALL_NOTIMP }, /* 74 */
409 {
410 0,
411 "madvise",
412 sys_invalid,
413 SYSCALL_NOTIMP }, /* 75 */
414 {
415 0,
416 "Obsolete vhangup",
417 sys_invalid,
418 SYSCALL_INVALID }, /* 76 - Invalid */
419 {
420 0,
421 "Obsolete vlimit",
422 sys_invalid,
423 SYSCALL_INVALID }, /* 77 - Invalid */
424 {
425 0,
426 "mincore",
427 sys_invalid,
428 SYSCALL_NOTIMP }, /* 78 - minicore */
429 {
430 0,
431 "getgroups",
432 sys_invalid,
433 SYSCALL_NOTIMP }, /* 79 - getgroups */
434 {
435 0,
436 "setgroups",
437 sys_invalid,
438 SYSCALL_NOTIMP }, /* 80 - setgroups */
439 {
440 ARG_COUNT(sys_getpgrp_args),
441 "getpgrp",
442 sys_getpgrp,
443 SYSCALL_VALID }, // 81 - getpgrp
444 {
445 ARG_COUNT(sys_setpgid_args),
446 "setpgid",
447 sys_setpgid,
448 SYSCALL_VALID }, // 82 - setpgid
449 {
450 0,
451 "setitimer",
452 sys_invalid,
453 SYSCALL_NOTIMP }, /* 83 - setitimer */
454 {
455 0,
456 "old wait",
457 sys_invalid,
458 SYSCALL_INVALID }, /* 84 - Invalid */
459 {
460 0,
461 "swapon",
462 sys_invalid,
463 SYSCALL_NOTIMP }, /* 85 - swapon */
464 {
465 0,
466 "getitimer",
467 sys_invalid,
468 SYSCALL_NOTIMP }, /* 86 - getitimer */
469 {
470 0,
471 "old gethostname",
472 sys_invalid,
473 SYSCALL_INVALID }, /* 87 */
474 {
475 0,
476 "Get Free Page",
477 (sys_call_t *) sysGetFreePage,
478 SYSCALL_VALID }, /* 88 - getFreePage TEMP OLD sethostname */
479 {
480 0,
481 "getdtablesize",
482 sys_invalid,
483 SYSCALL_NOTIMP }, /* 89 - gettablesize */
484 {
485 ARG_COUNT(sys_dup2_args),
486 "dup2",
487 sys_dup2,
488 SYSCALL_VALID }, /* 90 - dup2 */
489 {
490 0,
491 "getdopt",
492 sys_invalid,
493 SYSCALL_NOTIMP }, /* 91 - getdopt */
494 {
495 ARG_COUNT(sys_fcntl_args),
496 "fcntl",
497 sys_fcntl,
498 SYSCALL_VALID }, // 92 - fcntl
499 {
500 ARG_COUNT(sys_select_args),
501 "select",
502 sys_select,
503 SYSCALL_VALID }, // 93 - select
504 {
505 0,
506 "setdopt",
507 sys_invalid,
508 SYSCALL_NOTIMP }, /* 94 - setdopt */
509 {
510 0,
511 "fsync",
512 sys_invalid,
513 SYSCALL_NOTIMP }, /* 95 - fsync */
514 {
515 0,
516 "setpriority",
517 sys_invalid,
518 SYSCALL_NOTIMP }, /* 96 - setpriority */
519 {
520 ARG_COUNT(sys_socket_args),
521 "socket",
522 sys_socket,
523 SYSCALL_VALID }, // 97 - socket
524 {
525 0,
526 "connect",
527 sys_invalid,
528 SYSCALL_NOTIMP }, /* 98 - connect */
529 {
530 0,
531 "old accept",
532 sys_invalid,
533 SYSCALL_INVALID }, /* 99 */
534 {
535 0,
536 "getpriority",
537 sys_invalid,
538 SYSCALL_NOTIMP }, /* 100 - getpriority */
539 {
540 0,
541 "old send",
542 sys_invalid,
543 SYSCALL_INVALID }, /* 101 */
544 {
545 0,
546 "old recv",
547 sys_invalid,
548 SYSCALL_INVALID }, /* 102 */
549 {
550 0,
551 "old sigreturn",
552 sys_invalid,
553 SYSCALL_INVALID }, /* 103 */
554 {
555 0,
556 "bind",
557 sys_invalid,
558 SYSCALL_NOTIMP }, // 104 - bind
559 {
560 ARG_COUNT(sys_setsockopt_args),
561 "setsockopt",
562 sys_setsockopt,
563 SYSCALL_VALID }, // 105 setsockopt
564 {
565 0,
566 "listen",
567 sys_invalid,
568 SYSCALL_NOTIMP }, /* 106 - listen */
569 {
570 0,
571 "obsolete vtimes",
572 sys_invalid,
573 SYSCALL_INVALID }, /* 107 */
574 {
575 0,
576 "old sigvec",
577 sys_invalid,
578 SYSCALL_INVALID }, /* 108 - Invalid */
579 {
580 0,
581 "old sigblock",
582 sys_invalid,
583 SYSCALL_INVALID }, /* 109 - Invalid */
584 {
585 0,
586 "old sigsetmask",
587 sys_invalid,
588 SYSCALL_INVALID }, /* 110 - Invalid */
589 {
590 0,
591 "old sigsuspend",
592 sys_invalid,
593 SYSCALL_INVALID }, /* 111 - Invalid */
594 {
595 0,
596 "old sigstack",
597 sys_invalid,
598 SYSCALL_INVALID }, /* 112 - Invalid */
599 {
600 0,
601 "old recvmsg",
602 sys_invalid,
603 SYSCALL_INVALID }, /* 113 - Invalid */
604 {
605 0,
606 "old sendmsg",
607 sys_invalid,
608 SYSCALL_INVALID }, /* 114 - Invalid */
609 {
610 0,
611 "obsolete vtrace",
612 sys_invalid,
613 SYSCALL_INVALID }, /* 115 - Invalid */
614 {
615 ARG_COUNT(sys_gettimeofday_args),
616 "gettimeofday",
617 sys_gettimeofday,
618 SYSCALL_VALID }, // 116 - gettimeofday
619 {
620 0,
621 "getrusage",
622 sys_invalid,
623 SYSCALL_NOTIMP }, /* 117 - getrusage */
624 {
625 0,
626 "getsockopt",
627 sys_invalid,
628 SYSCALL_NOTIMP }, /* 118 - getsockopt */
629 {
630 0,
631 "resuba",
632 sys_invalid,
633 SYSCALL_NOTIMP }, /* 119 - resuba */
634 {
635 0,
636 "readv",
637 sys_invalid,
638 SYSCALL_NOTIMP }, /* 120 - readv */
639 {
640 0,
641 "writev",
642 sys_invalid,
643 SYSCALL_NOTIMP }, /* 121 - writev */
644 {
645 0,
646 "settimeofday",
647 sys_invalid,
648 SYSCALL_NOTIMP }, /* 122 - settimeofday */
649 {
650 0,
651 "fchown",
652 sys_invalid,
653 SYSCALL_NOTIMP }, /* 123 - fchown */
654 {
655 0,
656 "fchmod",
657 sys_invalid,
658 SYSCALL_NOTIMP }, /* 124 - fchmod */
659 {
660 0,
661 "old recvfrom",
662 sys_invalid,
663 SYSCALL_INVALID }, /* 125 - Invalid */
664 {
665 0,
666 "setreuid",
667 sys_invalid,
668 SYSCALL_NOTIMP }, /* 126 - setreuid */
669 {
670 0,
671 "setregid",
672 sys_invalid,
673 SYSCALL_NOTIMP }, /* 127 - setregid */
674 {
675 ARG_COUNT(sys_rename_args),
676 "rename",
677 sys_rename,
678 SYSCALL_VALID }, /* 128 - rename */
679 {
680 0,
681 "old truncate",
682 sys_invalid,
683 SYSCALL_INVALID }, /* 129 - Invalid */
684 {
685 0,
686 "old fruncate",
687 sys_invalid,
688 SYSCALL_INVALID }, /* 130 - Invalid */
689 {
690 0,
691 "flock",
692 sys_invalid,
693 SYSCALL_NOTIMP }, /* 131 - flock */
694 {
695 0,
696 "mkfifo",
697 sys_invalid,
698 SYSCALL_NOTIMP }, /* 132 - mkfifo */
699 {
700 ARG_COUNT(sys_sendto_args),
701 "sendto",
702 sys_sendto,
703 SYSCALL_VALID }, // 133 - sendto
704 {
705 0,
706 "shutdown",
707 sys_invalid,
708 SYSCALL_NOTIMP }, /* 134 - shutdown */
709 {
710 0,
711 "socketpair",
712 sys_invalid,
713 SYSCALL_NOTIMP }, /* 135 - socketpair */
714 {
715 0,
716 "mkdir",
717 sys_invalid,
718 SYSCALL_NOTIMP }, /* 136 - mkdir */
719 {
720 0,
721 "rmdir",
722 sys_invalid,
723 SYSCALL_NOTIMP }, /* 137 - rmdir */
724 {
725 0,
726 "utimes",
727 sys_invalid,
728 SYSCALL_NOTIMP }, /* 138 - utimes */
729 {
730 0,
731 "obsolete sigreturn",
732 sys_invalid,
733 SYSCALL_INVALID }, /* 139 - Invalid */
734 {
735 0,
736 "adjtime",
737 sys_invalid,
738 SYSCALL_NOTIMP }, /* 140 - adjtime */
739 {
740 0,
741 "old getpeername",
742 sys_invalid,
743 SYSCALL_INVALID }, /* 141 - Invalid */
744 {
745 0,
746 "ikd gethostid",
747 sys_invalid,
748 SYSCALL_INVALID }, /* 142 - Invalid */
749 {
750 0,
751 "old sethostid",
752 sys_invalid,
753 SYSCALL_INVALID }, /* 143 - Invalid */
754 {
755 0,
756 "old getrlimit",
757 sys_invalid,
758 SYSCALL_INVALID }, /* 144 - Invalid */
759 {
760 0,
761 "old setrlimit",
762 sys_invalid,
763 SYSCALL_INVALID }, /* 145 - Invalid */
764 {
765 0,
766 "old killpg",
767 sys_invalid,
768 SYSCALL_INVALID }, /* 146 - Invalid */
769 {
770 0,
771 "setsid",
772 sys_invalid,
773 SYSCALL_NOTIMP }, /* 147 - setsid */
774 {
775 0,
776 "quotactl",
777 sys_invalid,
778 SYSCALL_NOTIMP }, /* 148 - quotactl */
779 {
780 0,
781 "old quota",
782 sys_invalid,
783 SYSCALL_INVALID }, /* 149 - Invalid */
784 {
785 0,
786 "old getsockname",
787 sys_invalid,
788 SYSCALL_INVALID }, /* 150 - Invalid */
789 {
790 0,
791 "sem_lock",
792 sys_invalid,
793 SYSCALL_NOTIMP }, /* 151 - sem_lock */
794 {
795 0,
796 "sem_wakeup",
797 sys_invalid,
798 SYSCALL_NOTIMP }, /* 152 - sem_Wakeup */
799 {
800 0,
801 "asyncdaemon",
802 sys_invalid,
803 SYSCALL_NOTIMP }, /* 153 - asyncdaemon */
804 {
805 0,
806 "nlm_syscall",
807 sys_invalid,
808 SYSCALL_NOTIMP }, /* 154 - nlm_syscall */
809 {
810 0,
811 "nfssvc",
812 sys_invalid,
813 SYSCALL_NOTIMP }, /* 155 - nfssvc */
814 {
815 0,
816 "old getdirentries",
817 sys_invalid,
818 SYSCALL_INVALID }, /* 156 - Invalid */
819 {
820 0,
821 "old statfs",
822 sys_invalid,
823 SYSCALL_INVALID }, /* 157 - Invalid */
824 {
825 0,
826 "old fstatfs",
827 sys_invalid,
828 SYSCALL_INVALID }, /* 158 - Invalid */
829 {
830 0,
831 "nosys",
832 sys_invalid,
833 SYSCALL_NOTIMP }, /* 159 - nosys */
834 {
835 0,
836 "lgetfh",
837 sys_invalid,
838 SYSCALL_NOTIMP }, /* 160 - lgetfh */
839 {
840 0,
841 "getfh",
842 sys_invalid,
843 SYSCALL_NOTIMP }, /* 161 - Invalid */
844 {
845 0,
846 "old getdomainname",
847 sys_invalid,
848 SYSCALL_INVALID }, /* 162 - Invalid */
849 {
850 0,
851 "old setdomainname",
852 sys_invalid,
853 SYSCALL_INVALID }, /* 163 - Invalid */
854 {
855 0,
856 "old uname",
857 sys_invalid,
858 SYSCALL_INVALID }, /* 164 - Invalid */
859 {
860 ARG_COUNT(sys_sysarch_args),
861 "sysarch",
862 sys_sysarch,
863 SYSCALL_VALID }, // 165 - sysarch
864 {
865 0,
866 "rtprio",
867 sys_invalid,
868 SYSCALL_NOTIMP }, /* 166 - rtprio */
869 {
870 0,
871 "nosys",
872 sys_invalid,
873 SYSCALL_NOTIMP }, /* 167 - nosys */
874 {
875 0,
876 "nosys",
877 sys_invalid,
878 SYSCALL_NOTIMP }, /* 168 - nosys */
879 {
880 0,
881 "semsys",
882 sys_invalid,
883 SYSCALL_NOTIMP }, /* 169 - semsys */
884 {
885 0,
886 "msgsys",
887 sys_invalid,
888 SYSCALL_NOTIMP }, /* 170 - msgsys */
889 {
890 0,
891 "shmsys",
892 sys_invalid,
893 SYSCALL_NOTIMP }, /* 171 - shmsys */
894 {
895 0,
896 "nosys",
897 sys_invalid,
898 SYSCALL_NOTIMP }, /* 172 - nosys */
899 {
900 0,
901 "old pread",
902 sys_invalid,
903 SYSCALL_INVALID }, /* 173 - Invalid */
904 {
905 0,
906 "old pwrite",
907 sys_invalid,
908 SYSCALL_INVALID }, /* 174 - Invalid */
909 {
910 0,
911 "setfib",
912 sys_invalid,
913 SYSCALL_NOTIMP }, /* 175 - setfib */
914 {
915 0,
916 "ntp_adjtime",
917 sys_invalid,
918 SYSCALL_NOTIMP }, /* 176 - ntp_adjtime */
919 {
920 0,
921 "sfork",
922 sys_invalid,
923 SYSCALL_NOTIMP }, /* 177 - sfork */
924 {
925 0,
926 "getdescriptor",
927 sys_invalid,
928 SYSCALL_NOTIMP }, /* 178 - getdescriptor */
929 {
930 0,
931 "setdescriptor",
932 sys_invalid,
933 SYSCALL_NOTIMP }, /* 179 - setdescriptor */
934 {
935 0,
936 "nosys",
937 sys_invalid,
938 SYSCALL_NOTIMP }, /* 180 - Invalid */
939 {
940 ARG_COUNT(sys_setGID_args),
941 "setgid",
942 (sys_call_t *) sys_setGID,
943 SYSCALL_VALID }, /* 181 - setgid */
944 {
945 0,
946 "setegid",
947 sys_invalid,
948 SYSCALL_NOTIMP }, // 182 - setegid
949 {
950 0,
951 "seteuid",
952 sys_invalid,
953 SYSCALL_NOTIMP }, // 183 - seteuid
954 {
955 0,
956 "lfs_bmapv",
957 sys_invalid,
958 SYSCALL_NOTIMP }, /* 184 - Invalid */
959 {
960 0,
961 "lfs_markv",
962 sys_invalid,
963 SYSCALL_NOTIMP }, /* 185 - Invalid */
964 {
965 0,
966 "lfs_segclean",
967 sys_invalid,
968 SYSCALL_NOTIMP }, /* 186 - Invalid */
969 {
970 0,
971 "lfs_segwait",
972 sys_invalid,
973 SYSCALL_NOTIMP }, /* 187 - Invalid */
974 {
975 ARG_COUNT(sys_stat_args),
976 "stat",
977 (sys_call_t *) sys_stat,
978 SYSCALL_VALID }, /* 188 - sys_stat */
979 {
980 ARG_COUNT(sys_fstat_args),
981 "fstat",
982 (sys_call_t *) sys_fstat,
983 SYSCALL_VALID }, /* 189 - sys_fstat */
984 {
985 ARG_COUNT(sys_lstat_args),
986 "lstat",
987 (sys_call_t *) sys_lstat,
988 SYSCALL_VALID }, /* 190 - sys_lstat */
989 {
990 0,
991 "pathconf",
992 sys_invalid,
993 SYSCALL_NOTIMP }, /* 191 - Invalid */
994 {
995 0,
996 "fpathconf",
997 sys_invalid,
998 SYSCALL_NOTIMP }, /* 192 - Invalid */
999 {
1000 0,
1001 "nosys",
1002 sys_invalid,
1003 SYSCALL_NOTIMP }, /* 193 - Invalid */
1004 {
1005 ARG_COUNT(sys_getrlimit_args),
1006 "getrlimit",
1007 sys_getrlimit,
1008 SYSCALL_VALID }, /* 194 - Invalid */
1009 {
1010 ARG_COUNT(sys_setrlimit_args),
1011 "setrlimit",
1012 sys_setrlimit,
1013 SYSCALL_VALID }, /* 195 - Invalid */
1014 {
1015 ARG_COUNT(sys_getdirentries_args),
1016 "getdirentries",
1017 sys_getdirentries,
1018 SYSCALL_VALID }, // 196 - getdirentries
1019 {
1020 ARG_COUNT(sys_mmap_args),
1021 "old mmap",
1022 (sys_call_t *) sys_mmap,
1023 SYSCALL_INVALID }, /* 197 - sys_mmap */
1024 {
1025 0,
1026 "__syscall",
1027 sys_invalid,
1028 SYSCALL_NOTIMP }, /* 198 - Invalid */
1029 {
1030 0,
1031 "old lseek",
1032 sys_invalid,
1033 SYSCALL_INVALID }, /* 199 - Invalid */
1034 {
1035 0,
1036 "old truncate",
1037 sys_invalid,
1038 SYSCALL_INVALID }, /* 200 - Invalid */
1039 {
1040 0,
1041 "old fruncate",
1042 sys_invalid,
1043 SYSCALL_INVALID }, /* 201 - Invalid */
1044 {
1045 ARG_COUNT(sys_sysctl_args),
1046 "__sysctl",
1047 (sys_call_t *) sys_sysctl,
1048 SYSCALL_VALID }, /* 202 - sys_sysctl */
1049 {
1050 0,
1051 "mlock",
1052 sys_invalid,
1053 SYSCALL_NOTIMP }, /* 203 - Invalid */
1054 {
1055 0,
1056 "munlock",
1057 sys_invalid,
1058 SYSCALL_NOTIMP }, /* 204 - Invalid */
1059 {
1060 0,
1061 "undelete",
1062 sys_invalid,
1063 SYSCALL_NOTIMP }, /* 205 - Invalid */
1064 {
1065 0,
1066 "futimes",
1067 sys_invalid,
1068 SYSCALL_NOTIMP }, /* 206 - Invalid */
1069 {
1070 0,
1071 "getpgid",
1072 sys_invalid,
1073 SYSCALL_NOTIMP }, /* 207 - Invalid */
1074 {
1075 0,
1076 "reboot",
1077 sys_invalid,
1078 SYSCALL_NOTIMP }, /* 208 - Invalid */
1079 {
1080 0,
1081 "poll",
1082 sys_invalid,
1083 SYSCALL_NOTIMP }, /* 209 - Invalid */
1084 {
1085 0,
1086 "lkmnosys",
1087 sys_invalid,
1088 SYSCALL_NOTIMP }, /* 210 - Invalid */
1089 {
1090 0,
1091 "lkmnosys",
1092 sys_invalid,
1093 SYSCALL_NOTIMP }, /* 211 - Invalid */
1094 {
1095 0,
1096 "lkmnosys",
1097 sys_invalid,
1098 SYSCALL_NOTIMP }, /* 212 - Invalid */
1099 {
1100 0,
1101 "lkmnosys",
1102 sys_invalid,
1103 SYSCALL_NOTIMP }, /* 213 - Invalid */
1104 {
1105 0,
1106 "lkmnosys",
1107 sys_invalid,
1108 SYSCALL_NOTIMP }, /* 214 - Invalid */
1109 {
1110 0,
1111 "lkmnosys",
1112 sys_invalid,
1113 SYSCALL_NOTIMP }, /* 215 - Invalid */
1114 {
1115 0,
1116 "lkmnosys",
1117 sys_invalid,
1118 SYSCALL_NOTIMP }, /* 216 - Invalid */
1119 {
1120 0,
1121 "lkmnosys",
1122 sys_invalid,
1123 SYSCALL_NOTIMP }, /* 217 - Invalid */
1124 {
1125 0,
1126 "lkmnosys",
1127 sys_invalid,
1128 SYSCALL_NOTIMP }, /* 218 - Invalid */
1129 {
1130 0,
1131 "lkmnosys",
1132 sys_invalid,
1133 SYSCALL_NOTIMP }, /* 219 - Invalid */
1134 {
1135 0,
1136 "old __semctl",
1137 sys_invalid,
1138 SYSCALL_INVALID }, /* 220 - Invalid */
1139 {
1140 0,
1141 "semget",
1142 sys_invalid,
1143 SYSCALL_NOTIMP }, /* 221 - Invalid */
1144 {
1145 0,
1146 "semop",
1147 sys_invalid,
1148 SYSCALL_NOTIMP }, /* 222 - Invalid */
1149 {
1150 0,
1151 "semconfig",
1152 sys_invalid,
1153 SYSCALL_NOTIMP }, /* 223 - Invalid */
1154 {
1155 0,
1156 "old msgctl",
1157 sys_invalid,
1158 SYSCALL_INVALID }, /* 224 - Invalid */
1159 {
1160 0,
1161 "msgget",
1162 sys_invalid,
1163 SYSCALL_NOTIMP }, /* 225 - Invalid */
1164 {
1165 0,
1166 "msgsnd",
1167 sys_invalid,
1168 SYSCALL_NOTIMP }, /* 226 - Invalid */
1169 {
1170 0,
1171 "msgrcv",
1172 sys_invalid,
1173 SYSCALL_NOTIMP }, /* 227 - Invalid */
1174 {
1175 0,
1176 "shmat",
1177 sys_invalid,
1178 SYSCALL_NOTIMP }, /* 228 - Invalid */
1179 {
1180 0,
1181 "old shmctl",
1182 sys_invalid,
1183 SYSCALL_INVALID }, /* 229 - Invalid */
1184 {
1185 0,
1186 "shmdt",
1187 sys_invalid,
1188 SYSCALL_NOTIMP }, /* 230 - Invalid */
1189 {
1190 0,
1191 "shmget",
1192 sys_invalid,
1193 SYSCALL_NOTIMP }, /* 231 - Invalid */
1194 {
1195 0,
1196 "clock_gettime",
1197 sys_invalid,
1198 SYSCALL_NOTIMP }, /* 232 - Invalid */
1199 {
1200 0,
1201 "clock_settime",
1202 sys_invalid,
1203 SYSCALL_NOTIMP }, /* 233 - Invalid */
1204 {
1205 0,
1206 "clock_getres",
1207 sys_invalid,
1208 SYSCALL_NOTIMP }, /* 234 - Invalid */
1209 {
1210 0,
1211 "ktimer_create",
1212 sys_invalid,
1213 SYSCALL_NOTIMP }, /* 235 - Invalid */
1214 {
1215 0,
1216 "ktimer_delete",
1217 sys_invalid,
1218 SYSCALL_NOTIMP }, /* 236 - Invalid */
1219 {
1220 0,
1221 "ktimer_settime",
1222 sys_invalid,
1223 SYSCALL_NOTIMP }, /* 237 - Invalid */
1224 {
1225 0,
1226 "ktimer_gettime",
1227 sys_invalid,
1228 SYSCALL_NOTIMP }, /* 238 - Invalid */
1229 {
1230 0,
1231 "ktimer_getoverrun",
1232 sys_invalid,
1233 SYSCALL_NOTIMP }, /* 239 - Invalid */
1234 {
1235 0,
1236 "nanosleep",
1237 sys_invalid,
1238 SYSCALL_NOTIMP }, /* 240 - Invalid */
1239 {
1240 0,
1241 "ffclock_getcounter",
1242 sys_invalid,
1243 SYSCALL_NOTIMP }, /* 241 - Invalid */
1244 {
1245 0,
1246 "ffclock_setestimate",
1247 sys_invalid,
1248 SYSCALL_NOTIMP }, /* 242 - Invalid */
1249 {
1250 0,
1251 "fflock_getestimate",
1252 sys_invalid,
1253 SYSCALL_NOTIMP }, /* 243 - Invalid */
1254 {
1255 0,
1256 "clock_nanosleep",
1257 sys_invalid,
1258 SYSCALL_NOTIMP }, /* 244 - Invalid */
1259 {
1260 0,
1261 "No Call",
1262 sys_invalid,
1263 SYSCALL_INVALID }, /* 245 - Invalid */
1264 {
1265 0,
1266 "No Call",
1267 sys_invalid,
1268 SYSCALL_INVALID }, /* 246 - Invalid */
1269 {
1270 0,
1271 "clock_getcpuclockid2",
1272 sys_invalid,
1273 SYSCALL_NOTIMP }, /* 247 - Invalid */
1274 {
1275 0,
1276 "ntp_gettime",
1277 sys_invalid,
1278 SYSCALL_NOTIMP }, /* 248 - Invalid */
1279 {
1280 0,
1281 "No Call",
1282 sys_invalid,
1283 SYSCALL_INVALID }, /* 249 - Invalid */
1284 {
1285 0,
1286 "minherit",
1287 sys_invalid,
1288 SYSCALL_NOTIMP }, /* 250 - Invalid */
1289 {
1290 0,
1291 "rfork",
1292 sys_invalid,
1293 SYSCALL_NOTIMP }, /* 251 - Invalid */
1294 {
1295 0,
1296 "openbsd_poll",
1297 sys_invalid,
1298 SYSCALL_NOTIMP }, /* 252 - Invalid */
1299 {
1300 ARG_COUNT(sys_issetugid_args),
1301 "issetugid",
1302 (sys_call_t *) sys_issetugid,
1303 SYSCALL_VALID }, /* 253 - Invalid */
1304 {
1305 0,
1306 "lchown",
1307 sys_invalid,
1308 SYSCALL_NOTIMP }, /* 254 - Invalid */
1309 {
1310 0,
1311 "aio_read",
1312 sys_invalid,
1313 SYSCALL_NOTIMP }, /* 255 - Invalid */
1314 {
1315 0,
1316 "aio_write",
1317 sys_invalid,
1318 SYSCALL_NOTIMP }, /* 256 - Invalid */
1319 {
1320 0,
1321 "lio_listio",
1322 sys_invalid,
1323 SYSCALL_NOTIMP }, /* 257 - Invalid */
1324 {
1325 0,
1326 "No Call",
1327 sys_invalid,
1328 SYSCALL_INVALID }, /* 258 - Invalid */
1329 {
1330 0,
1331 "No Call",
1332 sys_invalid,
1333 SYSCALL_INVALID }, /* 259 - Invalid */
1334 {
1335 0,
1336 "No Call",
1337 sys_invalid,
1338 SYSCALL_INVALID }, /* 260 - Invalid */
1339 {
1340 0,
1341 "No Call",
1342 sys_invalid,
1343 SYSCALL_INVALID }, /* 261 - Invalid */
1344 {
1345 0,
1346 "No Call",
1347 sys_invalid,
1348 SYSCALL_INVALID }, /* 262 - Invalid */
1349 {
1350 0,
1351 "No Call",
1352 sys_invalid,
1353 SYSCALL_INVALID }, /* 263 - Invalid */
1354 {
1355 0,
1356 "No Call",
1357 sys_invalid,
1358 SYSCALL_INVALID }, /* 264 - Invalid */
1359 {
1360 0,
1361 "No Call",
1362 sys_invalid,
1363 SYSCALL_INVALID }, /* 265 - Invalid */
1364 {
1365 0,
1366 "No Call",
1367 sys_invalid,
1368 SYSCALL_INVALID }, /* 266 - Invalid */
1369 {
1370 0,
1371 "No Call",
1372 sys_invalid,
1373 SYSCALL_INVALID }, /* 267 - Invalid */
1374 {
1375 0,
1376 "No Call",
1377 sys_invalid,
1378 SYSCALL_INVALID }, /* 268 - Invalid */
1379 {
1380 0,
1381 "No Call",
1382 sys_invalid,
1383 SYSCALL_INVALID }, /* 269 - Invalid */
1384 {
1385 0,
1386 "No Call",
1387 sys_invalid,
1388 SYSCALL_INVALID }, /* 270 - Invalid */
1389 {
1390 0,
1391 "No Call",
1392 sys_invalid,
1393 SYSCALL_INVALID }, /* 271 - Invalid */
1394 {
1395 0,
1396 "getdents",
1397 sys_invalid,
1398 SYSCALL_NOTIMP }, /* 272 - Invalid */
1399 {
1400 0,
1401 "No Call",
1402 sys_invalid,
1403 SYSCALL_INVALID }, /* 273 - Invalid */
1404 {
1405 0,
1406 "lchmod",
1407 sys_invalid,
1408 SYSCALL_NOTIMP }, /* 274 - Invalid */
1409 {
1410 0,
1411 "netbsd_lchown",
1412 sys_invalid,
1413 SYSCALL_NOTIMP }, /* 275 - Invalid */
1414 {
1415 0,
1416 "lutimes",
1417 sys_invalid,
1418 SYSCALL_NOTIMP }, /* 276 - Invalid */
1419 {
1420 0,
1421 "netbsd_msync",
1422 sys_invalid,
1423 SYSCALL_NOTIMP }, /* 277 - Invalid */
1424 {
1425 0,
1426 "nstat",
1427 sys_invalid,
1428 SYSCALL_NOTIMP }, /* 278 - Invalid */
1429 {
1430 0,
1431 "nfstat",
1432 sys_invalid,
1433 SYSCALL_NOTIMP }, /* 279 - Invalid */
1434 {
1435 0,
1436 "nlstat",
1437 sys_invalid,
1438 SYSCALL_NOTIMP }, /* 280 - Invalid */
1439 {
1440 0,
1441 "No Call",
1442 sys_invalid,
1443 SYSCALL_INVALID }, /* 281 - Invalid */
1444 {
1445 0,
1446 "No Call",
1447 sys_invalid,
1448 SYSCALL_INVALID }, /* 282 - Invalid */
1449 {
1450 0,
1451 "No Call",
1452 sys_invalid,
1453 SYSCALL_INVALID }, /* 283 - Invalid */
1454 {
1455 0,
1456 "No Call",
1457 sys_invalid,
1458 SYSCALL_INVALID }, /* 284 - Invalid */
1459 {
1460 0,
1461 "No Call",
1462 sys_invalid,
1463 SYSCALL_INVALID }, /* 285 - Invalid */
1464 {
1465 0,
1466 "No Call",
1467 sys_invalid,
1468 SYSCALL_INVALID }, /* 286 - Invalid */
1469 {
1470 0,
1471 "No Call",
1472 sys_invalid,
1473 SYSCALL_INVALID }, /* 287 - Invalid */
1474 {
1475 0,
1476 "No Call",
1477 sys_invalid,
1478 SYSCALL_INVALID }, /* 288 - Invalid */
1479 {
1480 0,
1481 "preadv",
1482 sys_invalid,
1483 SYSCALL_NOTIMP }, /* 289 - Invalid */
1484 {
1485 0,
1486 "pwritev",
1487 sys_invalid,
1488 SYSCALL_NOTIMP }, /* 290 - Invalid */
1489 {
1490 0,
1491 "No Call",
1492 sys_invalid,
1493 SYSCALL_INVALID }, /* 291 - Invalid */
1494 {
1495 0,
1496 "No Call",
1497 sys_invalid,
1498 SYSCALL_INVALID }, /* 292 - Invalid */
1499 {
1500 0,
1501 "No Call",
1502 sys_invalid,
1503 SYSCALL_INVALID }, /* 293 - Invalid */
1504 {
1505 ARG_COUNT(sys_fseek_args),
1506 "feek",
1507 (sys_call_t *) sys_fseek,
1508 SYSCALL_VALID }, /* XXX - Wrong Spot 294 - fseek */
1509 {
1510 ARG_COUNT(sys_fgetc_args),
1511 "fgetc",
1512 (sys_call_t *) sys_fgetc,
1513 SYSCALL_VALID }, /* XXX - Wrong Spot 295 - fgetc */
1514 {
1515 ARG_COUNT(sys_fclose_args),
1516 "flose",
1517 (sys_call_t *) sys_fclose,
1518 SYSCALL_VALID }, /* XXX - Wrong Spot 296 - fclose */
1519 {
1520 ARG_COUNT(sys_fread_args),
1521 "fread",
1522 (sys_call_t *) sys_fread,
1523 SYSCALL_VALID }, /* XXX - Wrong Spot 297 - fread */
1524 {
1525 ARG_COUNT(sys_fopen_args),
1526 "fopen",
1527 (sys_call_t *) sys_fopen,
1528 SYSCALL_VALID }, /* XXX - Wrong Spot 298 - fopen */
1529 {
1530 0,
1531 "fhstat",
1532 sys_invalid,
1533 SYSCALL_NOTIMP }, /* 299 - Invalid */
1534 {
1535 0,
1536 "modnext",
1537 sys_invalid,
1538 SYSCALL_NOTIMP }, /* 300 - Invalid */
1539 {
1540 0,
1541 "modstat",
1542 sys_invalid,
1543 SYSCALL_NOTIMP }, /* 301 - Invalid */
1544 {
1545 0,
1546 "modfnext",
1547 sys_invalid,
1548 SYSCALL_NOTIMP }, /* 302 - Invalid */
1549 {
1550 0,
1551 "modfind",
1552 sys_invalid,
1553 SYSCALL_NOTIMP }, /* 303 - Invalid */
1554 {
1555 0,
1556 "kldload",
1557 sys_invalid,
1558 SYSCALL_NOTIMP }, /* 304 - Invalid */
1559 {
1560 0,
1561 "kldunload",
1562 sys_invalid,
1563 SYSCALL_NOTIMP }, /* 305 - Invalid */
1564 {
1565 0,
1566 "kldfind",
1567 sys_invalid,
1568 SYSCALL_NOTIMP }, /* 306 - Invalid */
1569 {
1570 0,
1571 "kldnext",
1572 sys_invalid,
1573 SYSCALL_NOTIMP }, /* 307 - Invalid */
1574 {
1575 0,
1576 "kldstat",
1577 sys_invalid,
1578 SYSCALL_NOTIMP }, /* 308 - Invalid */
1579 {
1580 0,
1581 "kldfirstmod",
1582 sys_invalid,
1583 SYSCALL_NOTIMP }, /* 309 - Invalid */
1584 {
1585 0,
1586 "getsid",
1587 sys_invalid,
1588 SYSCALL_NOTIMP }, /* 310 - Invalid */
1589 {
1590 0,
1591 "setresuid",
1592 sys_invalid,
1593 SYSCALL_NOTIMP }, /* 311 - Invalid */
1594 {
1595 0,
1596 "setresgid",
1597 sys_invalid,
1598 SYSCALL_NOTIMP }, /* 312 - Invalid */
1599 {
1600 0,
1601 "obsolete signanosleep",
1602 sys_invalid,
1603 SYSCALL_INVALID }, /* 313 - Invalid */
1604 {
1605 0,
1606 "aio_return",
1607 sys_invalid,
1608 SYSCALL_NOTIMP }, /* 314 - Invalid */
1609 {
1610 0,
1611 "aio_suspend",
1612 sys_invalid,
1613 SYSCALL_NOTIMP }, /* 315 - Invalid */
1614 {
1615 0,
1616 "aio_cancel",
1617 sys_invalid,
1618 SYSCALL_NOTIMP }, /* 316 - Invalid */
1619 {
1620 0,
1621 "aio_error",
1622 sys_invalid,
1623 SYSCALL_NOTIMP }, /* 317 - Invalid */
1624 {
1625 0,
1626 "old aio_read",
1627 sys_invalid,
1628 SYSCALL_INVALID }, /* 318 - Invalid */
1629 {
1630 0,
1631 "old aio_write",
1632 sys_invalid,
1633 SYSCALL_INVALID }, /* 319 - Invalid */
1634 {
1635 0,
1636 "old lio_listio",
1637 sys_invalid,
1638 SYSCALL_INVALID }, /* 320 - Invalid */
1639 {
1640 0,
1641 "yield",
1642 sys_invalid,
1643 SYSCALL_NOTIMP }, /* 321 - Invalid */
1644 {
1645 0,
1646 "obsolete thr_sleep",
1647 sys_invalid,
1648 SYSCALL_INVALID }, /* 322 - Invalid */
1649 {
1650 0,
1651 "obsolete thr_wakeup",
1652 sys_invalid,
1653 SYSCALL_INVALID }, /* 323 - Invalid */
1654 {
1655 0,
1656 "mlockall",
1657 sys_invalid,
1658 SYSCALL_NOTIMP }, /* 324 - Invalid */
1659 {
1660 0,
1661 "munlockall",
1662 sys_invalid,
1663 SYSCALL_NOTIMP }, /* 325 - Invalid */
1664 {
1665 ARG_COUNT(sys_getcwd_args),
1666 "__getcwd",
1667 (sys_call_t *) sys_getcwd,
1668 SYSCALL_VALID }, /* 326 - sys_getcwd */
1669 {
1670 0,
1671 "sched_setparam",
1672 sys_invalid,
1673 SYSCALL_NOTIMP }, /* 327 - Invalid */
1674 {
1675 0,
1676 "sched_getparam",
1677 sys_invalid,
1678 SYSCALL_NOTIMP }, /* 328 - Invalid */
1679 {
1680 0,
1681 "sched_setscheduler",
1682 sys_invalid,
1683 SYSCALL_NOTIMP }, /* 329 - Invalid */
1684 {
1685 0,
1686 "sched_getscheduler",
1687 sys_invalid,
1688 SYSCALL_NOTIMP }, /* 330 - Invalid */
1689 {
1690 0,
1691 "sched_yield",
1692 sys_sched_yield,
1693 SYSCALL_VALID }, /* 331 - sys_sched_yield */
1694 {
1695 0,
1696 "sched_get_priority_max",
1697 sys_invalid,
1698 SYSCALL_NOTIMP }, /* 332 - Invalid */
1699 {
1700 0,
1701 "sched_get_priority_min",
1702 sys_invalid,
1703 SYSCALL_NOTIMP }, /* 333 - Invalid */
1704 {
1705 0,
1706 "sched_rr_get_interval",
1707 sys_invalid,
1708 SYSCALL_NOTIMP }, /* 334 - Invalid */
1709 {
1710 0,
1711 "utrace",
1712 sys_invalid,
1713 SYSCALL_NOTIMP }, /* 335 - Invalid */
1714 {
1715 0,
1716 "old sendfile",
1717 sys_invalid,
1718 SYSCALL_INVALID }, /* 336 - Invalid */
1719 {
1720 0,
1721 "kldsym",
1722 sys_invalid,
1723 SYSCALL_NOTIMP }, /* 337 - Invalid */
1724 {
1725 0,
1726 "jail",
1727 sys_invalid,
1728 SYSCALL_NOTIMP }, /* 338 - Invalid */
1729 {
1730 0,
1731 "nnpfs_syscall",
1732 sys_invalid,
1733 SYSCALL_NOTIMP }, /* 339 - Invalid */
1734 {
1735 ARG_COUNT(sys_sigprocmask_args),
1736 "sigprocmask",
1737 sys_sigprocmask,
1738 SYSCALL_VALID }, // 340 - sigprocmask
1739 {
1740 0,
1741 "sigsuspend",
1742 sys_invalid,
1743 SYSCALL_NOTIMP }, /* 341 - Invalid */
1744 {
1745 0,
1746 "old sigaction",
1747 sys_invalid,
1748 SYSCALL_INVALID }, /* 342 - Invalid */
1749 {
1750 0,
1751 "sigpending",
1752 sys_invalid,
1753 SYSCALL_NOTIMP }, /* 343 - Invalid */
1754 {
1755 0,
1756 "old sigreturn",
1757 sys_invalid,
1758 SYSCALL_INVALID }, /* 344 - Invalid */
1759 {
1760 0,
1761 "sigtimedwait",
1762 sys_invalid,
1763 SYSCALL_NOTIMP }, /* 345 - Invalid */
1764 {
1765 0,
1766 "sigwaitinfo",
1767 sys_invalid,
1768 SYSCALL_NOTIMP }, /* 346 - Invalid */
1769 {
1770 0,
1771 "__acl_get_file",
1772 sys_invalid,
1773 SYSCALL_NOTIMP }, /* 347 - Invalid */
1774 {
1775 0,
1776 "__acl_set_file",
1777 sys_invalid,
1778 SYSCALL_NOTIMP }, /* 348 - Invalid */
1779 {
1780 0,
1781 "__acl_get_fd",
1782 sys_invalid,
1783 SYSCALL_NOTIMP }, /* 349 - Invalid */
1784 {
1785 0,
1786 "__acl_set_fd",
1787 sys_invalid,
1788 SYSCALL_NOTIMP }, /* 350 - Invalid */
1789 {
1790 0,
1791 "__acl_delete_file",
1792 sys_invalid,
1793 SYSCALL_NOTIMP }, /* 351 - Invalid */
1794 {
1795 0,
1796 "__acl_delete_fd",
1797 sys_invalid,
1798 SYSCALL_NOTIMP }, /* 352 - Invalid */
1799 {
1800 0,
1801 "__acl_aclcheck_file",
1802 sys_invalid,
1803 SYSCALL_NOTIMP }, /* 353 - Invalid */
1804 {
1805 0,
1806 "__acl_aclcheck_fd",
1807 sys_invalid,
1808 SYSCALL_NOTIMP }, /* 354 - Invalid */
1809 {
1810 0,
1811 "extattrctl",
1812 sys_invalid,
1813 SYSCALL_NOTIMP }, /* 355 - Invalid */
1814 {
1815 0,
1816 "extattr_set_file",
1817 sys_invalid,
1818 SYSCALL_NOTIMP }, /* 356 - Invalid */
1819 {
1820 0,
1821 "extattr_get_file",
1822 sys_invalid,
1823 SYSCALL_NOTIMP }, /* 357 - Invalid */
1824 {
1825 0,
1826 "extattr_delete_file",
1827 sys_invalid,
1828 SYSCALL_NOTIMP }, /* 358 - Invalid */
1829 {
1830 0,
1831 "aio_waitcomplete",
1832 sys_invalid,
1833 SYSCALL_NOTIMP }, /* 359 - Invalid */
1834 {
1835 0,
1836 "getresuid",
1837 sys_invalid,
1838 SYSCALL_NOTIMP }, /* 360 - Invalid */
1839 {
1840 0,
1841 "getresgid",
1842 sys_invalid,
1843 SYSCALL_NOTIMP }, /* 361 - Invalid */
1844 {
1845 0,
1846 "kqueue",
1847 sys_invalid,
1848 SYSCALL_NOTIMP }, /* 362 - Invalid */
1849 {
1850 0,
1851 "kevent",
1852 sys_invalid,
1853 SYSCALL_NOTIMP }, /* 363 - Invalid */
1854 {
1855 0,
1856 "__cap_get_proc",
1857 sys_invalid,
1858 SYSCALL_NOTIMP }, /* 364 - Invalid */
1859 {
1860 0,
1861 "__cap_set_proc",
1862 sys_invalid,
1863 SYSCALL_NOTIMP }, /* 365 - Invalid */
1864 {
1865 0,
1866 "__cap_get_fd",
1867 sys_invalid,
1868 SYSCALL_NOTIMP }, /* 366 - Invalid */
1869 {
1870 0,
1871 "__cap_get_file",
1872 sys_invalid,
1873 SYSCALL_NOTIMP }, /* 367 - Invalid */
1874 {
1875 0,
1876 "__cap_set_fd",
1877 sys_invalid,
1878 SYSCALL_NOTIMP }, /* 368 - Invalid */
1879 {
1880 0,
1881 "__cap_set_file",
1882 sys_invalid,
1883 SYSCALL_NOTIMP }, /* 369 - Invalid */
1884 {
1885 0,
1886 "No Call",
1887 sys_invalid,
1888 SYSCALL_INVALID }, /* 370 - Invalid */
1889 {
1890 0,
1891 "extattr_set_fd",
1892 sys_invalid,
1893 SYSCALL_NOTIMP }, /* 371 - Invalid */
1894 {
1895 0,
1896 "extattr_get_fd",
1897 sys_invalid,
1898 SYSCALL_NOTIMP }, /* 372 - Invalid */
1899 {
1900 0,
1901 "extattr_delete_fd",
1902 sys_invalid,
1903 SYSCALL_NOTIMP }, /* 373 - Invalid */
1904 {
1905 0,
1906 "__setugid",
1907 sys_invalid,
1908 SYSCALL_NOTIMP }, /* 374 - Invalid */
1909 {
1910 0,
1911 "nfsclnt",
1912 sys_invalid,
1913 SYSCALL_NOTIMP }, /* 375 - Invalid */
1914 {
1915 0,
1916 "eaccess",
1917 sys_invalid,
1918 SYSCALL_NOTIMP }, /* 376 - Invalid */
1919 {
1920 0,
1921 "afs2_syscall",
1922 sys_invalid,
1923 SYSCALL_NOTIMP }, /* 377 - Invalid */
1924 {
1925 0,
1926 "nmount",
1927 sys_invalid,
1928 SYSCALL_NOTIMP }, /* 378 - Invalid */
1929 {
1930 0,
1931 "kse_exit",
1932 sys_invalid,
1933 SYSCALL_NOTIMP }, /* 379 - Invalid */
1934 {
1935 0,
1936 "kse_wakeup",
1937 sys_invalid,
1938 SYSCALL_NOTIMP }, /* 380 - Invalid */
1939 {
1940 0,
1941 "kse_create",
1942 sys_invalid,
1943 SYSCALL_NOTIMP }, /* 381 - Invalid */
1944 {
1945 0,
1946 "kse_thr_interrupt",
1947 sys_invalid,
1948 SYSCALL_NOTIMP }, /* 382 - Invalid */
1949 {
1950 0,
1951 "kse_release",
1952 sys_invalid,
1953 SYSCALL_NOTIMP }, /* 383 - Invalid */
1954 {
1955 0,
1956 "__mac_get_proc",
1957 sys_invalid,
1958 SYSCALL_NOTIMP }, /* 384 - Invalid */
1959 {
1960 0,
1961 "__mac_set_proc",
1962 sys_invalid,
1963 SYSCALL_NOTIMP }, /* 385 - Invalid */
1964 {
1965 0,
1966 "__mac_get_fd",
1967 sys_invalid,
1968 SYSCALL_NOTIMP }, /* 386 - Invalid */
1969 {
1970 0,
1971 "__mac_get_file",
1972 sys_invalid,
1973 SYSCALL_NOTIMP }, /* 387 - Invalid */
1974 {
1975 0,
1976 "__mac_set_fd",
1977 sys_invalid,
1978 SYSCALL_NOTIMP }, /* 388 - Invalid */
1979 {
1980 0,
1981 "__mac_set_file",
1982 sys_invalid,
1983 SYSCALL_NOTIMP }, /* 389 - Invalid */
1984 {
1985 0,
1986 "kenv",
1987 sys_invalid,
1988 SYSCALL_NOTIMP }, /* 390 - Invalid */
1989 {
1990 0,
1991 "lchflags",
1992 sys_invalid,
1993 SYSCALL_NOTIMP }, /* 391 - Invalid */
1994 {
1995 0,
1996 "uuidgen",
1997 sys_invalid,
1998 SYSCALL_NOTIMP }, /* 392 - Invalid */
1999 {
2000 0,
2001 "sendfile",
2002 sys_invalid,
2003 SYSCALL_NOTIMP }, /* 393 - Invalid */
2004 {
2005 0,
2006 "mac_syscall",
2007 sys_invalid,
2008 SYSCALL_NOTIMP }, /* 394 - Invalid */
2009 {
2010 0,
2011 "getfsstat",
2012 sys_invalid,
2013 SYSCALL_NOTIMP }, /* 395 - Invalid */
2014 {
2015 ARG_COUNT(sys_statfs_args),
2016 "statfs",
2017 (sys_call_t *) sys_statfs,
2018 SYSCALL_VALID }, // 396 statfs
2019 {
2020 ARG_COUNT(sys_fstatfs_args),
2021 "fstatfs",
2022 (sys_call_t *) sys_fstatfs,
2023 SYSCALL_VALID }, // 397 fstatfs
2024 {
2025 0,
2026 "fhstatfs",
2027 sys_invalid,
2028 SYSCALL_NOTIMP }, /* 398 - Invalid */
2029 {
2030 0,
2031 "No Call",
2032 sys_invalid,
2033 SYSCALL_INVALID }, /* 399 - Invalid */
2034 {
2035 0,
2036 "ksem_close",
2037 sys_invalid,
2038 SYSCALL_NOTIMP }, /* 400 - Invalid */
2039 {
2040 0,
2041 "ksem_post",
2042 sys_invalid,
2043 SYSCALL_NOTIMP }, /* 401 - Invalid */
2044 {
2045 0,
2046 "ksem_wait",
2047 sys_invalid,
2048 SYSCALL_NOTIMP }, /* 402 - Invalid */
2049 {
2050 0,
2051 "ksem_trywait",
2052 sys_invalid,
2053 SYSCALL_NOTIMP }, /* 403 - Invalid */
2054 {
2055 0,
2056 "ksem_init",
2057 sys_invalid,
2058 SYSCALL_NOTIMP }, /* 404 - Invalid */
2059 {
2060 0,
2061 "ksem_open",
2062 sys_invalid,
2063 SYSCALL_NOTIMP }, /* 405 - Invalid */
2064 {
2065 0,
2066 "ksem_unlink",
2067 sys_invalid,
2068 SYSCALL_NOTIMP }, /* 406 - Invalid */
2069 {
2070 0,
2071 "ksem_getvalue",
2072 sys_invalid,
2073 SYSCALL_NOTIMP }, /* 407 - Invalid */
2074 {
2075 0,
2076 "ksem_destroy",
2077 sys_invalid,
2078 SYSCALL_NOTIMP }, /* 408 - Invalid */
2079 {
2080 0,
2081 "__mac_get_pid",
2082 sys_invalid,
2083 SYSCALL_NOTIMP }, /* 409 - Invalid */
2084 {
2085 0,
2086 "__mac_get_link",
2087 sys_invalid,
2088 SYSCALL_NOTIMP }, /* 410 - Invalid */
2089 {
2090 0,
2091 "__mac_set_link",
2092 sys_invalid,
2093 SYSCALL_NOTIMP }, /* 411 - Invalid */
2094 {
2095 0,
2096 "extattr_set_link",
2097 sys_invalid,
2098 SYSCALL_NOTIMP }, /* 412 - Invalid */
2099 {
2100 0,
2101 "extattr_get_link",
2102 sys_invalid,
2103 SYSCALL_NOTIMP }, /* 413 - Invalid */
2104 {
2105 0,
2106 "extattr_delete_link",
2107 sys_invalid,
2108 SYSCALL_NOTIMP }, /* 414 - Invalid */
2109 {
2110 0,
2111 "__mac_execve",
2112 sys_invalid,
2113 SYSCALL_NOTIMP }, /* 415 - Invalid */
2114 {
2115 ARG_COUNT(sys_sigaction_args),
2116 "sigaction",
2117 sys_sigaction,
2118 SYSCALL_VALID }, // 416 - sigaction
2119 {
2120 0,
2121 "sigreturn",
2122 sys_invalid,
2123 SYSCALL_NOTIMP }, /* 417 - Invalid */
2124 {
2125 0,
2126 "__xstat",
2127 sys_invalid,
2128 SYSCALL_NOTIMP }, /* 418 - Invalid */
2129 {
2130 0,
2131 "__xfstat",
2132 sys_invalid,
2133 SYSCALL_NOTIMP }, /* 419 - Invalid */
2134 {
2135 0,
2136 "__xlstat",
2137 sys_invalid,
2138 SYSCALL_NOTIMP }, /* 420 - Invalid */
2139 {
2140 0,
2141 "getcontext",
2142 sys_invalid,
2143 SYSCALL_NOTIMP }, /* 421 - Invalid */
2144 {
2145 0,
2146 "setcontext",
2147 sys_invalid,
2148 SYSCALL_NOTIMP }, /* 422 - Invalid */
2149 {
2150 0,
2151 "swapcontext",
2152 sys_invalid,
2153 SYSCALL_NOTIMP }, /* 423 - Invalid */
2154 {
2155 0,
2156 "swapoff",
2157 sys_invalid,
2158 SYSCALL_NOTIMP }, /* 424 - Invalid */
2159 {
2160 0,
2161 "__acl_get_link",
2162 sys_invalid,
2163 SYSCALL_NOTIMP }, /* 425 - Invalid */
2164 {
2165 0,
2166 "__acl_set_link",
2167 sys_invalid,
2168 SYSCALL_NOTIMP }, /* 426 - Invalid */
2169 {
2170 0,
2171 "__acl_delete_link",
2172 sys_invalid,
2173 SYSCALL_NOTIMP }, /* 427 - Invalid */
2174 {
2175 0,
2176 "__acl_aclcheck_link",
2177 sys_invalid,
2178 SYSCALL_NOTIMP }, /* 428 - Invalid */
2179 {
2180 0,
2181 "sigwait",
2182 sys_invalid,
2183 SYSCALL_NOTIMP }, /* 429 - Invalid */
2184 {
2185 0,
2186 "thr_create",
2187 sys_invalid,
2188 SYSCALL_NOTIMP }, /* 430 - Invalid */
2189 {
2190 0,
2191 "thr_exit",
2192 sys_invalid,
2193 SYSCALL_NOTIMP }, /* 431 - Invalid */
2194 {
2195 0,
2196 "thr_self",
2197 sys_invalid,
2198 SYSCALL_NOTIMP }, /* 432 - Invalid */
2199 {
2200 0,
2201 "thr_kill",
2202 sys_invalid,
2203 SYSCALL_NOTIMP }, /* 433 - Invalid */
2204 {
2205 0,
2206 "No Call",
2207 sys_invalid,
2208 SYSCALL_INVALID }, /* 434 - Invalid */
2209 {
2210 0,
2211 "No Call",
2212 sys_invalid,
2213 SYSCALL_INVALID }, /* 435 - Invalid */
2214 {
2215 0,
2216 "jail_attach",
2217 sys_invalid,
2218 SYSCALL_NOTIMP }, /* 436 - Invalid */
2219 {
2220 0,
2221 "extattr_list_fd",
2222 sys_invalid,
2223 SYSCALL_NOTIMP }, /* 437 - Invalid */
2224 {
2225 0,
2226 "extattr_list_file",
2227 sys_invalid,
2228 SYSCALL_NOTIMP }, /* 438 - Invalid */
2229 {
2230 0,
2231 "extattr_list_link",
2232 sys_invalid,
2233 SYSCALL_NOTIMP }, /* 439 - Invalid */
2234 {
2235 0,
2236 "kse_switchin",
2237 sys_invalid,
2238 SYSCALL_NOTIMP }, /* 440 - Invalid */
2239 {
2240 0,
2241 "ksem_timedwait",
2242 sys_invalid,
2243 SYSCALL_NOTIMP }, /* 441 - Invalid */
2244 {
2245 0,
2246 "thr_suspend",
2247 sys_invalid,
2248 SYSCALL_NOTIMP }, /* 442 - Invalid */
2249 {
2250 0,
2251 "thr_wake",
2252 sys_invalid,
2253 SYSCALL_NOTIMP }, /* 443 - Invalid */
2254 {
2255 0,
2256 "kldunloadf",
2257 sys_invalid,
2258 SYSCALL_NOTIMP }, /* 444 - Invalid */
2259 {
2260 0,
2261 "audit",
2262 sys_invalid,
2263 SYSCALL_NOTIMP }, /* 445 - Invalid */
2264 {
2265 0,
2266 "auditon",
2267 sys_invalid,
2268 SYSCALL_NOTIMP }, /* 446 - Invalid */
2269 {
2270 0,
2271 "getauid",
2272 sys_invalid,
2273 SYSCALL_NOTIMP }, /* 447 - Invalid */
2274 {
2275 0,
2276 "setauid",
2277 sys_invalid,
2278 SYSCALL_NOTIMP }, /* 448 - Invalid */
2279 {
2280 0,
2281 "getaudit",
2282 sys_invalid,
2283 SYSCALL_NOTIMP }, /* 449 - Invalid */
2284 {
2285 0,
2286 "setauid",
2287 sys_invalid,
2288 SYSCALL_NOTIMP }, /* 450 - Invalid */
2289 {
2290 0,
2291 "getaudit_addr",
2292 sys_invalid,
2293 SYSCALL_NOTIMP }, /* 451 - Invalid */
2294 {
2295 0,
2296 "setaudit_addr",
2297 sys_invalid,
2298 SYSCALL_NOTIMP }, /* 452 - Invalid */
2299 {
2300 0,
2301 "auditctl",
2302 sys_invalid,
2303 SYSCALL_NOTIMP }, /* 453 - Invalid */
2304 {
2305 0,
2306 "_umtx_op",
2307 sys_invalid,
2308 SYSCALL_NOTIMP }, /* 454 - Invalid */
2309 {
2310 0,
2311 "thr_new",
2312 sys_invalid,
2313 SYSCALL_NOTIMP }, /* 455 - Invalid */
2314 {
2315 0,
2316 "sigqueue",
2317 sys_invalid,
2318 SYSCALL_NOTIMP }, /* 456 - Invalid */
2319 {
2320 0,
2321 "kmq_open",
2322 sys_invalid,
2323 SYSCALL_NOTIMP }, /* 457 - Invalid */
2324 {
2325 0,
2326 "kmq_setattr",
2327 sys_invalid,
2328 SYSCALL_NOTIMP }, /* 458 - Invalid */
2329 {
2330 0,
2331 "kmq_timedreceive",
2332 sys_invalid,
2333 SYSCALL_NOTIMP }, /* 459 - Invalid */
2334 {
2335 0,
2336 "kmq_timedsend",
2337 sys_invalid,
2338 SYSCALL_NOTIMP }, /* 460 - Invalid */
2339 {
2340 0,
2341 "kmq_notify",
2342 sys_invalid,
2343 SYSCALL_NOTIMP }, /* 461 - Invalid */
2344 {
2345 0,
2346 "kmq_unlink",
2347 sys_invalid,
2348 SYSCALL_NOTIMP }, /* 462 - Invalid */
2349 {
2350 0,
2351 "abort2",
2352 sys_invalid,
2353 SYSCALL_NOTIMP }, /* 463 - Invalid */
2354 {
2355 0,
2356 "thr_set_name",
2357 sys_invalid,
2358 SYSCALL_NOTIMP }, /* 464 - Invalid */
2359 {
2360 0,
2361 "aio_fsync",
2362 sys_invalid,
2363 SYSCALL_NOTIMP }, /* 465 - Invalid */
2364 {
2365 0,
2366 "rtprio_thread",
2367 sys_invalid,
2368 SYSCALL_NOTIMP }, /* 466 - Invalid */
2369 {
2370 0,
2371 "No Call",
2372 sys_invalid,
2373 SYSCALL_INVALID }, /* 467 - Invalid */
2374 {
2375 0,
2376 "No Call",
2377 sys_invalid,
2378 SYSCALL_INVALID }, /* 468 - Invalid */
2379 {
2380 0,
2381 "__getpath_fromfd",
2382 sys_invalid,
2383 SYSCALL_NOTIMP }, /* 469 - Invalid */
2384 {
2385 0,
2386 "__getpath_fromaddr",
2387 sys_invalid,
2388 SYSCALL_NOTIMP }, /* 470 - Invalid */
2389 {
2390 0,
2391 "sctp_peeloff",
2392 sys_invalid,
2393 SYSCALL_NOTIMP }, /* 471 - Invalid */
2394 {
2395 0,
2396 "sctp_generic_sendmsg",
2397 sys_invalid,
2398 SYSCALL_NOTIMP }, /* 472 - Invalid */
2399 {
2400 0,
2401 "sctp_generic_sendmsg_iov",
2402 sys_invalid,
2403 SYSCALL_NOTIMP }, /* 473 - Invalid */
2404 {
2405 0,
2406 "sctp_generic_recvmsg",
2407 sys_invalid,
2408 SYSCALL_NOTIMP }, /* 474 - Invalid */
2409 {
2410 ARG_COUNT(sys_pread_args),
2411 "pread",
2412 sys_pread,
2413 SYSCALL_VALID }, // 475 - pread
2414 {
2415 0,
2416 "pwrite",
2417 sys_invalid,
2418 SYSCALL_NOTIMP }, /* 476 - Invalid */
2419 {
2420 ARG_COUNT(sys_mmap_args),
2421 "mmap",
2422 (sys_call_t *) sys_mmap,
2423 SYSCALL_VALID }, /* 477 - sys_mmap */
2424 {
2425 ARG_COUNT(sys_lseek_args),
2426 "lseek",
2427 (sys_call_t *) sys_lseek,
2428 SYSCALL_VALID }, /* 478 - sys_lseek */
2429 {
2430 0,
2431 "truncate",
2432 sys_invalid,
2433 SYSCALL_NOTIMP }, /* 479 - Invalid */
2434 {
2435 0,
2436 "ftruncate",
2437 sys_invalid,
2438 SYSCALL_NOTIMP }, /* 480 - Invalid */
2439 {
2440 0,
2441 "thr_kill2",
2442 sys_invalid,
2443 SYSCALL_NOTIMP }, /* 481 - Invalid */
2444 {
2445 0,
2446 "shm_open",
2447 sys_invalid,
2448 SYSCALL_NOTIMP }, /* 482 - Invalid */
2449 {
2450 0,
2451 "shm_unlink",
2452 sys_invalid,
2453 SYSCALL_NOTIMP }, /* 483 - Invalid */
2454 {
2455 0,
2456 "cpuset",
2457 sys_invalid,
2458 SYSCALL_NOTIMP }, /* 484 - Invalid */
2459 {
2460 0,
2461 "cpuset_setid",
2462 sys_invalid,
2463 SYSCALL_NOTIMP }, /* 485 - Invalid */
2464 {
2465 0,
2466 "cpuset_getid",
2467 sys_invalid,
2468 SYSCALL_NOTIMP }, /* 486 - Invalid */
2469 {
2470 0,
2471 "cpuset_getaffinity",
2472 sys_invalid,
2473 SYSCALL_NOTIMP }, /* 487 - Invalid */
2474 {
2475 0,
2476 "cpuset_setaffinity",
2477 sys_invalid,
2478 SYSCALL_NOTIMP }, /* 488 - Invalid */
2479 {
2480 0,
2481 "faccessat",
2482 sys_invalid,
2483 SYSCALL_NOTIMP }, /* 489 - Invalid */
2484 {
2485 0,
2486 "fchmodat",
2487 sys_invalid,
2488 SYSCALL_NOTIMP }, /* 490 - Invalid */
2489 {
2490 0,
2491 "fchownat",
2492 sys_invalid,
2493 SYSCALL_NOTIMP }, /* 491 - Invalid */
2494 {
2495 0,
2496 "fexecve",
2497 sys_invalid,
2498 SYSCALL_NOTIMP }, /* 492 - Invalid */
2499 {
2500 ARG_COUNT(sys_fstatat_args),
2501 "fstatat",
2502 sys_fstatat,
2503 SYSCALL_VALID }, // 493 - fstatat
2504 {
2505 0,
2506 "futimesat",
2507 sys_invalid,
2508 SYSCALL_NOTIMP }, /* 494 - Invalid */
2509 {
2510 0,
2511 "linkat",
2512 sys_invalid,
2513 SYSCALL_NOTIMP }, /* 495 - Invalid */
2514 {
2515 0,
2516 "mkdirat",
2517 sys_invalid,
2518 SYSCALL_NOTIMP }, /* 496 - Invalid */
2519 {
2520 0,
2521 "mkfifoat",
2522 sys_invalid,
2523 SYSCALL_NOTIMP }, /* 497 - Invalid */
2524 {
2525 0,
2526 "mknodat",
2527 sys_invalid,
2528 SYSCALL_NOTIMP }, /* 498 - Invalid */
2529 {
2530 ARG_COUNT(sys_openat_args),
2531 "openat",
2532 sys_openat,
2533 SYSCALL_VALID }, /* 499 - sys_openat */
2534 {
2535 0,
2536 "readlinkat",
2537 sys_invalid,
2538 SYSCALL_NOTIMP }, /* 500 - Invalid */
2539 {
2540 0,
2541 "renameat",
2542 sys_invalid,
2543 SYSCALL_NOTIMP }, /* 501 - Invalid */
2544 {
2545 0,
2546 "symlinkat",
2547 sys_invalid,
2548 SYSCALL_NOTIMP }, /* 502 - Invalid */
2549 {
2550 0,
2551 "unlinkat",
2552 sys_invalid,
2553 SYSCALL_NOTIMP }, /* 503 - Invalid */
2554 {
2555 0,
2556 "posix_openpt",
2557 sys_invalid,
2558 SYSCALL_NOTIMP }, /* 504 - Invalid */
2559 {
2560 0,
2561 "gssd_syscall",
2562 sys_invalid,
2563 SYSCALL_NOTIMP }, /* 505 - Invalid */
2564 {
2565 0,
2566 "jail_get",
2567 sys_invalid,
2568 SYSCALL_NOTIMP }, /* 506 - Invalid */
2569 {
2570 0,
2571 "jail_set",
2572 sys_invalid,
2573 SYSCALL_NOTIMP }, /* 507 - Invalid */
2574 {
2575 0,
2576 "jail_remove",
2577 sys_invalid,
2578 SYSCALL_NOTIMP }, /* 508 - Invalid */
2579 {
2580 0,
2581 "closefrom",
2582 sys_invalid,
2583 SYSCALL_NOTIMP }, /* 509 - Invalid */
2584 {
2585 0,
2586 "__semctl",
2587 sys_invalid,
2588 SYSCALL_NOTIMP }, /* 510 - Invalid */
2589 {
2590 0,
2591 "msgctl",
2592 sys_invalid,
2593 SYSCALL_NOTIMP }, /* 511 - Invalid */
2594 {
2595 0,
2596 "shmctl",
2597 sys_invalid,
2598 SYSCALL_NOTIMP }, /* 512 - Invalid */
2599 {
2600 0,
2601 "lpathconf",
2602 sys_invalid,
2603 SYSCALL_NOTIMP }, /* 513 - Invalid */
2604 {
2605 0,
2606 "obsolete cap_new",
2607 sys_invalid,
2608 SYSCALL_INVALID }, /* 514 - Invalid */
2609 {
2610 0,
2611 "__cap_rights_get",
2612 sys_invalid,
2613 SYSCALL_NOTIMP }, /* 515 - Invalid */
2614 {
2615 0,
2616 "cap_enter",
2617 sys_invalid,
2618 SYSCALL_NOTIMP }, /* 516 - Invalid */
2619 {
2620 0,
2621 "cap_getmode",
2622 sys_invalid,
2623 SYSCALL_NOTIMP }, /* 517 - Invalid */
2624 {
2625 0,
2626 "pdfork",
2627 sys_invalid,
2628 SYSCALL_NOTIMP }, /* 518 - Invalid */
2629 {
2630 0,
2631 "pdkill",
2632 sys_invalid,
2633 SYSCALL_NOTIMP }, /* 519 - Invalid */
2634 {
2635 0,
2636 "pdgetpid",
2637 sys_invalid,
2638 SYSCALL_NOTIMP }, /* 520 - Invalid */
2639 {
2640 0,
2641 "pdwait4",
2642 sys_invalid,
2643 SYSCALL_NOTIMP }, /* 521 - Invalid */
2644 {
2645 0,
2646 "pselect",
2647 sys_invalid,
2648 SYSCALL_NOTIMP }, /* 522 - Invalid */
2649 {
2650 0,
2651 "getloginclass",
2652 sys_invalid,
2653 SYSCALL_NOTIMP }, /* 523 - Invalid */
2654 {
2655 0,
2656 "setloginclass",
2657 sys_invalid,
2658 SYSCALL_NOTIMP }, /* 524 - Invalid */
2659 {
2660 0,
2661 "rctl_get_racct",
2662 sys_invalid,
2663 SYSCALL_NOTIMP }, /* 525 - Invalid */
2664 {
2665 0,
2666 "rctl_get_rules",
2667 sys_invalid,
2668 SYSCALL_NOTIMP }, /* 526 - Invalid */
2669 {
2670 0,
2671 "rctl_get_limits",
2672 sys_invalid,
2673 SYSCALL_NOTIMP }, /* 527 - Invalid */
2674 {
2675 0,
2676 "rctl_add_rule",
2677 sys_invalid,
2678 SYSCALL_NOTIMP }, /* 528 - Invalid */
2679 {
2680 0,
2681 "rctl_remove_rule",
2682 sys_invalid,
2683 SYSCALL_NOTIMP }, /* 529 - Invalid */
2684 {
2685 0,
2686 "posix_fallocate",
2687 sys_invalid,
2688 SYSCALL_NOTIMP }, /* 530 - Invalid */
2689 {
2690 0,
2691 "posix_fadvise",
2692 sys_invalid,
2693 SYSCALL_NOTIMP }, /* 531 - Invalid */
2694 {
2695 0,
2696 "wait6",
2697 sys_invalid,
2698 SYSCALL_NOTIMP }, /* 532 - Invalid */
2699 {
2700 0,
2701 "cap_rights_limit",
2702 sys_invalid,
2703 SYSCALL_NOTIMP }, /* 533 - Invalid */
2704 {
2705 0,
2706 "cap_ioctls_limit",
2707 sys_invalid,
2708 SYSCALL_NOTIMP }, /* 534 - Invalid */
2709 {
2710 0,
2711 "cap_ioctls_get",
2712 sys_invalid,
2713 SYSCALL_NOTIMP }, /* 535 - Invalid */
2714 {
2715 0,
2716 "cap_fcntls_limit",
2717 sys_invalid,
2718 SYSCALL_NOTIMP }, /* 536 - Invalid */
2719 {
2720 0,
2721 "cap_fcntls_get",
2722 sys_invalid,
2723 SYSCALL_NOTIMP }, /* 537 - Invalid */
2724 {
2725 0,
2726 "bindat",
2727 sys_invalid,
2728 SYSCALL_NOTIMP }, /* 538 - Invalid */
2729 {
2730 0,
2731 "connectact",
2732 sys_invalid,
2733 SYSCALL_NOTIMP }, /* 539 - Invalid */
2734 {
2735 0,
2736 "chflagsat",
2737 sys_invalid,
2738 SYSCALL_NOTIMP }, /* 540 - Invalid */
2739 {
2740 0,
2741 "accept4",
2742 sys_invalid,
2743 SYSCALL_NOTIMP }, /* 541 - Invalid */
2744 {
2745 0,
2746 "pipe2",
2747 sys_pipe2,
2748 SYSCALL_VALID }, /* 542 */
2749 {
2750 0,
2751 "aio_mlock",
2752 sys_invalid,
2753 SYSCALL_NOTIMP }, /* 543 - Invalid */
2754 {
2755 0,
2756 "procctl",
2757 sys_invalid,
2758 SYSCALL_NOTIMP }, /* 544 - Invalid */
2759 {
2760 0,
2761 "ppoll",
2762 sys_invalid,
2763 SYSCALL_NOTIMP }, /* 545 - Invalid */
2764 {
2765 0,
2766 "futimens",
2767 sys_invalid,
2768 SYSCALL_NOTIMP }, /* 546 - Invalid */
2769 {
2770 0,
2771 "utimensat",
2772 sys_invalid,
2773 SYSCALL_NOTIMP }, /* 547 - Invalid */
2774 {
2775 0,
2776 "numa_getaffinity",
2777 sys_invalid,
2778 SYSCALL_NOTIMP }, /* 548 - Invalid */
2779 {
2780 0,
2781 "num_setaffinity",
2782 sys_invalid,
2783 SYSCALL_NOTIMP }, /* 549 - Invalid */
2784 {
2785 0,
2786 "fdatasync",
2787 sys_invalid,
2788 SYSCALL_NOTIMP }, /* 550 - Invalid */
2789 };
2790
2791 int totalCalls_posix = sizeof(systemCalls_posix) / sizeof(struct syscall_entry);
sys_getrlimit_args
Definition: sysproto_posix.h:788
sys_select
int sys_select(struct thread *td, struct sys_select_args *)
Definition: descrip.c:285
sys_fclose
int sys_fclose(struct thread *td, struct sys_fclose_args *args)
Definition: file.c:277
sys_fstat_args
Definition: sysproto_posix.h:467
sys_getpid_args
Definition: sysproto_posix.h:523
syscalls.h
sys_setpgid
int sys_setpgid(struct thread *td, struct sys_setpgid_args *)
Definition: gen_calls.c:315
sys_getegid
int sys_getegid(struct thread *td, struct sys_getegid_args *)
Definition: gen_calls.c:233
sys_gettimeofday
int sys_gettimeofday(struct thread *td, struct sys_gettimeofday_args *)
Definition: gen_calls.c:354
sys_sysarch_args
Definition: sysproto_posix.h:514
sys_setGID
int sys_setGID(struct thread *td, struct sys_setGID_args *)
Definition: access.c:63
sys_wait4_args
Definition: sysproto_posix.h:108
sys_sysarch
int sys_sysarch(struct thread *td, struct sys_sysarch_args *)
Definition: gen_calls.c:186
sys_sendto
int sys_sendto(struct thread *td, struct sys_sendto_args *)
Definition: sys_arch.c:540
sys_getpgrp_args
Definition: sysproto_posix.h:575
sys_fstatat
int sys_fstatat(struct thread *td, struct sys_fstatat_args *args)
Definition: stat.c:133
sys_getcwd_args
Definition: sysproto_posix.h:132
sys_sigaction_args
Definition: sysproto_posix.h:563
sys_ioctl
int sys_ioctl(struct thread *td, struct sys_ioctl_args *)
Definition: descrip.c:229
sys_fgetc
int sys_fgetc(struct thread *td, struct sys_fgetc_args *args)
Definition: file.c:76
systemCalls_posix
struct syscall_entry systemCalls_posix[]
Definition: syscalls_posix.c:33
sysproto_posix.h
sys_getegid_args
Definition: sysproto_posix.h:547
sys_getlogin
int sys_getlogin(struct thread *, struct sys_getlogin_args *)
Definition: gen_calls.c:360
sys_fopen
int sys_fopen(struct thread *td, struct sys_fopen_args *args)
Definition: file.c:237
sys_fcntl_args
Definition: sysproto_posix.h:252
sys_setUID_args
Definition: sysproto_posix.h:142
sys_setGID_args
Definition: sysproto_posix.h:148
sys_statfs
int sys_statfs(struct thread *td, struct sys_statfs_args *args)
Definition: stat.c:239
sys_sigprocmask
int sys_sigprocmask(struct thread *td, struct sys_sigprocmask_args *)
Definition: gen_calls.c:243
sys_setlogin_args
Definition: sysproto_posix.h:779
sys_setrlimit
int sys_setrlimit(struct thread *, struct sys_setrlimit_args *)
Definition: gen_calls.c:450
sys_pipe2
int sys_pipe2(struct thread *, struct sys_pipe2_args *)
Definition: kern_pipe.c:36
SYSCALL_VALID
#define SYSCALL_VALID
Definition: syscalls.h:45
sys_geteuid_args
Definition: sysproto_posix.h:539
ARG_COUNT
#define ARG_COUNT(name)
Definition: syscalls.h:42
sys_setlogin
int sys_setlogin(struct thread *, struct sys_setlogin_args *)
Definition: gen_calls.c:368
sys_sendto_args
Definition: sysproto_posix.h:698
sys_rename_args
Definition: sysproto_posix.h:719
sys_open_args
Definition: sysproto_posix.h:88
sys_getpgrp
int sys_getpgrp(struct thread *td, struct sys_getpgrp_args *)
Definition: gen_calls.c:310
sys_fstatat_args
Definition: sysproto_posix.h:605
sys_setsockopt_args
Definition: sysproto_posix.h:653
sys_write
int sys_write(struct thread *td, struct sys_write_args *)
Definition: vfs_calls.c:293
sys_lstat
int sys_lstat(struct thread *td, struct sys_lstat_args *args)
Definition: stat.c:297
sys_chdir_args
Definition: sysproto_posix.h:126
sys_read
int sys_read(struct thread *, struct sys_read_args *)
Definition: vfs_calls.c:151
sys_getdirentries_args
Definition: sysproto_posix.h:626
sys_execve_args
Definition: sysproto_posix.h:154
sys_invalid
int sys_invalid(struct thread *, void *)
Definition: gen_calls.c:141
sys_pread_args
Definition: sysproto_posix.h:728
sys_geteuid
int sys_geteuid(struct thread *td, struct sys_geteuid_args *)
Definition: gen_calls.c:228
sys_fstat
int sys_fstat(struct thread *td, struct sys_fstat_args *args)
Definition: stat.c:91
sys_dup2
int sys_dup2(struct thread *, struct sys_dup2_args *)
Definition: descrip.c:377
sys_getcwd
int sys_getcwd(struct thread *td, struct sys_getcwd_args *)
Definition: syscall.c:204
sys_sched_yield
int sys_sched_yield(struct thread *td, void *)
Definition: syscall.c:224
sys_mmap
int sys_mmap(struct thread *td, struct sys_mmap_args *)
Definition: vmm_mmap.c:162
sys_sigprocmask_args
Definition: sysproto_posix.h:551
sys_getlogin_args
Definition: sysproto_posix.h:768
sys_fclose_args
Definition: sysproto_posix.h:193
sys_read_args
Definition: sysproto_posix.h:62
sys_fchdir
int sys_fchdir(struct thread *td, struct sys_fchdir_args *args)
Definition: file.c:197
sys_getpid
int sys_getpid(struct thread *td, struct sys_getpid_args *)
Definition: gen_calls.c:224
sys_execve
int sys_execve(struct thread *td, struct sys_execve_args *)
Definition: execve.c:33
sys_stat
int sys_stat(struct thread *td, struct sys_stat_args *args)
Definition: stat.c:302
SYSCALL_INVALID
#define SYSCALL_INVALID
Definition: syscalls.h:44
sys_setsockopt
int sys_setsockopt(struct thread *td, struct sys_setsockopt_args *)
Definition: sys_arch.c:529
sys_statfs_args
Definition: sysproto_posix.h:596
sys_write_args
Definition: sysproto_posix.h:74
sys_lseek_args
Definition: sysproto_posix.h:217
sys_stat_args
Definition: sysproto_posix.h:399
sys_fseek
int sys_fseek(struct thread *td, struct sys_fseek_args *args)
Definition: file.c:119
sys_select_args
Definition: sysproto_posix.h:671
sys_readlink
int sys_readlink(struct thread *, struct sys_readlink_args *)
Definition: vfs_calls.c:389
SYSCALL_NOTIMP
#define SYSCALL_NOTIMP
Definition: syscalls.h:47
sys_fstatfs
int sys_fstatfs(struct thread *td, struct sys_fstatfs_args *args)
Definition: stat.c:182
sys_socket_args
Definition: sysproto_posix.h:641
sys_access
int sys_access(struct thread *td, struct sys_access_args *)
Definition: vfs_calls.c:366
sys_fread
int sys_fread(struct thread *td, struct sys_fread_args *args)
Definition: file.c:258
sys_fseek_args
Definition: sysproto_posix.h:205
sys_sysctl_args
Definition: sysproto_posix.h:229
sys_getppid_args
Definition: sysproto_posix.h:543
sys_getrlimit
int sys_getrlimit(struct thread *, struct sys_getrlimit_args *)
Definition: gen_calls.c:376
sys_pread
int sys_pread(struct thread *td, struct sys_pread_args *)
Definition: vfs_calls.c:239
sys_openat
int sys_openat(struct thread *td, struct sys_openat_args *)
Definition: vfs_calls.c:45
sys_chdir
int sys_chdir(struct thread *td, struct sys_chdir_args *args)
Definition: file.c:186
sys_issetugid
int sys_issetugid(struct thread *td, struct sys_issetugid_args *)
sys_setpgid_args
Definition: sysproto_posix.h:578
sys_fcntl
int sys_fcntl(struct thread *td, struct sys_fcntl_args *)
Definition: descrip.c:92
sys_openat_args
Definition: sysproto_posix.h:499
sys_fstatfs_args
Definition: sysproto_posix.h:287
sys_fork_args
Definition: sysproto_posix.h:56
sys_fopen_args
Definition: sysproto_posix.h:166
sys_gettimeofday_args
Definition: sysproto_posix.h:689
sys_dup2_args
Definition: sysproto_posix.h:810
sys_sigaction
int sys_sigaction(struct thread *td, struct sys_sigaction_args *)
Definition: gen_calls.c:294
sys_mmap_args
Definition: sysproto_posix.h:378
sys_sysctl
int sys_sysctl(struct thread *td, struct sys_sysctl_args *)
Definition: kern_sysctl.c:286
sys_fread_args
Definition: sysproto_posix.h:178
sys_exit
int sys_exit(struct thread *, struct sys_exit_args *)
Definition: gen_calls.c:45
totalCalls_posix
int totalCalls_posix
Definition: syscalls_posix.c:2791
sys_getGID
int sys_getGID(struct thread *td, void *)
Definition: access.c:59
sys_rename
int sys_rename(struct thread *td, struct sys_rename_args *args)
Definition: file.c:220
sysGetFreePage
void sysGetFreePage(long *ptr, int count, int type)
Definition: syscall.c:188
sys_issetugid_args
Definition: sysproto_posix.h:334
sys_access_args
Definition: sysproto_posix.h:587
sys_lseek
int sys_lseek(struct thread *td, struct sys_lseek_args *args)
Definition: file.c:149
sys_fgetc_args
Definition: sysproto_posix.h:199
sys_getUID
int sys_getUID(struct thread *td, void *)
Definition: access.c:51
sys_fchdir_args
Definition: sysproto_posix.h:620
sys_socket
int sys_socket(struct thread *td, struct sys_socket_args *)
Definition: sys_arch.c:502
sys_ioctl_args
Definition: sysproto_posix.h:527
sys_setUID
int sys_setUID(struct thread *td, struct sys_setUID_args *)
Definition: access.c:43
sys_munmap
int sys_munmap(struct thread *td, struct sys_munmap_args *)
Definition: vmm_mmap.c:155
sys_lstat_args
Definition: sysproto_posix.h:408
sys_wait4
int sys_wait4(struct thread *td, struct sys_wait4_args *)
Definition: gen_calls.c:147
syscall_entry
Definition: syscalls.h:51
sys_open
int sys_open(struct thread *td, struct sys_open_args *)
Definition: vfs_calls.c:39
sys_getdirentries
int sys_getdirentries(struct thread *td, struct sys_getdirentries_args *)
Definition: vfs_calls.c:373
sys_close_args
Definition: sysproto_posix.h:102
sys_close
int sys_close(struct thread *td, struct sys_close_args *)
Definition: vfs_calls.c:99
sys_fork
int sys_fork(struct thread *td, struct sys_fork_args *args)
Definition: fork.c:40
sys_exit_args
Definition: sysproto_posix.h:50
sys_call_t
int sys_call_t(struct thread *, void *)
Definition: syscalls.h:49
sys_setrlimit_args
Definition: sysproto_posix.h:799
sys_munmap_args
Definition: sysproto_posix.h:439