1/*	$OpenBSD: syscallargs.h,v 1.168 2015/07/20 00:57:06 guenther 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.155 2015/07/20 00:56:10 guenther 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_kill_args {
190	syscallarg(int) pid;
191	syscallarg(int) signum;
192};
193
194struct sys_stat_args {
195	syscallarg(const char *) path;
196	syscallarg(struct stat *) ub;
197};
198
199struct sys_lstat_args {
200	syscallarg(const char *) path;
201	syscallarg(struct stat *) ub;
202};
203
204struct sys_dup_args {
205	syscallarg(int) fd;
206};
207
208struct sys_fstatat_args {
209	syscallarg(int) fd;
210	syscallarg(const char *) path;
211	syscallarg(struct stat *) buf;
212	syscallarg(int) flag;
213};
214
215struct sys_profil_args {
216	syscallarg(caddr_t) samples;
217	syscallarg(size_t) size;
218	syscallarg(u_long) offset;
219	syscallarg(u_int) scale;
220};
221
222struct sys_ktrace_args {
223	syscallarg(const char *) fname;
224	syscallarg(int) ops;
225	syscallarg(int) facs;
226	syscallarg(pid_t) pid;
227};
228
229struct sys_sigaction_args {
230	syscallarg(int) signum;
231	syscallarg(const struct sigaction *) nsa;
232	syscallarg(struct sigaction *) osa;
233};
234
235struct sys_sigprocmask_args {
236	syscallarg(int) how;
237	syscallarg(sigset_t) mask;
238};
239
240struct sys_getlogin_args {
241	syscallarg(char *) namebuf;
242	syscallarg(u_int) namelen;
243};
244
245struct sys_setlogin_args {
246	syscallarg(const char *) namebuf;
247};
248
249struct sys_acct_args {
250	syscallarg(const char *) path;
251};
252
253struct sys_fstat_args {
254	syscallarg(int) fd;
255	syscallarg(struct stat *) sb;
256};
257
258struct sys_ioctl_args {
259	syscallarg(int) fd;
260	syscallarg(u_long) com;
261	syscallarg(void *) data;
262};
263
264struct sys_reboot_args {
265	syscallarg(int) opt;
266};
267
268struct sys_revoke_args {
269	syscallarg(const char *) path;
270};
271
272struct sys_symlink_args {
273	syscallarg(const char *) path;
274	syscallarg(const char *) link;
275};
276
277struct sys_readlink_args {
278	syscallarg(const char *) path;
279	syscallarg(char *) buf;
280	syscallarg(size_t) count;
281};
282
283struct sys_execve_args {
284	syscallarg(const char *) path;
285	syscallarg(char *const *) argp;
286	syscallarg(char *const *) envp;
287};
288
289struct sys_umask_args {
290	syscallarg(mode_t) newmask;
291};
292
293struct sys_chroot_args {
294	syscallarg(const char *) path;
295};
296
297struct sys_getfsstat_args {
298	syscallarg(struct statfs *) buf;
299	syscallarg(size_t) bufsize;
300	syscallarg(int) flags;
301};
302
303struct sys_statfs_args {
304	syscallarg(const char *) path;
305	syscallarg(struct statfs *) buf;
306};
307
308struct sys_fstatfs_args {
309	syscallarg(int) fd;
310	syscallarg(struct statfs *) buf;
311};
312
313struct sys_fhstatfs_args {
314	syscallarg(const fhandle_t *) fhp;
315	syscallarg(struct statfs *) buf;
316};
317
318struct sys_gettimeofday_args {
319	syscallarg(struct timeval *) tp;
320	syscallarg(struct timezone *) tzp;
321};
322
323struct sys_settimeofday_args {
324	syscallarg(const struct timeval *) tv;
325	syscallarg(const struct timezone *) tzp;
326};
327
328struct sys_setitimer_args {
329	syscallarg(int) which;
330	syscallarg(const struct itimerval *) itv;
331	syscallarg(struct itimerval *) oitv;
332};
333
334struct sys_getitimer_args {
335	syscallarg(int) which;
336	syscallarg(struct itimerval *) itv;
337};
338
339struct sys_select_args {
340	syscallarg(int) nd;
341	syscallarg(fd_set *) in;
342	syscallarg(fd_set *) ou;
343	syscallarg(fd_set *) ex;
344	syscallarg(struct timeval *) tv;
345};
346
347struct sys_kevent_args {
348	syscallarg(int) fd;
349	syscallarg(const struct kevent *) changelist;
350	syscallarg(int) nchanges;
351	syscallarg(struct kevent *) eventlist;
352	syscallarg(int) nevents;
353	syscallarg(const struct timespec *) timeout;
354};
355
356struct sys_munmap_args {
357	syscallarg(void *) addr;
358	syscallarg(size_t) len;
359};
360
361struct sys_mprotect_args {
362	syscallarg(void *) addr;
363	syscallarg(size_t) len;
364	syscallarg(int) prot;
365};
366
367struct sys_madvise_args {
368	syscallarg(void *) addr;
369	syscallarg(size_t) len;
370	syscallarg(int) behav;
371};
372
373struct sys_utimes_args {
374	syscallarg(const char *) path;
375	syscallarg(const struct timeval *) tptr;
376};
377
378struct sys_futimes_args {
379	syscallarg(int) fd;
380	syscallarg(const struct timeval *) tptr;
381};
382
383struct sys_mincore_args {
384	syscallarg(void *) addr;
385	syscallarg(size_t) len;
386	syscallarg(char *) vec;
387};
388
389struct sys_getgroups_args {
390	syscallarg(int) gidsetsize;
391	syscallarg(gid_t *) gidset;
392};
393
394struct sys_setgroups_args {
395	syscallarg(int) gidsetsize;
396	syscallarg(const gid_t *) gidset;
397};
398
399struct sys_setpgid_args {
400	syscallarg(pid_t) pid;
401	syscallarg(pid_t) pgid;
402};
403
404struct sys_sendsyslog_args {
405	syscallarg(const void *) buf;
406	syscallarg(size_t) nbyte;
407};
408
409struct sys_utimensat_args {
410	syscallarg(int) fd;
411	syscallarg(const char *) path;
412	syscallarg(const struct timespec *) times;
413	syscallarg(int) flag;
414};
415
416struct sys_futimens_args {
417	syscallarg(int) fd;
418	syscallarg(const struct timespec *) times;
419};
420
421struct sys_kbind_args {
422	syscallarg(const struct __kbind *) param;
423	syscallarg(size_t) psize;
424	syscallarg(int64_t) proc_cookie;
425};
426
427struct sys_clock_gettime_args {
428	syscallarg(clockid_t) clock_id;
429	syscallarg(struct timespec *) tp;
430};
431
432struct sys_clock_settime_args {
433	syscallarg(clockid_t) clock_id;
434	syscallarg(const struct timespec *) tp;
435};
436
437struct sys_clock_getres_args {
438	syscallarg(clockid_t) clock_id;
439	syscallarg(struct timespec *) tp;
440};
441
442struct sys_dup2_args {
443	syscallarg(int) from;
444	syscallarg(int) to;
445};
446
447struct sys_nanosleep_args {
448	syscallarg(const struct timespec *) rqtp;
449	syscallarg(struct timespec *) rmtp;
450};
451
452struct sys_fcntl_args {
453	syscallarg(int) fd;
454	syscallarg(int) cmd;
455	syscallarg(void *) arg;
456};
457
458struct sys_accept4_args {
459	syscallarg(int) s;
460	syscallarg(struct sockaddr *) name;
461	syscallarg(socklen_t *) anamelen;
462	syscallarg(int) flags;
463};
464
465struct sys___thrsleep_args {
466	syscallarg(const volatile void *) ident;
467	syscallarg(clockid_t) clock_id;
468	syscallarg(const struct timespec *) tp;
469	syscallarg(void *) lock;
470	syscallarg(const int *) abort;
471};
472
473struct sys_fsync_args {
474	syscallarg(int) fd;
475};
476
477struct sys_setpriority_args {
478	syscallarg(int) which;
479	syscallarg(id_t) who;
480	syscallarg(int) prio;
481};
482
483struct sys_socket_args {
484	syscallarg(int) domain;
485	syscallarg(int) type;
486	syscallarg(int) protocol;
487};
488
489struct sys_connect_args {
490	syscallarg(int) s;
491	syscallarg(const struct sockaddr *) name;
492	syscallarg(socklen_t) namelen;
493};
494
495struct sys_getdents_args {
496	syscallarg(int) fd;
497	syscallarg(void *) buf;
498	syscallarg(size_t) buflen;
499};
500
501struct sys_getpriority_args {
502	syscallarg(int) which;
503	syscallarg(id_t) who;
504};
505
506struct sys_pipe2_args {
507	syscallarg(int *) fdp;
508	syscallarg(int) flags;
509};
510
511struct sys_dup3_args {
512	syscallarg(int) from;
513	syscallarg(int) to;
514	syscallarg(int) flags;
515};
516
517struct sys_sigreturn_args {
518	syscallarg(struct sigcontext *) sigcntxp;
519};
520
521struct sys_bind_args {
522	syscallarg(int) s;
523	syscallarg(const struct sockaddr *) name;
524	syscallarg(socklen_t) namelen;
525};
526
527struct sys_setsockopt_args {
528	syscallarg(int) s;
529	syscallarg(int) level;
530	syscallarg(int) name;
531	syscallarg(const void *) val;
532	syscallarg(socklen_t) valsize;
533};
534
535struct sys_listen_args {
536	syscallarg(int) s;
537	syscallarg(int) backlog;
538};
539
540struct sys_chflagsat_args {
541	syscallarg(int) fd;
542	syscallarg(const char *) path;
543	syscallarg(u_int) flags;
544	syscallarg(int) atflags;
545};
546
547struct sys_tame_args {
548	syscallarg(int) flags;
549};
550
551struct sys_ppoll_args {
552	syscallarg(struct pollfd *) fds;
553	syscallarg(u_int) nfds;
554	syscallarg(const struct timespec *) ts;
555	syscallarg(const sigset_t *) mask;
556};
557
558struct sys_pselect_args {
559	syscallarg(int) nd;
560	syscallarg(fd_set *) in;
561	syscallarg(fd_set *) ou;
562	syscallarg(fd_set *) ex;
563	syscallarg(const struct timespec *) ts;
564	syscallarg(const sigset_t *) mask;
565};
566
567struct sys_sigsuspend_args {
568	syscallarg(int) mask;
569};
570
571struct sys_getsockopt_args {
572	syscallarg(int) s;
573	syscallarg(int) level;
574	syscallarg(int) name;
575	syscallarg(void *) val;
576	syscallarg(socklen_t *) avalsize;
577};
578
579struct sys_readv_args {
580	syscallarg(int) fd;
581	syscallarg(const struct iovec *) iovp;
582	syscallarg(int) iovcnt;
583};
584
585struct sys_writev_args {
586	syscallarg(int) fd;
587	syscallarg(const struct iovec *) iovp;
588	syscallarg(int) iovcnt;
589};
590
591struct sys_fchown_args {
592	syscallarg(int) fd;
593	syscallarg(uid_t) uid;
594	syscallarg(gid_t) gid;
595};
596
597struct sys_fchmod_args {
598	syscallarg(int) fd;
599	syscallarg(mode_t) mode;
600};
601
602struct sys_setreuid_args {
603	syscallarg(uid_t) ruid;
604	syscallarg(uid_t) euid;
605};
606
607struct sys_setregid_args {
608	syscallarg(gid_t) rgid;
609	syscallarg(gid_t) egid;
610};
611
612struct sys_rename_args {
613	syscallarg(const char *) from;
614	syscallarg(const char *) to;
615};
616
617struct sys_flock_args {
618	syscallarg(int) fd;
619	syscallarg(int) how;
620};
621
622struct sys_mkfifo_args {
623	syscallarg(const char *) path;
624	syscallarg(mode_t) mode;
625};
626
627struct sys_sendto_args {
628	syscallarg(int) s;
629	syscallarg(const void *) buf;
630	syscallarg(size_t) len;
631	syscallarg(int) flags;
632	syscallarg(const struct sockaddr *) to;
633	syscallarg(socklen_t) tolen;
634};
635
636struct sys_shutdown_args {
637	syscallarg(int) s;
638	syscallarg(int) how;
639};
640
641struct sys_socketpair_args {
642	syscallarg(int) domain;
643	syscallarg(int) type;
644	syscallarg(int) protocol;
645	syscallarg(int *) rsv;
646};
647
648struct sys_mkdir_args {
649	syscallarg(const char *) path;
650	syscallarg(mode_t) mode;
651};
652
653struct sys_rmdir_args {
654	syscallarg(const char *) path;
655};
656
657struct sys_adjtime_args {
658	syscallarg(const struct timeval *) delta;
659	syscallarg(struct timeval *) olddelta;
660};
661
662struct sys_quotactl_args {
663	syscallarg(const char *) path;
664	syscallarg(int) cmd;
665	syscallarg(int) uid;
666	syscallarg(char *) arg;
667};
668
669struct sys_nfssvc_args {
670	syscallarg(int) flag;
671	syscallarg(void *) argp;
672};
673
674struct sys_getfh_args {
675	syscallarg(const char *) fname;
676	syscallarg(fhandle_t *) fhp;
677};
678
679struct sys_sysarch_args {
680	syscallarg(int) op;
681	syscallarg(void *) parms;
682};
683
684struct sys_pread_args {
685	syscallarg(int) fd;
686	syscallarg(void *) buf;
687	syscallarg(size_t) nbyte;
688	syscallarg(int) pad;
689	syscallarg(off_t) offset;
690};
691
692struct sys_pwrite_args {
693	syscallarg(int) fd;
694	syscallarg(const void *) buf;
695	syscallarg(size_t) nbyte;
696	syscallarg(int) pad;
697	syscallarg(off_t) offset;
698};
699
700struct sys_setgid_args {
701	syscallarg(gid_t) gid;
702};
703
704struct sys_setegid_args {
705	syscallarg(gid_t) egid;
706};
707
708struct sys_seteuid_args {
709	syscallarg(uid_t) euid;
710};
711
712struct sys_pathconf_args {
713	syscallarg(const char *) path;
714	syscallarg(int) name;
715};
716
717struct sys_fpathconf_args {
718	syscallarg(int) fd;
719	syscallarg(int) name;
720};
721
722struct sys_swapctl_args {
723	syscallarg(int) cmd;
724	syscallarg(const void *) arg;
725	syscallarg(int) misc;
726};
727
728struct sys_getrlimit_args {
729	syscallarg(int) which;
730	syscallarg(struct rlimit *) rlp;
731};
732
733struct sys_setrlimit_args {
734	syscallarg(int) which;
735	syscallarg(const struct rlimit *) rlp;
736};
737
738struct sys_mmap_args {
739	syscallarg(void *) addr;
740	syscallarg(size_t) len;
741	syscallarg(int) prot;
742	syscallarg(int) flags;
743	syscallarg(int) fd;
744	syscallarg(long) pad;
745	syscallarg(off_t) pos;
746};
747
748struct sys_lseek_args {
749	syscallarg(int) fd;
750	syscallarg(int) pad;
751	syscallarg(off_t) offset;
752	syscallarg(int) whence;
753};
754
755struct sys_truncate_args {
756	syscallarg(const char *) path;
757	syscallarg(int) pad;
758	syscallarg(off_t) length;
759};
760
761struct sys_ftruncate_args {
762	syscallarg(int) fd;
763	syscallarg(int) pad;
764	syscallarg(off_t) length;
765};
766
767struct sys___sysctl_args {
768	syscallarg(const int *) name;
769	syscallarg(u_int) namelen;
770	syscallarg(void *) old;
771	syscallarg(size_t *) oldlenp;
772	syscallarg(void *) new;
773	syscallarg(size_t) newlen;
774};
775
776struct sys_mlock_args {
777	syscallarg(const void *) addr;
778	syscallarg(size_t) len;
779};
780
781struct sys_munlock_args {
782	syscallarg(const void *) addr;
783	syscallarg(size_t) len;
784};
785
786struct sys_getpgid_args {
787	syscallarg(pid_t) pid;
788};
789
790struct sys_utrace_args {
791	syscallarg(const char *) label;
792	syscallarg(const void *) addr;
793	syscallarg(size_t) len;
794};
795
796struct sys_semget_args {
797	syscallarg(key_t) key;
798	syscallarg(int) nsems;
799	syscallarg(int) semflg;
800};
801
802struct sys_msgget_args {
803	syscallarg(key_t) key;
804	syscallarg(int) msgflg;
805};
806
807struct sys_msgsnd_args {
808	syscallarg(int) msqid;
809	syscallarg(const void *) msgp;
810	syscallarg(size_t) msgsz;
811	syscallarg(int) msgflg;
812};
813
814struct sys_msgrcv_args {
815	syscallarg(int) msqid;
816	syscallarg(void *) msgp;
817	syscallarg(size_t) msgsz;
818	syscallarg(long) msgtyp;
819	syscallarg(int) msgflg;
820};
821
822struct sys_shmat_args {
823	syscallarg(int) shmid;
824	syscallarg(const void *) shmaddr;
825	syscallarg(int) shmflg;
826};
827
828struct sys_shmdt_args {
829	syscallarg(const void *) shmaddr;
830};
831
832struct sys_minherit_args {
833	syscallarg(void *) addr;
834	syscallarg(size_t) len;
835	syscallarg(int) inherit;
836};
837
838struct sys_poll_args {
839	syscallarg(struct pollfd *) fds;
840	syscallarg(u_int) nfds;
841	syscallarg(int) timeout;
842};
843
844struct sys_lchown_args {
845	syscallarg(const char *) path;
846	syscallarg(uid_t) uid;
847	syscallarg(gid_t) gid;
848};
849
850struct sys_getsid_args {
851	syscallarg(pid_t) pid;
852};
853
854struct sys_msync_args {
855	syscallarg(void *) addr;
856	syscallarg(size_t) len;
857	syscallarg(int) flags;
858};
859
860struct sys_pipe_args {
861	syscallarg(int *) fdp;
862};
863
864struct sys_fhopen_args {
865	syscallarg(const fhandle_t *) fhp;
866	syscallarg(int) flags;
867};
868
869struct sys_preadv_args {
870	syscallarg(int) fd;
871	syscallarg(const struct iovec *) iovp;
872	syscallarg(int) iovcnt;
873	syscallarg(int) pad;
874	syscallarg(off_t) offset;
875};
876
877struct sys_pwritev_args {
878	syscallarg(int) fd;
879	syscallarg(const struct iovec *) iovp;
880	syscallarg(int) iovcnt;
881	syscallarg(int) pad;
882	syscallarg(off_t) offset;
883};
884
885struct sys_mlockall_args {
886	syscallarg(int) flags;
887};
888
889struct sys_getresuid_args {
890	syscallarg(uid_t *) ruid;
891	syscallarg(uid_t *) euid;
892	syscallarg(uid_t *) suid;
893};
894
895struct sys_setresuid_args {
896	syscallarg(uid_t) ruid;
897	syscallarg(uid_t) euid;
898	syscallarg(uid_t) suid;
899};
900
901struct sys_getresgid_args {
902	syscallarg(gid_t *) rgid;
903	syscallarg(gid_t *) egid;
904	syscallarg(gid_t *) sgid;
905};
906
907struct sys_setresgid_args {
908	syscallarg(gid_t) rgid;
909	syscallarg(gid_t) egid;
910	syscallarg(gid_t) sgid;
911};
912
913struct sys_mquery_args {
914	syscallarg(void *) addr;
915	syscallarg(size_t) len;
916	syscallarg(int) prot;
917	syscallarg(int) flags;
918	syscallarg(int) fd;
919	syscallarg(long) pad;
920	syscallarg(off_t) pos;
921};
922
923struct sys_closefrom_args {
924	syscallarg(int) fd;
925};
926
927struct sys_sigaltstack_args {
928	syscallarg(const struct sigaltstack *) nss;
929	syscallarg(struct sigaltstack *) oss;
930};
931
932struct sys_shmget_args {
933	syscallarg(key_t) key;
934	syscallarg(size_t) size;
935	syscallarg(int) shmflg;
936};
937
938struct sys_semop_args {
939	syscallarg(int) semid;
940	syscallarg(struct sembuf *) sops;
941	syscallarg(size_t) nsops;
942};
943
944struct sys_fhstat_args {
945	syscallarg(const fhandle_t *) fhp;
946	syscallarg(struct stat *) sb;
947};
948
949struct sys___semctl_args {
950	syscallarg(int) semid;
951	syscallarg(int) semnum;
952	syscallarg(int) cmd;
953	syscallarg(union semun *) arg;
954};
955
956struct sys_shmctl_args {
957	syscallarg(int) shmid;
958	syscallarg(int) cmd;
959	syscallarg(struct shmid_ds *) buf;
960};
961
962struct sys_msgctl_args {
963	syscallarg(int) msqid;
964	syscallarg(int) cmd;
965	syscallarg(struct msqid_ds *) buf;
966};
967
968struct sys___thrwakeup_args {
969	syscallarg(const volatile void *) ident;
970	syscallarg(int) n;
971};
972
973struct sys___threxit_args {
974	syscallarg(pid_t *) notdead;
975};
976
977struct sys___thrsigdivert_args {
978	syscallarg(sigset_t) sigmask;
979	syscallarg(siginfo_t *) info;
980	syscallarg(const struct timespec *) timeout;
981};
982
983struct sys___getcwd_args {
984	syscallarg(char *) buf;
985	syscallarg(size_t) len;
986};
987
988struct sys_adjfreq_args {
989	syscallarg(const int64_t *) freq;
990	syscallarg(int64_t *) oldfreq;
991};
992
993struct sys_setrtable_args {
994	syscallarg(int) rtableid;
995};
996
997struct sys_faccessat_args {
998	syscallarg(int) fd;
999	syscallarg(const char *) path;
1000	syscallarg(int) amode;
1001	syscallarg(int) flag;
1002};
1003
1004struct sys_fchmodat_args {
1005	syscallarg(int) fd;
1006	syscallarg(const char *) path;
1007	syscallarg(mode_t) mode;
1008	syscallarg(int) flag;
1009};
1010
1011struct sys_fchownat_args {
1012	syscallarg(int) fd;
1013	syscallarg(const char *) path;
1014	syscallarg(uid_t) uid;
1015	syscallarg(gid_t) gid;
1016	syscallarg(int) flag;
1017};
1018
1019struct sys_linkat_args {
1020	syscallarg(int) fd1;
1021	syscallarg(const char *) path1;
1022	syscallarg(int) fd2;
1023	syscallarg(const char *) path2;
1024	syscallarg(int) flag;
1025};
1026
1027struct sys_mkdirat_args {
1028	syscallarg(int) fd;
1029	syscallarg(const char *) path;
1030	syscallarg(mode_t) mode;
1031};
1032
1033struct sys_mkfifoat_args {
1034	syscallarg(int) fd;
1035	syscallarg(const char *) path;
1036	syscallarg(mode_t) mode;
1037};
1038
1039struct sys_mknodat_args {
1040	syscallarg(int) fd;
1041	syscallarg(const char *) path;
1042	syscallarg(mode_t) mode;
1043	syscallarg(dev_t) dev;
1044};
1045
1046struct sys_openat_args {
1047	syscallarg(int) fd;
1048	syscallarg(const char *) path;
1049	syscallarg(int) flags;
1050	syscallarg(mode_t) mode;
1051};
1052
1053struct sys_readlinkat_args {
1054	syscallarg(int) fd;
1055	syscallarg(const char *) path;
1056	syscallarg(char *) buf;
1057	syscallarg(size_t) count;
1058};
1059
1060struct sys_renameat_args {
1061	syscallarg(int) fromfd;
1062	syscallarg(const char *) from;
1063	syscallarg(int) tofd;
1064	syscallarg(const char *) to;
1065};
1066
1067struct sys_symlinkat_args {
1068	syscallarg(const char *) path;
1069	syscallarg(int) fd;
1070	syscallarg(const char *) link;
1071};
1072
1073struct sys_unlinkat_args {
1074	syscallarg(int) fd;
1075	syscallarg(const char *) path;
1076	syscallarg(int) flag;
1077};
1078
1079struct sys___set_tcb_args {
1080	syscallarg(void *) tcb;
1081};
1082
1083/*
1084 * System call prototypes.
1085 */
1086
1087int	sys_exit(struct proc *, void *, register_t *);
1088int	sys_fork(struct proc *, void *, register_t *);
1089int	sys_read(struct proc *, void *, register_t *);
1090int	sys_write(struct proc *, void *, register_t *);
1091int	sys_open(struct proc *, void *, register_t *);
1092int	sys_close(struct proc *, void *, register_t *);
1093int	sys_getentropy(struct proc *, void *, register_t *);
1094int	sys___tfork(struct proc *, void *, register_t *);
1095int	sys_link(struct proc *, void *, register_t *);
1096int	sys_unlink(struct proc *, void *, register_t *);
1097int	sys_wait4(struct proc *, void *, register_t *);
1098int	sys_chdir(struct proc *, void *, register_t *);
1099int	sys_fchdir(struct proc *, void *, register_t *);
1100int	sys_mknod(struct proc *, void *, register_t *);
1101int	sys_chmod(struct proc *, void *, register_t *);
1102int	sys_chown(struct proc *, void *, register_t *);
1103int	sys_obreak(struct proc *, void *, register_t *);
1104int	sys_getdtablecount(struct proc *, void *, register_t *);
1105int	sys_getrusage(struct proc *, void *, register_t *);
1106int	sys_getpid(struct proc *, void *, register_t *);
1107int	sys_mount(struct proc *, void *, register_t *);
1108int	sys_unmount(struct proc *, void *, register_t *);
1109int	sys_setuid(struct proc *, void *, register_t *);
1110int	sys_getuid(struct proc *, void *, register_t *);
1111int	sys_geteuid(struct proc *, void *, register_t *);
1112#ifdef PTRACE
1113int	sys_ptrace(struct proc *, void *, register_t *);
1114#else
1115#endif
1116int	sys_recvmsg(struct proc *, void *, register_t *);
1117int	sys_sendmsg(struct proc *, void *, register_t *);
1118int	sys_recvfrom(struct proc *, void *, register_t *);
1119int	sys_accept(struct proc *, void *, register_t *);
1120int	sys_getpeername(struct proc *, void *, register_t *);
1121int	sys_getsockname(struct proc *, void *, register_t *);
1122int	sys_access(struct proc *, void *, register_t *);
1123int	sys_chflags(struct proc *, void *, register_t *);
1124int	sys_fchflags(struct proc *, void *, register_t *);
1125int	sys_sync(struct proc *, void *, register_t *);
1126int	sys_kill(struct proc *, void *, register_t *);
1127int	sys_stat(struct proc *, void *, register_t *);
1128int	sys_getppid(struct proc *, void *, register_t *);
1129int	sys_lstat(struct proc *, void *, register_t *);
1130int	sys_dup(struct proc *, void *, register_t *);
1131int	sys_fstatat(struct proc *, void *, register_t *);
1132int	sys_getegid(struct proc *, void *, register_t *);
1133int	sys_profil(struct proc *, void *, register_t *);
1134#ifdef KTRACE
1135int	sys_ktrace(struct proc *, void *, register_t *);
1136#else
1137#endif
1138int	sys_sigaction(struct proc *, void *, register_t *);
1139int	sys_getgid(struct proc *, void *, register_t *);
1140int	sys_sigprocmask(struct proc *, void *, register_t *);
1141int	sys_getlogin(struct proc *, void *, register_t *);
1142int	sys_setlogin(struct proc *, void *, register_t *);
1143#ifdef ACCOUNTING
1144int	sys_acct(struct proc *, void *, register_t *);
1145#else
1146#endif
1147int	sys_sigpending(struct proc *, void *, register_t *);
1148int	sys_fstat(struct proc *, void *, register_t *);
1149int	sys_ioctl(struct proc *, void *, register_t *);
1150int	sys_reboot(struct proc *, void *, register_t *);
1151int	sys_revoke(struct proc *, void *, register_t *);
1152int	sys_symlink(struct proc *, void *, register_t *);
1153int	sys_readlink(struct proc *, void *, register_t *);
1154int	sys_execve(struct proc *, void *, register_t *);
1155int	sys_umask(struct proc *, void *, register_t *);
1156int	sys_chroot(struct proc *, void *, register_t *);
1157int	sys_getfsstat(struct proc *, void *, register_t *);
1158int	sys_statfs(struct proc *, void *, register_t *);
1159int	sys_fstatfs(struct proc *, void *, register_t *);
1160int	sys_fhstatfs(struct proc *, void *, register_t *);
1161int	sys_vfork(struct proc *, void *, register_t *);
1162int	sys_gettimeofday(struct proc *, void *, register_t *);
1163int	sys_settimeofday(struct proc *, void *, register_t *);
1164int	sys_setitimer(struct proc *, void *, register_t *);
1165int	sys_getitimer(struct proc *, void *, register_t *);
1166int	sys_select(struct proc *, void *, register_t *);
1167int	sys_kevent(struct proc *, void *, register_t *);
1168int	sys_munmap(struct proc *, void *, register_t *);
1169int	sys_mprotect(struct proc *, void *, register_t *);
1170int	sys_madvise(struct proc *, void *, register_t *);
1171int	sys_utimes(struct proc *, void *, register_t *);
1172int	sys_futimes(struct proc *, void *, register_t *);
1173int	sys_mincore(struct proc *, void *, register_t *);
1174int	sys_getgroups(struct proc *, void *, register_t *);
1175int	sys_setgroups(struct proc *, void *, register_t *);
1176int	sys_getpgrp(struct proc *, void *, register_t *);
1177int	sys_setpgid(struct proc *, void *, register_t *);
1178int	sys_sendsyslog(struct proc *, void *, register_t *);
1179int	sys_utimensat(struct proc *, void *, register_t *);
1180int	sys_futimens(struct proc *, void *, register_t *);
1181int	sys_kbind(struct proc *, void *, register_t *);
1182int	sys_clock_gettime(struct proc *, void *, register_t *);
1183int	sys_clock_settime(struct proc *, void *, register_t *);
1184int	sys_clock_getres(struct proc *, void *, register_t *);
1185int	sys_dup2(struct proc *, void *, register_t *);
1186int	sys_nanosleep(struct proc *, void *, register_t *);
1187int	sys_fcntl(struct proc *, void *, register_t *);
1188int	sys_accept4(struct proc *, void *, register_t *);
1189int	sys___thrsleep(struct proc *, void *, register_t *);
1190int	sys_fsync(struct proc *, void *, register_t *);
1191int	sys_setpriority(struct proc *, void *, register_t *);
1192int	sys_socket(struct proc *, void *, register_t *);
1193int	sys_connect(struct proc *, void *, register_t *);
1194int	sys_getdents(struct proc *, void *, register_t *);
1195int	sys_getpriority(struct proc *, void *, register_t *);
1196int	sys_pipe2(struct proc *, void *, register_t *);
1197int	sys_dup3(struct proc *, void *, register_t *);
1198int	sys_sigreturn(struct proc *, void *, register_t *);
1199int	sys_bind(struct proc *, void *, register_t *);
1200int	sys_setsockopt(struct proc *, void *, register_t *);
1201int	sys_listen(struct proc *, void *, register_t *);
1202int	sys_chflagsat(struct proc *, void *, register_t *);
1203int	sys_tame(struct proc *, void *, register_t *);
1204int	sys_ppoll(struct proc *, void *, register_t *);
1205int	sys_pselect(struct proc *, void *, register_t *);
1206int	sys_sigsuspend(struct proc *, void *, register_t *);
1207int	sys_getsockopt(struct proc *, void *, register_t *);
1208int	sys_readv(struct proc *, void *, register_t *);
1209int	sys_writev(struct proc *, void *, register_t *);
1210int	sys_fchown(struct proc *, void *, register_t *);
1211int	sys_fchmod(struct proc *, void *, register_t *);
1212int	sys_setreuid(struct proc *, void *, register_t *);
1213int	sys_setregid(struct proc *, void *, register_t *);
1214int	sys_rename(struct proc *, void *, register_t *);
1215int	sys_flock(struct proc *, void *, register_t *);
1216int	sys_mkfifo(struct proc *, void *, register_t *);
1217int	sys_sendto(struct proc *, void *, register_t *);
1218int	sys_shutdown(struct proc *, void *, register_t *);
1219int	sys_socketpair(struct proc *, void *, register_t *);
1220int	sys_mkdir(struct proc *, void *, register_t *);
1221int	sys_rmdir(struct proc *, void *, register_t *);
1222int	sys_adjtime(struct proc *, void *, register_t *);
1223int	sys_setsid(struct proc *, void *, register_t *);
1224int	sys_quotactl(struct proc *, void *, register_t *);
1225#if defined(NFSCLIENT) || defined(NFSSERVER)
1226int	sys_nfssvc(struct proc *, void *, register_t *);
1227#else
1228#endif
1229int	sys_getfh(struct proc *, void *, register_t *);
1230int	sys_sysarch(struct proc *, void *, register_t *);
1231int	sys_pread(struct proc *, void *, register_t *);
1232int	sys_pwrite(struct proc *, void *, register_t *);
1233int	sys_setgid(struct proc *, void *, register_t *);
1234int	sys_setegid(struct proc *, void *, register_t *);
1235int	sys_seteuid(struct proc *, void *, register_t *);
1236int	sys_pathconf(struct proc *, void *, register_t *);
1237int	sys_fpathconf(struct proc *, void *, register_t *);
1238int	sys_swapctl(struct proc *, void *, register_t *);
1239int	sys_getrlimit(struct proc *, void *, register_t *);
1240int	sys_setrlimit(struct proc *, void *, register_t *);
1241int	sys_mmap(struct proc *, void *, register_t *);
1242int	sys_lseek(struct proc *, void *, register_t *);
1243int	sys_truncate(struct proc *, void *, register_t *);
1244int	sys_ftruncate(struct proc *, void *, register_t *);
1245int	sys___sysctl(struct proc *, void *, register_t *);
1246int	sys_mlock(struct proc *, void *, register_t *);
1247int	sys_munlock(struct proc *, void *, register_t *);
1248int	sys_getpgid(struct proc *, void *, register_t *);
1249int	sys_utrace(struct proc *, void *, register_t *);
1250#ifdef SYSVSEM
1251int	sys_semget(struct proc *, void *, register_t *);
1252#else
1253#endif
1254#ifdef SYSVMSG
1255int	sys_msgget(struct proc *, void *, register_t *);
1256int	sys_msgsnd(struct proc *, void *, register_t *);
1257int	sys_msgrcv(struct proc *, void *, register_t *);
1258#else
1259#endif
1260#ifdef SYSVSHM
1261int	sys_shmat(struct proc *, void *, register_t *);
1262int	sys_shmdt(struct proc *, void *, register_t *);
1263#else
1264#endif
1265int	sys_minherit(struct proc *, void *, register_t *);
1266int	sys_poll(struct proc *, void *, register_t *);
1267int	sys_issetugid(struct proc *, void *, register_t *);
1268int	sys_lchown(struct proc *, void *, register_t *);
1269int	sys_getsid(struct proc *, void *, register_t *);
1270int	sys_msync(struct proc *, void *, register_t *);
1271int	sys_pipe(struct proc *, void *, register_t *);
1272int	sys_fhopen(struct proc *, void *, register_t *);
1273int	sys_preadv(struct proc *, void *, register_t *);
1274int	sys_pwritev(struct proc *, void *, register_t *);
1275int	sys_kqueue(struct proc *, void *, register_t *);
1276int	sys_mlockall(struct proc *, void *, register_t *);
1277int	sys_munlockall(struct proc *, void *, register_t *);
1278int	sys_getresuid(struct proc *, void *, register_t *);
1279int	sys_setresuid(struct proc *, void *, register_t *);
1280int	sys_getresgid(struct proc *, void *, register_t *);
1281int	sys_setresgid(struct proc *, void *, register_t *);
1282int	sys_mquery(struct proc *, void *, register_t *);
1283int	sys_closefrom(struct proc *, void *, register_t *);
1284int	sys_sigaltstack(struct proc *, void *, register_t *);
1285#ifdef SYSVSHM
1286int	sys_shmget(struct proc *, void *, register_t *);
1287#else
1288#endif
1289#ifdef SYSVSEM
1290int	sys_semop(struct proc *, void *, register_t *);
1291#else
1292#endif
1293int	sys_fhstat(struct proc *, void *, register_t *);
1294#ifdef SYSVSEM
1295int	sys___semctl(struct proc *, void *, register_t *);
1296#else
1297#endif
1298#ifdef SYSVSHM
1299int	sys_shmctl(struct proc *, void *, register_t *);
1300#else
1301#endif
1302#ifdef SYSVMSG
1303int	sys_msgctl(struct proc *, void *, register_t *);
1304#else
1305#endif
1306int	sys_sched_yield(struct proc *, void *, register_t *);
1307int	sys_getthrid(struct proc *, void *, register_t *);
1308int	sys___thrwakeup(struct proc *, void *, register_t *);
1309int	sys___threxit(struct proc *, void *, register_t *);
1310int	sys___thrsigdivert(struct proc *, void *, register_t *);
1311int	sys___getcwd(struct proc *, void *, register_t *);
1312int	sys_adjfreq(struct proc *, void *, register_t *);
1313int	sys_setrtable(struct proc *, void *, register_t *);
1314int	sys_getrtable(struct proc *, void *, register_t *);
1315int	sys_faccessat(struct proc *, void *, register_t *);
1316int	sys_fchmodat(struct proc *, void *, register_t *);
1317int	sys_fchownat(struct proc *, void *, register_t *);
1318int	sys_linkat(struct proc *, void *, register_t *);
1319int	sys_mkdirat(struct proc *, void *, register_t *);
1320int	sys_mkfifoat(struct proc *, void *, register_t *);
1321int	sys_mknodat(struct proc *, void *, register_t *);
1322int	sys_openat(struct proc *, void *, register_t *);
1323int	sys_readlinkat(struct proc *, void *, register_t *);
1324int	sys_renameat(struct proc *, void *, register_t *);
1325int	sys_symlinkat(struct proc *, void *, register_t *);
1326int	sys_unlinkat(struct proc *, void *, register_t *);
1327int	sys___set_tcb(struct proc *, void *, register_t *);
1328int	sys___get_tcb(struct proc *, void *, register_t *);
1329