1/* $OpenBSD: syscallargs.h,v 1.287 2026/03/08 16:41:35 deraadt Exp $ */
2
3/*
4 * System call argument lists.
5 *
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from; OpenBSD: syscalls.master,v 1.271 2026/03/08 16:41:21 deraadt Exp
8 */
9
10#ifdef syscallarg
11#undef syscallarg
12#endif
13
14#define syscallarg(x) \
15 union { \
16 register_t pad; \
17 struct { x datum; } le; \
18 struct { \
19 int8_t pad[ (sizeof (register_t) < sizeof (x)) \
20 ? 0 \
21 : sizeof (register_t) - sizeof (x)]; \
22 x datum; \
23 } be; \
24 }
25
26struct sys_exit_args {
27 syscallarg(int) rval;
28};
29
30struct sys_read_args {
31 syscallarg(int) fd;
32 syscallarg(void *) buf;
33 syscallarg(size_t) nbyte;
34};
35
36struct sys_write_args {
37 syscallarg(int) fd;
38 syscallarg(const void *) buf;
39 syscallarg(size_t) nbyte;
40};
41
42struct sys_open_args {
43 syscallarg(const char *) path;
44 syscallarg(int) flags;
45 syscallarg(mode_t) mode;
46};
47
48struct sys_close_args {
49 syscallarg(int) fd;
50};
51
52struct sys_getentropy_args {
53 syscallarg(void *) buf;
54 syscallarg(size_t) nbyte;
55};
56
57struct sys___tfork_args {
58 syscallarg(const struct __tfork *) param;
59 syscallarg(size_t) psize;
60};
61
62struct sys_link_args {
63 syscallarg(const char *) path;
64 syscallarg(const char *) link;
65};
66
67struct sys_unlink_args {
68 syscallarg(const char *) path;
69};
70
71struct sys_wait4_args {
72 syscallarg(pid_t) pid;
73 syscallarg(int *) status;
74 syscallarg(int) options;
75 syscallarg(struct rusage *) rusage;
76};
77
78struct sys_chdir_args {
79 syscallarg(const char *) path;
80};
81
82struct sys_fchdir_args {
83 syscallarg(int) fd;
84};
85
86struct sys_mknod_args {
87 syscallarg(const char *) path;
88 syscallarg(mode_t) mode;
89 syscallarg(dev_t) dev;
90};
91
92struct sys_chmod_args {
93 syscallarg(const char *) path;
94 syscallarg(mode_t) mode;
95};
96
97struct sys_chown_args {
98 syscallarg(const char *) path;
99 syscallarg(uid_t) uid;
100 syscallarg(gid_t) gid;
101};
102
103struct sys_obreak_args {
104 syscallarg(char *) nsize;
105};
106
107struct sys_getrusage_args {
108 syscallarg(int) who;
109 syscallarg(struct rusage *) rusage;
110};
111
112struct sys_mount_args {
113 syscallarg(const char *) type;
114 syscallarg(const char *) path;
115 syscallarg(int) flags;
116 syscallarg(void *) data;
117};
118
119struct sys_unmount_args {
120 syscallarg(const char *) path;
121 syscallarg(int) flags;
122};
123
124struct sys_setuid_args {
125 syscallarg(uid_t) uid;
126};
127
128struct sys_ptrace_args {
129 syscallarg(int) req;
130 syscallarg(pid_t) pid;
131 syscallarg(caddr_t) addr;
132 syscallarg(int) data;
133};
134
135struct sys_recvmsg_args {
136 syscallarg(int) s;
137 syscallarg(struct msghdr *) msg;
138 syscallarg(int) flags;
139};
140
141struct sys_sendmsg_args {
142 syscallarg(int) s;
143 syscallarg(const struct msghdr *) msg;
144 syscallarg(int) flags;
145};
146
147struct sys_recvfrom_args {
148 syscallarg(int) s;
149 syscallarg(void *) buf;
150 syscallarg(size_t) len;
151 syscallarg(int) flags;
152 syscallarg(struct sockaddr *) from;
153 syscallarg(socklen_t *) fromlenaddr;
154};
155
156struct sys_accept_args {
157 syscallarg(int) s;
158 syscallarg(struct sockaddr *) name;
159 syscallarg(socklen_t *) anamelen;
160};
161
162struct sys_getpeername_args {
163 syscallarg(int) fdes;
164 syscallarg(struct sockaddr *) asa;
165 syscallarg(socklen_t *) alen;
166};
167
168struct sys_getsockname_args {
169 syscallarg(int) fdes;
170 syscallarg(struct sockaddr *) asa;
171 syscallarg(socklen_t *) alen;
172};
173
174struct sys_access_args {
175 syscallarg(const char *) path;
176 syscallarg(int) amode;
177};
178
179struct sys_chflags_args {
180 syscallarg(const char *) path;
181 syscallarg(u_int) flags;
182};
183
184struct sys_fchflags_args {
185 syscallarg(int) fd;
186 syscallarg(u_int) flags;
187};
188
189struct sys_stat_args {
190 syscallarg(const char *) path;
191 syscallarg(struct stat *) ub;
192};
193
194struct sys_lstat_args {
195 syscallarg(const char *) path;
196 syscallarg(struct stat *) ub;
197};
198
199struct sys_dup_args {
200 syscallarg(int) fd;
201};
202
203struct sys_fstatat_args {
204 syscallarg(int) fd;
205 syscallarg(const char *) path;
206 syscallarg(struct stat *) buf;
207 syscallarg(int) flag;
208};
209
210struct sys_ktrace_args {
211 syscallarg(const char *) fname;
212 syscallarg(int) ops;
213 syscallarg(int) facs;
214 syscallarg(pid_t) pid;
215};
216
217struct sys_sigaction_args {
218 syscallarg(int) signum;
219 syscallarg(const struct sigaction *) nsa;
220 syscallarg(struct sigaction *) osa;
221};
222
223struct sys_sigprocmask_args {
224 syscallarg(int) how;
225 syscallarg(sigset_t) mask;
226};
227
228struct sys_mmap_args {
229 syscallarg(void *) addr;
230 syscallarg(size_t) len;
231 syscallarg(int) prot;
232 syscallarg(int) flags;
233 syscallarg(int) fd;
234 syscallarg(off_t) pos;
235};
236
237struct sys_setlogin_args {
238 syscallarg(const char *) namebuf;
239};
240
241struct sys_acct_args {
242 syscallarg(const char *) path;
243};
244
245struct sys_fstat_args {
246 syscallarg(int) fd;
247 syscallarg(struct stat *) sb;
248};
249
250struct sys_ioctl_args {
251 syscallarg(int) fd;
252 syscallarg(u_long) com;
253 syscallarg(void *) data;
254};
255
256struct sys_reboot_args {
257 syscallarg(int) opt;
258};
259
260struct sys_revoke_args {
261 syscallarg(const char *) path;
262};
263
264struct sys_symlink_args {
265 syscallarg(const char *) path;
266 syscallarg(const char *) link;
267};
268
269struct sys_readlink_args {
270 syscallarg(const char *) path;
271 syscallarg(char *) buf;
272 syscallarg(size_t) count;
273};
274
275struct sys_execve_args {
276 syscallarg(const char *) path;
277 syscallarg(char *const *) argp;
278 syscallarg(char *const *) envp;
279};
280
281struct sys_umask_args {
282 syscallarg(mode_t) newmask;
283};
284
285struct sys_chroot_args {
286 syscallarg(const char *) path;
287};
288
289struct sys_getfsstat_args {
290 syscallarg(struct statfs *) buf;
291 syscallarg(size_t) bufsize;
292 syscallarg(int) flags;
293};
294
295struct sys_statfs_args {
296 syscallarg(const char *) path;
297 syscallarg(struct statfs *) buf;
298};
299
300struct sys_fstatfs_args {
301 syscallarg(int) fd;
302 syscallarg(struct statfs *) buf;
303};
304
305struct sys_fhstatfs_args {
306 syscallarg(const fhandle_t *) fhp;
307 syscallarg(struct statfs *) buf;
308};
309
310struct sys_gettimeofday_args {
311 syscallarg(struct timeval *) tp;
312 syscallarg(struct timezone *) tzp;
313};
314
315struct sys_settimeofday_args {
316 syscallarg(const struct timeval *) tv;
317 syscallarg(const struct timezone *) tzp;
318};
319
320struct sys_setitimer_args {
321 syscallarg(int) which;
322 syscallarg(const struct itimerval *) itv;
323 syscallarg(struct itimerval *) oitv;
324};
325
326struct sys_getitimer_args {
327 syscallarg(int) which;
328 syscallarg(struct itimerval *) itv;
329};
330
331struct sys_select_args {
332 syscallarg(int) nd;
333 syscallarg(fd_set *) in;
334 syscallarg(fd_set *) ou;
335 syscallarg(fd_set *) ex;
336 syscallarg(struct timeval *) tv;
337};
338
339struct sys_kevent_args {
340 syscallarg(int) fd;
341 syscallarg(const struct kevent *) changelist;
342 syscallarg(int) nchanges;
343 syscallarg(struct kevent *) eventlist;
344 syscallarg(int) nevents;
345 syscallarg(const struct timespec *) timeout;
346};
347
348struct sys_munmap_args {
349 syscallarg(void *) addr;
350 syscallarg(size_t) len;
351};
352
353struct sys_mprotect_args {
354 syscallarg(void *) addr;
355 syscallarg(size_t) len;
356 syscallarg(int) prot;
357};
358
359struct sys_madvise_args {
360 syscallarg(void *) addr;
361 syscallarg(size_t) len;
362 syscallarg(int) behav;
363};
364
365struct sys_utimes_args {
366 syscallarg(const char *) path;
367 syscallarg(const struct timeval *) tptr;
368};
369
370struct sys_futimes_args {
371 syscallarg(int) fd;
372 syscallarg(const struct timeval *) tptr;
373};
374
375struct sys_mquery_args {
376 syscallarg(void *) addr;
377 syscallarg(size_t) len;
378 syscallarg(int) prot;
379 syscallarg(int) flags;
380 syscallarg(int) fd;
381 syscallarg(off_t) pos;
382};
383
384struct sys_getgroups_args {
385 syscallarg(int) gidsetsize;
386 syscallarg(gid_t *) gidset;
387};
388
389struct sys_setgroups_args {
390 syscallarg(int) gidsetsize;
391 syscallarg(const gid_t *) gidset;
392};
393
394struct sys_setpgid_args {
395 syscallarg(pid_t) pid;
396 syscallarg(pid_t) pgid;
397};
398
399struct sys_futex_args {
400 syscallarg(uint32_t *) f;
401 syscallarg(int) op;
402 syscallarg(int) val;
403 syscallarg(const struct timespec *) timeout;
404 syscallarg(uint32_t *) g;
405};
406
407struct sys_utimensat_args {
408 syscallarg(int) fd;
409 syscallarg(const char *) path;
410 syscallarg(const struct timespec *) times;
411 syscallarg(int) flag;
412};
413
414struct sys_futimens_args {
415 syscallarg(int) fd;
416 syscallarg(const struct timespec *) times;
417};
418
419struct sys_kbind_args {
420 syscallarg(const struct __kbind *) param;
421 syscallarg(size_t) psize;
422 syscallarg(int64_t) proc_cookie;
423};
424
425struct sys_clock_gettime_args {
426 syscallarg(clockid_t) clock_id;
427 syscallarg(struct timespec *) tp;
428};
429
430struct sys_clock_settime_args {
431 syscallarg(clockid_t) clock_id;
432 syscallarg(const struct timespec *) tp;
433};
434
435struct sys_clock_getres_args {
436 syscallarg(clockid_t) clock_id;
437 syscallarg(struct timespec *) tp;
438};
439
440struct sys_dup2_args {
441 syscallarg(int) from;
442 syscallarg(int) to;
443};
444
445struct sys_nanosleep_args {
446 syscallarg(const struct timespec *) rqtp;
447 syscallarg(struct timespec *) rmtp;
448};
449
450struct sys_fcntl_args {
451 syscallarg(int) fd;
452 syscallarg(int) cmd;
453 syscallarg(void *) arg;
454};
455
456struct sys_accept4_args {
457 syscallarg(int) s;
458 syscallarg(struct sockaddr *) name;
459 syscallarg(socklen_t *) anamelen;
460 syscallarg(int) flags;
461};
462
463struct sys___thrsleep_args {
464 syscallarg(const volatile void *) ident;
465 syscallarg(clockid_t) clock_id;
466 syscallarg(const struct timespec *) tp;
467 syscallarg(void *) lock;
468 syscallarg(const int *) abort;
469};
470
471struct sys_fsync_args {
472 syscallarg(int) fd;
473};
474
475struct sys_setpriority_args {
476 syscallarg(int) which;
477 syscallarg(id_t) who;
478 syscallarg(int) prio;
479};
480
481struct sys_socket_args {
482 syscallarg(int) domain;
483 syscallarg(int) type;
484 syscallarg(int) protocol;
485};
486
487struct sys_connect_args {
488 syscallarg(int) s;
489 syscallarg(const struct sockaddr *) name;
490 syscallarg(socklen_t) namelen;
491};
492
493struct sys_getdents_args {
494 syscallarg(int) fd;
495 syscallarg(void *) buf;
496 syscallarg(size_t) buflen;
497};
498
499struct sys_getpriority_args {
500 syscallarg(int) which;
501 syscallarg(id_t) who;
502};
503
504struct sys_pipe2_args {
505 syscallarg(int *) fdp;
506 syscallarg(int) flags;
507};
508
509struct sys_dup3_args {
510 syscallarg(int) from;
511 syscallarg(int) to;
512 syscallarg(int) flags;
513};
514
515struct sys_sigreturn_args {
516 syscallarg(struct sigcontext *) sigcntxp;
517};
518
519struct sys_bind_args {
520 syscallarg(int) s;
521 syscallarg(const struct sockaddr *) name;
522 syscallarg(socklen_t) namelen;
523};
524
525struct sys_setsockopt_args {
526 syscallarg(int) s;
527 syscallarg(int) level;
528 syscallarg(int) name;
529 syscallarg(const void *) val;
530 syscallarg(socklen_t) valsize;
531};
532
533struct sys_listen_args {
534 syscallarg(int) s;
535 syscallarg(int) backlog;
536};
537
538struct sys_chflagsat_args {
539 syscallarg(int) fd;
540 syscallarg(const char *) path;
541 syscallarg(u_int) flags;
542 syscallarg(int) atflags;
543};
544
545struct sys_pledge_args {
546 syscallarg(const char *) promises;
547 syscallarg(const char *) execpromises;
548};
549
550struct sys_ppoll_args {
551 syscallarg(struct pollfd *) fds;
552 syscallarg(u_int) nfds;
553 syscallarg(const struct timespec *) ts;
554 syscallarg(const sigset_t *) mask;
555};
556
557struct sys_pselect_args {
558 syscallarg(int) nd;
559 syscallarg(fd_set *) in;
560 syscallarg(fd_set *) ou;
561 syscallarg(fd_set *) ex;
562 syscallarg(const struct timespec *) ts;
563 syscallarg(const sigset_t *) mask;
564};
565
566struct sys_sigsuspend_args {
567 syscallarg(int) mask;
568};
569
570struct sys_sendsyslog_args {
571 syscallarg(const char *) buf;
572 syscallarg(size_t) nbyte;
573 syscallarg(int) flags;
574};
575
576struct sys_unveil_args {
577 syscallarg(const char *) path;
578 syscallarg(const char *) permissions;
579};
580
581struct sys___realpath_args {
582 syscallarg(const char *) pathname;
583 syscallarg(char *) resolved;
584};
585
586struct sys_recvmmsg_args {
587 syscallarg(int) s;
588 syscallarg(struct mmsghdr *) mmsg;
589 syscallarg(unsigned int) vlen;
590 syscallarg(int) flags;
591 syscallarg(struct timespec *) timeout;
592};
593
594struct sys_sendmmsg_args {
595 syscallarg(int) s;
596 syscallarg(struct mmsghdr *) mmsg;
597 syscallarg(unsigned int) vlen;
598 syscallarg(int) flags;
599};
600
601struct sys_getsockopt_args {
602 syscallarg(int) s;
603 syscallarg(int) level;
604 syscallarg(int) name;
605 syscallarg(void *) val;
606 syscallarg(socklen_t *) avalsize;
607};
608
609struct sys_thrkill_args {
610 syscallarg(pid_t) tid;
611 syscallarg(int) signum;
612 syscallarg(void *) tcb;
613};
614
615struct sys_readv_args {
616 syscallarg(int) fd;
617 syscallarg(const struct iovec *) iovp;
618 syscallarg(int) iovcnt;
619};
620
621struct sys_writev_args {
622 syscallarg(int) fd;
623 syscallarg(const struct iovec *) iovp;
624 syscallarg(int) iovcnt;
625};
626
627struct sys_kill_args {
628 syscallarg(int) pid;
629 syscallarg(int) signum;
630};
631
632struct sys_fchown_args {
633 syscallarg(int) fd;
634 syscallarg(uid_t) uid;
635 syscallarg(gid_t) gid;
636};
637
638struct sys_fchmod_args {
639 syscallarg(int) fd;
640 syscallarg(mode_t) mode;
641};
642
643struct sys___pledge_open_args {
644 syscallarg(const char *) path;
645 syscallarg(int) flags;
646 syscallarg(mode_t) mode;
647};
648
649struct sys_setreuid_args {
650 syscallarg(uid_t) ruid;
651 syscallarg(uid_t) euid;
652};
653
654struct sys_setregid_args {
655 syscallarg(gid_t) rgid;
656 syscallarg(gid_t) egid;
657};
658
659struct sys_rename_args {
660 syscallarg(const char *) from;
661 syscallarg(const char *) to;
662};
663
664struct sys_flock_args {
665 syscallarg(int) fd;
666 syscallarg(int) how;
667};
668
669struct sys_mkfifo_args {
670 syscallarg(const char *) path;
671 syscallarg(mode_t) mode;
672};
673
674struct sys_sendto_args {
675 syscallarg(int) s;
676 syscallarg(const void *) buf;
677 syscallarg(size_t) len;
678 syscallarg(int) flags;
679 syscallarg(const struct sockaddr *) to;
680 syscallarg(socklen_t) tolen;
681};
682
683struct sys_shutdown_args {
684 syscallarg(int) s;
685 syscallarg(int) how;
686};
687
688struct sys_socketpair_args {
689 syscallarg(int) domain;
690 syscallarg(int) type;
691 syscallarg(int) protocol;
692 syscallarg(int *) rsv;
693};
694
695struct sys_mkdir_args {
696 syscallarg(const char *) path;
697 syscallarg(mode_t) mode;
698};
699
700struct sys_rmdir_args {
701 syscallarg(const char *) path;
702};
703
704struct sys_adjtime_args {
705 syscallarg(const struct timeval *) delta;
706 syscallarg(struct timeval *) olddelta;
707};
708
709struct sys_getlogin_r_args {
710 syscallarg(char *) namebuf;
711 syscallarg(size_t) namelen;
712};
713
714struct sys_getthrname_args {
715 syscallarg(pid_t) tid;
716 syscallarg(char *) name;
717 syscallarg(size_t) len;
718};
719
720struct sys_setthrname_args {
721 syscallarg(pid_t) tid;
722 syscallarg(const char *) name;
723};
724
725struct sys_quotactl_args {
726 syscallarg(const char *) path;
727 syscallarg(int) cmd;
728 syscallarg(int) uid;
729 syscallarg(char *) arg;
730};
731
732struct sys_ypconnect_args {
733 syscallarg(int) type;
734};
735
736struct sys_nfssvc_args {
737 syscallarg(int) flag;
738 syscallarg(void *) argp;
739};
740
741struct sys_pinsyscalls_args {
742 syscallarg(void *) base;
743 syscallarg(size_t) len;
744 syscallarg(u_int *) pins;
745 syscallarg(int) npins;
746};
747
748struct sys_mimmutable_args {
749 syscallarg(void *) addr;
750 syscallarg(size_t) len;
751};
752
753struct sys_waitid_args {
754 syscallarg(int) idtype;
755 syscallarg(id_t) id;
756 syscallarg(siginfo_t *) info;
757 syscallarg(int) options;
758};
759
760struct sys_getfh_args {
761 syscallarg(const char *) fname;
762 syscallarg(fhandle_t *) fhp;
763};
764
765struct sys___tmpfd_args {
766 syscallarg(int) flags;
767};
768
769struct sys_sysarch_args {
770 syscallarg(int) op;
771 syscallarg(void *) parms;
772};
773
774struct sys_lseek_args {
775 syscallarg(int) fd;
776 syscallarg(off_t) offset;
777 syscallarg(int) whence;
778};
779
780struct sys_truncate_args {
781 syscallarg(const char *) path;
782 syscallarg(off_t) length;
783};
784
785struct sys_ftruncate_args {
786 syscallarg(int) fd;
787 syscallarg(off_t) length;
788};
789
790struct sys_pread_args {
791 syscallarg(int) fd;
792 syscallarg(void *) buf;
793 syscallarg(size_t) nbyte;
794 syscallarg(off_t) offset;
795};
796
797struct sys_pwrite_args {
798 syscallarg(int) fd;
799 syscallarg(const void *) buf;
800 syscallarg(size_t) nbyte;
801 syscallarg(off_t) offset;
802};
803
804struct sys_preadv_args {
805 syscallarg(int) fd;
806 syscallarg(const struct iovec *) iovp;
807 syscallarg(int) iovcnt;
808 syscallarg(off_t) offset;
809};
810
811struct sys_pwritev_args {
812 syscallarg(int) fd;
813 syscallarg(const struct iovec *) iovp;
814 syscallarg(int) iovcnt;
815 syscallarg(off_t) offset;
816};
817
818struct sys_profil_args {
819 syscallarg(void *) buf;
820 syscallarg(size_t) buflen;
821 syscallarg(size_t) samplesize;
822 syscallarg(u_long) offset;
823 syscallarg(u_int) scale;
824 syscallarg(int) dirfd;
825};
826
827struct sys_setgid_args {
828 syscallarg(gid_t) gid;
829};
830
831struct sys_setegid_args {
832 syscallarg(gid_t) egid;
833};
834
835struct sys_seteuid_args {
836 syscallarg(uid_t) euid;
837};
838
839struct sys_pathconfat_args {
840 syscallarg(int) fd;
841 syscallarg(const char *) path;
842 syscallarg(int) name;
843 syscallarg(int) flag;
844};
845
846struct sys_pathconf_args {
847 syscallarg(const char *) path;
848 syscallarg(int) name;
849};
850
851struct sys_fpathconf_args {
852 syscallarg(int) fd;
853 syscallarg(int) name;
854};
855
856struct sys_swapctl_args {
857 syscallarg(int) cmd;
858 syscallarg(const void *) arg;
859 syscallarg(int) misc;
860};
861
862struct sys_getrlimit_args {
863 syscallarg(int) which;
864 syscallarg(struct rlimit *) rlp;
865};
866
867struct sys_setrlimit_args {
868 syscallarg(int) which;
869 syscallarg(const struct rlimit *) rlp;
870};
871
872struct sys_sysctl_args {
873 syscallarg(const int *) name;
874 syscallarg(u_int) namelen;
875 syscallarg(void *) old;
876 syscallarg(size_t *) oldlenp;
877 syscallarg(void *) new;
878 syscallarg(size_t) newlen;
879};
880
881struct sys_mlock_args {
882 syscallarg(const void *) addr;
883 syscallarg(size_t) len;
884};
885
886struct sys_munlock_args {
887 syscallarg(const void *) addr;
888 syscallarg(size_t) len;
889};
890
891struct sys_getpgid_args {
892 syscallarg(pid_t) pid;
893};
894
895struct sys_utrace_args {
896 syscallarg(const char *) label;
897 syscallarg(const void *) addr;
898 syscallarg(size_t) len;
899};
900
901struct sys_semget_args {
902 syscallarg(key_t) key;
903 syscallarg(int) nsems;
904 syscallarg(int) semflg;
905};
906
907struct sys_msgget_args {
908 syscallarg(key_t) key;
909 syscallarg(int) msgflg;
910};
911
912struct sys_msgsnd_args {
913 syscallarg(int) msqid;
914 syscallarg(const void *) msgp;
915 syscallarg(size_t) msgsz;
916 syscallarg(int) msgflg;
917};
918
919struct sys_msgrcv_args {
920 syscallarg(int) msqid;
921 syscallarg(void *) msgp;
922 syscallarg(size_t) msgsz;
923 syscallarg(long) msgtyp;
924 syscallarg(int) msgflg;
925};
926
927struct sys_shmat_args {
928 syscallarg(int) shmid;
929 syscallarg(const void *) shmaddr;
930 syscallarg(int) shmflg;
931};
932
933struct sys_shmdt_args {
934 syscallarg(const void *) shmaddr;
935};
936
937struct sys_minherit_args {
938 syscallarg(void *) addr;
939 syscallarg(size_t) len;
940 syscallarg(int) inherit;
941};
942
943struct sys_poll_args {
944 syscallarg(struct pollfd *) fds;
945 syscallarg(u_int) nfds;
946 syscallarg(int) timeout;
947};
948
949struct sys_lchown_args {
950 syscallarg(const char *) path;
951 syscallarg(uid_t) uid;
952 syscallarg(gid_t) gid;
953};
954
955struct sys_getsid_args {
956 syscallarg(pid_t) pid;
957};
958
959struct sys_msync_args {
960 syscallarg(void *) addr;
961 syscallarg(size_t) len;
962 syscallarg(int) flags;
963};
964
965struct sys_pipe_args {
966 syscallarg(int *) fdp;
967};
968
969struct sys_fhopen_args {
970 syscallarg(const fhandle_t *) fhp;
971 syscallarg(int) flags;
972};
973
974struct sys_kqueue1_args {
975 syscallarg(int) flags;
976};
977
978struct sys_mlockall_args {
979 syscallarg(int) flags;
980};
981
982struct sys_getresuid_args {
983 syscallarg(uid_t *) ruid;
984 syscallarg(uid_t *) euid;
985 syscallarg(uid_t *) suid;
986};
987
988struct sys_setresuid_args {
989 syscallarg(uid_t) ruid;
990 syscallarg(uid_t) euid;
991 syscallarg(uid_t) suid;
992};
993
994struct sys_getresgid_args {
995 syscallarg(gid_t *) rgid;
996 syscallarg(gid_t *) egid;
997 syscallarg(gid_t *) sgid;
998};
999
1000struct sys_setresgid_args {
1001 syscallarg(gid_t) rgid;
1002 syscallarg(gid_t) egid;
1003 syscallarg(gid_t) sgid;
1004};
1005
1006struct sys_closefrom_args {
1007 syscallarg(int) fd;
1008};
1009
1010struct sys_sigaltstack_args {
1011 syscallarg(const struct sigaltstack *) nss;
1012 syscallarg(struct sigaltstack *) oss;
1013};
1014
1015struct sys_shmget_args {
1016 syscallarg(key_t) key;
1017 syscallarg(size_t) size;
1018 syscallarg(int) shmflg;
1019};
1020
1021struct sys_semop_args {
1022 syscallarg(int) semid;
1023 syscallarg(struct sembuf *) sops;
1024 syscallarg(size_t) nsops;
1025};
1026
1027struct sys_fhstat_args {
1028 syscallarg(const fhandle_t *) fhp;
1029 syscallarg(struct stat *) sb;
1030};
1031
1032struct sys___semctl_args {
1033 syscallarg(int) semid;
1034 syscallarg(int) semnum;
1035 syscallarg(int) cmd;
1036 syscallarg(union semun *) arg;
1037};
1038
1039struct sys_shmctl_args {
1040 syscallarg(int) shmid;
1041 syscallarg(int) cmd;
1042 syscallarg(struct shmid_ds *) buf;
1043};
1044
1045struct sys_msgctl_args {
1046 syscallarg(int) msqid;
1047 syscallarg(int) cmd;
1048 syscallarg(struct msqid_ds *) buf;
1049};
1050
1051struct sys___thrwakeup_args {
1052 syscallarg(const volatile void *) ident;
1053 syscallarg(int) n;
1054};
1055
1056struct sys___threxit_args {
1057 syscallarg(pid_t *) notdead;
1058};
1059
1060struct sys___thrsigdivert_args {
1061 syscallarg(sigset_t) sigmask;
1062 syscallarg(siginfo_t *) info;
1063 syscallarg(const struct timespec *) timeout;
1064};
1065
1066struct sys___getcwd_args {
1067 syscallarg(char *) buf;
1068 syscallarg(size_t) len;
1069};
1070
1071struct sys_adjfreq_args {
1072 syscallarg(const int64_t *) freq;
1073 syscallarg(int64_t *) oldfreq;
1074};
1075
1076struct sys_setrtable_args {
1077 syscallarg(int) rtableid;
1078};
1079
1080struct sys_faccessat_args {
1081 syscallarg(int) fd;
1082 syscallarg(const char *) path;
1083 syscallarg(int) amode;
1084 syscallarg(int) flag;
1085};
1086
1087struct sys_fchmodat_args {
1088 syscallarg(int) fd;
1089 syscallarg(const char *) path;
1090 syscallarg(mode_t) mode;
1091 syscallarg(int) flag;
1092};
1093
1094struct sys_fchownat_args {
1095 syscallarg(int) fd;
1096 syscallarg(const char *) path;
1097 syscallarg(uid_t) uid;
1098 syscallarg(gid_t) gid;
1099 syscallarg(int) flag;
1100};
1101
1102struct sys_linkat_args {
1103 syscallarg(int) fd1;
1104 syscallarg(const char *) path1;
1105 syscallarg(int) fd2;
1106 syscallarg(const char *) path2;
1107 syscallarg(int) flag;
1108};
1109
1110struct sys_mkdirat_args {
1111 syscallarg(int) fd;
1112 syscallarg(const char *) path;
1113 syscallarg(mode_t) mode;
1114};
1115
1116struct sys_mkfifoat_args {
1117 syscallarg(int) fd;
1118 syscallarg(const char *) path;
1119 syscallarg(mode_t) mode;
1120};
1121
1122struct sys_mknodat_args {
1123 syscallarg(int) fd;
1124 syscallarg(const char *) path;
1125 syscallarg(mode_t) mode;
1126 syscallarg(dev_t) dev;
1127};
1128
1129struct sys_openat_args {
1130 syscallarg(int) fd;
1131 syscallarg(const char *) path;
1132 syscallarg(int) flags;
1133 syscallarg(mode_t) mode;
1134};
1135
1136struct sys_readlinkat_args {
1137 syscallarg(int) fd;
1138 syscallarg(const char *) path;
1139 syscallarg(char *) buf;
1140 syscallarg(size_t) count;
1141};
1142
1143struct sys_renameat_args {
1144 syscallarg(int) fromfd;
1145 syscallarg(const char *) from;
1146 syscallarg(int) tofd;
1147 syscallarg(const char *) to;
1148};
1149
1150struct sys_symlinkat_args {
1151 syscallarg(const char *) path;
1152 syscallarg(int) fd;
1153 syscallarg(const char *) link;
1154};
1155
1156struct sys_unlinkat_args {
1157 syscallarg(int) fd;
1158 syscallarg(const char *) path;
1159 syscallarg(int) flag;
1160};
1161
1162struct sys___set_tcb_args {
1163 syscallarg(void *) tcb;
1164};
1165
1166/*
1167 * System call prototypes.
1168 */
1169
1170int sys_exit(struct proc *, void *, register_t *);
1171int sys_fork(struct proc *, void *, register_t *);
1172int sys_read(struct proc *, void *, register_t *);
1173int sys_write(struct proc *, void *, register_t *);
1174int sys_open(struct proc *, void *, register_t *);
1175int sys_close(struct proc *, void *, register_t *);
1176int sys_getentropy(struct proc *, void *, register_t *);
1177int sys___tfork(struct proc *, void *, register_t *);
1178int sys_link(struct proc *, void *, register_t *);
1179int sys_unlink(struct proc *, void *, register_t *);
1180int sys_wait4(struct proc *, void *, register_t *);
1181int sys_chdir(struct proc *, void *, register_t *);
1182int sys_fchdir(struct proc *, void *, register_t *);
1183int sys_mknod(struct proc *, void *, register_t *);
1184int sys_chmod(struct proc *, void *, register_t *);
1185int sys_chown(struct proc *, void *, register_t *);
1186int sys_obreak(struct proc *, void *, register_t *);
1187int sys_getdtablecount(struct proc *, void *, register_t *);
1188int sys_getrusage(struct proc *, void *, register_t *);
1189int sys_getpid(struct proc *, void *, register_t *);
1190int sys_mount(struct proc *, void *, register_t *);
1191int sys_unmount(struct proc *, void *, register_t *);
1192int sys_setuid(struct proc *, void *, register_t *);
1193int sys_getuid(struct proc *, void *, register_t *);
1194int sys_geteuid(struct proc *, void *, register_t *);
1195#ifdef PTRACE
1196int sys_ptrace(struct proc *, void *, register_t *);
1197#else
1198#endif
1199int sys_recvmsg(struct proc *, void *, register_t *);
1200int sys_sendmsg(struct proc *, void *, register_t *);
1201int sys_recvfrom(struct proc *, void *, register_t *);
1202int sys_accept(struct proc *, void *, register_t *);
1203int sys_getpeername(struct proc *, void *, register_t *);
1204int sys_getsockname(struct proc *, void *, register_t *);
1205int sys_access(struct proc *, void *, register_t *);
1206int sys_chflags(struct proc *, void *, register_t *);
1207int sys_fchflags(struct proc *, void *, register_t *);
1208int sys_sync(struct proc *, void *, register_t *);
1209int sys_stat(struct proc *, void *, register_t *);
1210int sys_getppid(struct proc *, void *, register_t *);
1211int sys_lstat(struct proc *, void *, register_t *);
1212int sys_dup(struct proc *, void *, register_t *);
1213int sys_fstatat(struct proc *, void *, register_t *);
1214int sys_getegid(struct proc *, void *, register_t *);
1215#ifdef KTRACE
1216int sys_ktrace(struct proc *, void *, register_t *);
1217#else
1218#endif
1219int sys_sigaction(struct proc *, void *, register_t *);
1220int sys_getgid(struct proc *, void *, register_t *);
1221int sys_sigprocmask(struct proc *, void *, register_t *);
1222int sys_mmap(struct proc *, void *, register_t *);
1223int sys_setlogin(struct proc *, void *, register_t *);
1224#ifdef ACCOUNTING
1225int sys_acct(struct proc *, void *, register_t *);
1226#else
1227#endif
1228int sys_sigpending(struct proc *, void *, register_t *);
1229int sys_fstat(struct proc *, void *, register_t *);
1230int sys_ioctl(struct proc *, void *, register_t *);
1231int sys_reboot(struct proc *, void *, register_t *);
1232int sys_revoke(struct proc *, void *, register_t *);
1233int sys_symlink(struct proc *, void *, register_t *);
1234int sys_readlink(struct proc *, void *, register_t *);
1235int sys_execve(struct proc *, void *, register_t *);
1236int sys_umask(struct proc *, void *, register_t *);
1237int sys_chroot(struct proc *, void *, register_t *);
1238int sys_getfsstat(struct proc *, void *, register_t *);
1239int sys_statfs(struct proc *, void *, register_t *);
1240int sys_fstatfs(struct proc *, void *, register_t *);
1241int sys_fhstatfs(struct proc *, void *, register_t *);
1242int sys_vfork(struct proc *, void *, register_t *);
1243int sys_gettimeofday(struct proc *, void *, register_t *);
1244int sys_settimeofday(struct proc *, void *, register_t *);
1245int sys_setitimer(struct proc *, void *, register_t *);
1246int sys_getitimer(struct proc *, void *, register_t *);
1247int sys_select(struct proc *, void *, register_t *);
1248int sys_kevent(struct proc *, void *, register_t *);
1249int sys_munmap(struct proc *, void *, register_t *);
1250int sys_mprotect(struct proc *, void *, register_t *);
1251int sys_madvise(struct proc *, void *, register_t *);
1252int sys_utimes(struct proc *, void *, register_t *);
1253int sys_futimes(struct proc *, void *, register_t *);
1254int sys_mquery(struct proc *, void *, register_t *);
1255int sys_getgroups(struct proc *, void *, register_t *);
1256int sys_setgroups(struct proc *, void *, register_t *);
1257int sys_getpgrp(struct proc *, void *, register_t *);
1258int sys_setpgid(struct proc *, void *, register_t *);
1259int sys_futex(struct proc *, void *, register_t *);
1260int sys_utimensat(struct proc *, void *, register_t *);
1261int sys_futimens(struct proc *, void *, register_t *);
1262int sys_kbind(struct proc *, void *, register_t *);
1263int sys_clock_gettime(struct proc *, void *, register_t *);
1264int sys_clock_settime(struct proc *, void *, register_t *);
1265int sys_clock_getres(struct proc *, void *, register_t *);
1266int sys_dup2(struct proc *, void *, register_t *);
1267int sys_nanosleep(struct proc *, void *, register_t *);
1268int sys_fcntl(struct proc *, void *, register_t *);
1269int sys_accept4(struct proc *, void *, register_t *);
1270int sys___thrsleep(struct proc *, void *, register_t *);
1271int sys_fsync(struct proc *, void *, register_t *);
1272int sys_setpriority(struct proc *, void *, register_t *);
1273int sys_socket(struct proc *, void *, register_t *);
1274int sys_connect(struct proc *, void *, register_t *);
1275int sys_getdents(struct proc *, void *, register_t *);
1276int sys_getpriority(struct proc *, void *, register_t *);
1277int sys_pipe2(struct proc *, void *, register_t *);
1278int sys_dup3(struct proc *, void *, register_t *);
1279int sys_sigreturn(struct proc *, void *, register_t *);
1280int sys_bind(struct proc *, void *, register_t *);
1281int sys_setsockopt(struct proc *, void *, register_t *);
1282int sys_listen(struct proc *, void *, register_t *);
1283int sys_chflagsat(struct proc *, void *, register_t *);
1284int sys_pledge(struct proc *, void *, register_t *);
1285int sys_ppoll(struct proc *, void *, register_t *);
1286int sys_pselect(struct proc *, void *, register_t *);
1287int sys_sigsuspend(struct proc *, void *, register_t *);
1288int sys_sendsyslog(struct proc *, void *, register_t *);
1289int sys_unveil(struct proc *, void *, register_t *);
1290int sys___realpath(struct proc *, void *, register_t *);
1291int sys_recvmmsg(struct proc *, void *, register_t *);
1292int sys_sendmmsg(struct proc *, void *, register_t *);
1293int sys_getsockopt(struct proc *, void *, register_t *);
1294int sys_thrkill(struct proc *, void *, register_t *);
1295int sys_readv(struct proc *, void *, register_t *);
1296int sys_writev(struct proc *, void *, register_t *);
1297int sys_kill(struct proc *, void *, register_t *);
1298int sys_fchown(struct proc *, void *, register_t *);
1299int sys_fchmod(struct proc *, void *, register_t *);
1300int sys___pledge_open(struct proc *, void *, register_t *);
1301int sys_setreuid(struct proc *, void *, register_t *);
1302int sys_setregid(struct proc *, void *, register_t *);
1303int sys_rename(struct proc *, void *, register_t *);
1304int sys_flock(struct proc *, void *, register_t *);
1305int sys_mkfifo(struct proc *, void *, register_t *);
1306int sys_sendto(struct proc *, void *, register_t *);
1307int sys_shutdown(struct proc *, void *, register_t *);
1308int sys_socketpair(struct proc *, void *, register_t *);
1309int sys_mkdir(struct proc *, void *, register_t *);
1310int sys_rmdir(struct proc *, void *, register_t *);
1311int sys_adjtime(struct proc *, void *, register_t *);
1312int sys_getlogin_r(struct proc *, void *, register_t *);
1313int sys_getthrname(struct proc *, void *, register_t *);
1314int sys_setthrname(struct proc *, void *, register_t *);
1315int sys_setsid(struct proc *, void *, register_t *);
1316int sys_quotactl(struct proc *, void *, register_t *);
1317int sys_ypconnect(struct proc *, void *, register_t *);
1318#if defined(NFSCLIENT) || defined(NFSSERVER)
1319int sys_nfssvc(struct proc *, void *, register_t *);
1320#else
1321#endif
1322int sys_pinsyscalls(struct proc *, void *, register_t *);
1323int sys_mimmutable(struct proc *, void *, register_t *);
1324int sys_waitid(struct proc *, void *, register_t *);
1325int sys_getfh(struct proc *, void *, register_t *);
1326int sys___tmpfd(struct proc *, void *, register_t *);
1327int sys_sysarch(struct proc *, void *, register_t *);
1328int sys_lseek(struct proc *, void *, register_t *);
1329int sys_truncate(struct proc *, void *, register_t *);
1330int sys_ftruncate(struct proc *, void *, register_t *);
1331int sys_pread(struct proc *, void *, register_t *);
1332int sys_pwrite(struct proc *, void *, register_t *);
1333int sys_preadv(struct proc *, void *, register_t *);
1334int sys_pwritev(struct proc *, void *, register_t *);
1335int sys_profil(struct proc *, void *, register_t *);
1336int sys_setgid(struct proc *, void *, register_t *);
1337int sys_setegid(struct proc *, void *, register_t *);
1338int sys_seteuid(struct proc *, void *, register_t *);
1339int sys_pathconfat(struct proc *, void *, register_t *);
1340int sys_pathconf(struct proc *, void *, register_t *);
1341int sys_fpathconf(struct proc *, void *, register_t *);
1342int sys_swapctl(struct proc *, void *, register_t *);
1343int sys_getrlimit(struct proc *, void *, register_t *);
1344int sys_setrlimit(struct proc *, void *, register_t *);
1345int sys_sysctl(struct proc *, void *, register_t *);
1346int sys_mlock(struct proc *, void *, register_t *);
1347int sys_munlock(struct proc *, void *, register_t *);
1348int sys_getpgid(struct proc *, void *, register_t *);
1349int sys_utrace(struct proc *, void *, register_t *);
1350#ifdef SYSVSEM
1351int sys_semget(struct proc *, void *, register_t *);
1352#else
1353#endif
1354#ifdef SYSVMSG
1355int sys_msgget(struct proc *, void *, register_t *);
1356int sys_msgsnd(struct proc *, void *, register_t *);
1357int sys_msgrcv(struct proc *, void *, register_t *);
1358#else
1359#endif
1360#ifdef SYSVSHM
1361int sys_shmat(struct proc *, void *, register_t *);
1362int sys_shmdt(struct proc *, void *, register_t *);
1363#else
1364#endif
1365int sys_minherit(struct proc *, void *, register_t *);
1366int sys_poll(struct proc *, void *, register_t *);
1367int sys_issetugid(struct proc *, void *, register_t *);
1368int sys_lchown(struct proc *, void *, register_t *);
1369int sys_getsid(struct proc *, void *, register_t *);
1370int sys_msync(struct proc *, void *, register_t *);
1371int sys_pipe(struct proc *, void *, register_t *);
1372int sys_fhopen(struct proc *, void *, register_t *);
1373int sys_kqueue(struct proc *, void *, register_t *);
1374int sys_kqueue1(struct proc *, void *, register_t *);
1375int sys_mlockall(struct proc *, void *, register_t *);
1376int sys_munlockall(struct proc *, void *, register_t *);
1377int sys_getresuid(struct proc *, void *, register_t *);
1378int sys_setresuid(struct proc *, void *, register_t *);
1379int sys_getresgid(struct proc *, void *, register_t *);
1380int sys_setresgid(struct proc *, void *, register_t *);
1381int sys_closefrom(struct proc *, void *, register_t *);
1382int sys_sigaltstack(struct proc *, void *, register_t *);
1383#ifdef SYSVSHM
1384int sys_shmget(struct proc *, void *, register_t *);
1385#else
1386#endif
1387#ifdef SYSVSEM
1388int sys_semop(struct proc *, void *, register_t *);
1389#else
1390#endif
1391int sys_fhstat(struct proc *, void *, register_t *);
1392#ifdef SYSVSEM
1393int sys___semctl(struct proc *, void *, register_t *);
1394#else
1395#endif
1396#ifdef SYSVSHM
1397int sys_shmctl(struct proc *, void *, register_t *);
1398#else
1399#endif
1400#ifdef SYSVMSG
1401int sys_msgctl(struct proc *, void *, register_t *);
1402#else
1403#endif
1404int sys_sched_yield(struct proc *, void *, register_t *);
1405int sys_getthrid(struct proc *, void *, register_t *);
1406int sys___thrwakeup(struct proc *, void *, register_t *);
1407int sys___threxit(struct proc *, void *, register_t *);
1408int sys___thrsigdivert(struct proc *, void *, register_t *);
1409int sys___getcwd(struct proc *, void *, register_t *);
1410int sys_adjfreq(struct proc *, void *, register_t *);
1411int sys_setrtable(struct proc *, void *, register_t *);
1412int sys_getrtable(struct proc *, void *, register_t *);
1413int sys_faccessat(struct proc *, void *, register_t *);
1414int sys_fchmodat(struct proc *, void *, register_t *);
1415int sys_fchownat(struct proc *, void *, register_t *);
1416int sys_linkat(struct proc *, void *, register_t *);
1417int sys_mkdirat(struct proc *, void *, register_t *);
1418int sys_mkfifoat(struct proc *, void *, register_t *);
1419int sys_mknodat(struct proc *, void *, register_t *);
1420int sys_openat(struct proc *, void *, register_t *);
1421int sys_readlinkat(struct proc *, void *, register_t *);
1422int sys_renameat(struct proc *, void *, register_t *);
1423int sys_symlinkat(struct proc *, void *, register_t *);
1424int sys_unlinkat(struct proc *, void *, register_t *);
1425int sys___set_tcb(struct proc *, void *, register_t *);
1426int sys___get_tcb(struct proc *, void *, register_t *);