1/*	$OpenBSD: src/sys/sys/syscallargs.h,v 1.162 2014/10/09 03:36:05 tedu 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.148 2014/10/09 03:35:06 tedu 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_clock_gettime_args {
422	syscallarg(clockid_t) clock_id;
423	syscallarg(struct timespec *) tp;
424};
425
426struct sys_clock_settime_args {
427	syscallarg(clockid_t) clock_id;
428	syscallarg(const struct timespec *) tp;
429};
430
431struct sys_clock_getres_args {
432	syscallarg(clockid_t) clock_id;
433	syscallarg(struct timespec *) tp;
434};
435
436struct sys_dup2_args {
437	syscallarg(int) from;
438	syscallarg(int) to;
439};
440
441struct sys_nanosleep_args {
442	syscallarg(const struct timespec *) rqtp;
443	syscallarg(struct timespec *) rmtp;
444};
445
446struct sys_fcntl_args {
447	syscallarg(int) fd;
448	syscallarg(int) cmd;
449	syscallarg(void *) arg;
450};
451
452struct sys_accept4_args {
453	syscallarg(int) s;
454	syscallarg(struct sockaddr *) name;
455	syscallarg(socklen_t *) anamelen;
456	syscallarg(int) flags;
457};
458
459struct sys___thrsleep_args {
460	syscallarg(const volatile void *) ident;
461	syscallarg(clockid_t) clock_id;
462	syscallarg(const struct timespec *) tp;
463	syscallarg(void *) lock;
464	syscallarg(const int *) abort;
465};
466
467struct sys_fsync_args {
468	syscallarg(int) fd;
469};
470
471struct sys_setpriority_args {
472	syscallarg(int) which;
473	syscallarg(id_t) who;
474	syscallarg(int) prio;
475};
476
477struct sys_socket_args {
478	syscallarg(int) domain;
479	syscallarg(int) type;
480	syscallarg(int) protocol;
481};
482
483struct sys_connect_args {
484	syscallarg(int) s;
485	syscallarg(const struct sockaddr *) name;
486	syscallarg(socklen_t) namelen;
487};
488
489struct sys_getdents_args {
490	syscallarg(int) fd;
491	syscallarg(void *) buf;
492	syscallarg(size_t) buflen;
493};
494
495struct sys_getpriority_args {
496	syscallarg(int) which;
497	syscallarg(id_t) who;
498};
499
500struct sys_pipe2_args {
501	syscallarg(int *) fdp;
502	syscallarg(int) flags;
503};
504
505struct sys_dup3_args {
506	syscallarg(int) from;
507	syscallarg(int) to;
508	syscallarg(int) flags;
509};
510
511struct sys_sigreturn_args {
512	syscallarg(struct sigcontext *) sigcntxp;
513};
514
515struct sys_bind_args {
516	syscallarg(int) s;
517	syscallarg(const struct sockaddr *) name;
518	syscallarg(socklen_t) namelen;
519};
520
521struct sys_setsockopt_args {
522	syscallarg(int) s;
523	syscallarg(int) level;
524	syscallarg(int) name;
525	syscallarg(const void *) val;
526	syscallarg(socklen_t) valsize;
527};
528
529struct sys_listen_args {
530	syscallarg(int) s;
531	syscallarg(int) backlog;
532};
533
534struct sys_ppoll_args {
535	syscallarg(struct pollfd *) fds;
536	syscallarg(u_int) nfds;
537	syscallarg(const struct timespec *) ts;
538	syscallarg(const sigset_t *) mask;
539};
540
541struct sys_pselect_args {
542	syscallarg(int) nd;
543	syscallarg(fd_set *) in;
544	syscallarg(fd_set *) ou;
545	syscallarg(fd_set *) ex;
546	syscallarg(const struct timespec *) ts;
547	syscallarg(const sigset_t *) mask;
548};
549
550struct sys_sigsuspend_args {
551	syscallarg(int) mask;
552};
553
554struct sys_getsockopt_args {
555	syscallarg(int) s;
556	syscallarg(int) level;
557	syscallarg(int) name;
558	syscallarg(void *) val;
559	syscallarg(socklen_t *) avalsize;
560};
561
562struct sys_readv_args {
563	syscallarg(int) fd;
564	syscallarg(const struct iovec *) iovp;
565	syscallarg(int) iovcnt;
566};
567
568struct sys_writev_args {
569	syscallarg(int) fd;
570	syscallarg(const struct iovec *) iovp;
571	syscallarg(int) iovcnt;
572};
573
574struct sys_fchown_args {
575	syscallarg(int) fd;
576	syscallarg(uid_t) uid;
577	syscallarg(gid_t) gid;
578};
579
580struct sys_fchmod_args {
581	syscallarg(int) fd;
582	syscallarg(mode_t) mode;
583};
584
585struct sys_setreuid_args {
586	syscallarg(uid_t) ruid;
587	syscallarg(uid_t) euid;
588};
589
590struct sys_setregid_args {
591	syscallarg(gid_t) rgid;
592	syscallarg(gid_t) egid;
593};
594
595struct sys_rename_args {
596	syscallarg(const char *) from;
597	syscallarg(const char *) to;
598};
599
600struct sys_flock_args {
601	syscallarg(int) fd;
602	syscallarg(int) how;
603};
604
605struct sys_mkfifo_args {
606	syscallarg(const char *) path;
607	syscallarg(mode_t) mode;
608};
609
610struct sys_sendto_args {
611	syscallarg(int) s;
612	syscallarg(const void *) buf;
613	syscallarg(size_t) len;
614	syscallarg(int) flags;
615	syscallarg(const struct sockaddr *) to;
616	syscallarg(socklen_t) tolen;
617};
618
619struct sys_shutdown_args {
620	syscallarg(int) s;
621	syscallarg(int) how;
622};
623
624struct sys_socketpair_args {
625	syscallarg(int) domain;
626	syscallarg(int) type;
627	syscallarg(int) protocol;
628	syscallarg(int *) rsv;
629};
630
631struct sys_mkdir_args {
632	syscallarg(const char *) path;
633	syscallarg(mode_t) mode;
634};
635
636struct sys_rmdir_args {
637	syscallarg(const char *) path;
638};
639
640struct sys_adjtime_args {
641	syscallarg(const struct timeval *) delta;
642	syscallarg(struct timeval *) olddelta;
643};
644
645struct sys_quotactl_args {
646	syscallarg(const char *) path;
647	syscallarg(int) cmd;
648	syscallarg(int) uid;
649	syscallarg(char *) arg;
650};
651
652struct sys_nfssvc_args {
653	syscallarg(int) flag;
654	syscallarg(void *) argp;
655};
656
657struct sys_getfh_args {
658	syscallarg(const char *) fname;
659	syscallarg(fhandle_t *) fhp;
660};
661
662struct sys_sysarch_args {
663	syscallarg(int) op;
664	syscallarg(void *) parms;
665};
666
667struct sys_pread_args {
668	syscallarg(int) fd;
669	syscallarg(void *) buf;
670	syscallarg(size_t) nbyte;
671	syscallarg(int) pad;
672	syscallarg(off_t) offset;
673};
674
675struct sys_pwrite_args {
676	syscallarg(int) fd;
677	syscallarg(const void *) buf;
678	syscallarg(size_t) nbyte;
679	syscallarg(int) pad;
680	syscallarg(off_t) offset;
681};
682
683struct sys_setgid_args {
684	syscallarg(gid_t) gid;
685};
686
687struct sys_setegid_args {
688	syscallarg(gid_t) egid;
689};
690
691struct sys_seteuid_args {
692	syscallarg(uid_t) euid;
693};
694
695struct sys_pathconf_args {
696	syscallarg(const char *) path;
697	syscallarg(int) name;
698};
699
700struct sys_fpathconf_args {
701	syscallarg(int) fd;
702	syscallarg(int) name;
703};
704
705struct sys_swapctl_args {
706	syscallarg(int) cmd;
707	syscallarg(const void *) arg;
708	syscallarg(int) misc;
709};
710
711struct sys_getrlimit_args {
712	syscallarg(int) which;
713	syscallarg(struct rlimit *) rlp;
714};
715
716struct sys_setrlimit_args {
717	syscallarg(int) which;
718	syscallarg(const struct rlimit *) rlp;
719};
720
721struct sys_mmap_args {
722	syscallarg(void *) addr;
723	syscallarg(size_t) len;
724	syscallarg(int) prot;
725	syscallarg(int) flags;
726	syscallarg(int) fd;
727	syscallarg(long) pad;
728	syscallarg(off_t) pos;
729};
730
731struct sys_lseek_args {
732	syscallarg(int) fd;
733	syscallarg(int) pad;
734	syscallarg(off_t) offset;
735	syscallarg(int) whence;
736};
737
738struct sys_truncate_args {
739	syscallarg(const char *) path;
740	syscallarg(int) pad;
741	syscallarg(off_t) length;
742};
743
744struct sys_ftruncate_args {
745	syscallarg(int) fd;
746	syscallarg(int) pad;
747	syscallarg(off_t) length;
748};
749
750struct sys___sysctl_args {
751	syscallarg(const int *) name;
752	syscallarg(u_int) namelen;
753	syscallarg(void *) old;
754	syscallarg(size_t *) oldlenp;
755	syscallarg(void *) new;
756	syscallarg(size_t) newlen;
757};
758
759struct sys_mlock_args {
760	syscallarg(const void *) addr;
761	syscallarg(size_t) len;
762};
763
764struct sys_munlock_args {
765	syscallarg(const void *) addr;
766	syscallarg(size_t) len;
767};
768
769struct sys_getpgid_args {
770	syscallarg(pid_t) pid;
771};
772
773struct sys_utrace_args {
774	syscallarg(const char *) label;
775	syscallarg(const void *) addr;
776	syscallarg(size_t) len;
777};
778
779struct sys_semget_args {
780	syscallarg(key_t) key;
781	syscallarg(int) nsems;
782	syscallarg(int) semflg;
783};
784
785struct sys_msgget_args {
786	syscallarg(key_t) key;
787	syscallarg(int) msgflg;
788};
789
790struct sys_msgsnd_args {
791	syscallarg(int) msqid;
792	syscallarg(const void *) msgp;
793	syscallarg(size_t) msgsz;
794	syscallarg(int) msgflg;
795};
796
797struct sys_msgrcv_args {
798	syscallarg(int) msqid;
799	syscallarg(void *) msgp;
800	syscallarg(size_t) msgsz;
801	syscallarg(long) msgtyp;
802	syscallarg(int) msgflg;
803};
804
805struct sys_shmat_args {
806	syscallarg(int) shmid;
807	syscallarg(const void *) shmaddr;
808	syscallarg(int) shmflg;
809};
810
811struct sys_shmdt_args {
812	syscallarg(const void *) shmaddr;
813};
814
815struct sys_minherit_args {
816	syscallarg(void *) addr;
817	syscallarg(size_t) len;
818	syscallarg(int) inherit;
819};
820
821struct sys_poll_args {
822	syscallarg(struct pollfd *) fds;
823	syscallarg(u_int) nfds;
824	syscallarg(int) timeout;
825};
826
827struct sys_lchown_args {
828	syscallarg(const char *) path;
829	syscallarg(uid_t) uid;
830	syscallarg(gid_t) gid;
831};
832
833struct sys_getsid_args {
834	syscallarg(pid_t) pid;
835};
836
837struct sys_msync_args {
838	syscallarg(void *) addr;
839	syscallarg(size_t) len;
840	syscallarg(int) flags;
841};
842
843struct sys_pipe_args {
844	syscallarg(int *) fdp;
845};
846
847struct sys_fhopen_args {
848	syscallarg(const fhandle_t *) fhp;
849	syscallarg(int) flags;
850};
851
852struct sys_preadv_args {
853	syscallarg(int) fd;
854	syscallarg(const struct iovec *) iovp;
855	syscallarg(int) iovcnt;
856	syscallarg(int) pad;
857	syscallarg(off_t) offset;
858};
859
860struct sys_pwritev_args {
861	syscallarg(int) fd;
862	syscallarg(const struct iovec *) iovp;
863	syscallarg(int) iovcnt;
864	syscallarg(int) pad;
865	syscallarg(off_t) offset;
866};
867
868struct sys_mlockall_args {
869	syscallarg(int) flags;
870};
871
872struct sys_getresuid_args {
873	syscallarg(uid_t *) ruid;
874	syscallarg(uid_t *) euid;
875	syscallarg(uid_t *) suid;
876};
877
878struct sys_setresuid_args {
879	syscallarg(uid_t) ruid;
880	syscallarg(uid_t) euid;
881	syscallarg(uid_t) suid;
882};
883
884struct sys_getresgid_args {
885	syscallarg(gid_t *) rgid;
886	syscallarg(gid_t *) egid;
887	syscallarg(gid_t *) sgid;
888};
889
890struct sys_setresgid_args {
891	syscallarg(gid_t) rgid;
892	syscallarg(gid_t) egid;
893	syscallarg(gid_t) sgid;
894};
895
896struct sys_mquery_args {
897	syscallarg(void *) addr;
898	syscallarg(size_t) len;
899	syscallarg(int) prot;
900	syscallarg(int) flags;
901	syscallarg(int) fd;
902	syscallarg(long) pad;
903	syscallarg(off_t) pos;
904};
905
906struct sys_closefrom_args {
907	syscallarg(int) fd;
908};
909
910struct sys_sigaltstack_args {
911	syscallarg(const struct sigaltstack *) nss;
912	syscallarg(struct sigaltstack *) oss;
913};
914
915struct sys_shmget_args {
916	syscallarg(key_t) key;
917	syscallarg(size_t) size;
918	syscallarg(int) shmflg;
919};
920
921struct sys_semop_args {
922	syscallarg(int) semid;
923	syscallarg(struct sembuf *) sops;
924	syscallarg(size_t) nsops;
925};
926
927struct sys_fhstat_args {
928	syscallarg(const fhandle_t *) fhp;
929	syscallarg(struct stat *) sb;
930};
931
932struct sys___semctl_args {
933	syscallarg(int) semid;
934	syscallarg(int) semnum;
935	syscallarg(int) cmd;
936	syscallarg(union semun *) arg;
937};
938
939struct sys_shmctl_args {
940	syscallarg(int) shmid;
941	syscallarg(int) cmd;
942	syscallarg(struct shmid_ds *) buf;
943};
944
945struct sys_msgctl_args {
946	syscallarg(int) msqid;
947	syscallarg(int) cmd;
948	syscallarg(struct msqid_ds *) buf;
949};
950
951struct sys___thrwakeup_args {
952	syscallarg(const volatile void *) ident;
953	syscallarg(int) n;
954};
955
956struct sys___threxit_args {
957	syscallarg(pid_t *) notdead;
958};
959
960struct sys___thrsigdivert_args {
961	syscallarg(sigset_t) sigmask;
962	syscallarg(siginfo_t *) info;
963	syscallarg(const struct timespec *) timeout;
964};
965
966struct sys___getcwd_args {
967	syscallarg(char *) buf;
968	syscallarg(size_t) len;
969};
970
971struct sys_adjfreq_args {
972	syscallarg(const int64_t *) freq;
973	syscallarg(int64_t *) oldfreq;
974};
975
976struct sys_setrtable_args {
977	syscallarg(int) rtableid;
978};
979
980struct sys_faccessat_args {
981	syscallarg(int) fd;
982	syscallarg(const char *) path;
983	syscallarg(int) amode;
984	syscallarg(int) flag;
985};
986
987struct sys_fchmodat_args {
988	syscallarg(int) fd;
989	syscallarg(const char *) path;
990	syscallarg(mode_t) mode;
991	syscallarg(int) flag;
992};
993
994struct sys_fchownat_args {
995	syscallarg(int) fd;
996	syscallarg(const char *) path;
997	syscallarg(uid_t) uid;
998	syscallarg(gid_t) gid;
999	syscallarg(int) flag;
1000};
1001
1002struct sys_linkat_args {
1003	syscallarg(int) fd1;
1004	syscallarg(const char *) path1;
1005	syscallarg(int) fd2;
1006	syscallarg(const char *) path2;
1007	syscallarg(int) flag;
1008};
1009
1010struct sys_mkdirat_args {
1011	syscallarg(int) fd;
1012	syscallarg(const char *) path;
1013	syscallarg(mode_t) mode;
1014};
1015
1016struct sys_mkfifoat_args {
1017	syscallarg(int) fd;
1018	syscallarg(const char *) path;
1019	syscallarg(mode_t) mode;
1020};
1021
1022struct sys_mknodat_args {
1023	syscallarg(int) fd;
1024	syscallarg(const char *) path;
1025	syscallarg(mode_t) mode;
1026	syscallarg(dev_t) dev;
1027};
1028
1029struct sys_openat_args {
1030	syscallarg(int) fd;
1031	syscallarg(const char *) path;
1032	syscallarg(int) flags;
1033	syscallarg(mode_t) mode;
1034};
1035
1036struct sys_readlinkat_args {
1037	syscallarg(int) fd;
1038	syscallarg(const char *) path;
1039	syscallarg(char *) buf;
1040	syscallarg(size_t) count;
1041};
1042
1043struct sys_renameat_args {
1044	syscallarg(int) fromfd;
1045	syscallarg(const char *) from;
1046	syscallarg(int) tofd;
1047	syscallarg(const char *) to;
1048};
1049
1050struct sys_symlinkat_args {
1051	syscallarg(const char *) path;
1052	syscallarg(int) fd;
1053	syscallarg(const char *) link;
1054};
1055
1056struct sys_unlinkat_args {
1057	syscallarg(int) fd;
1058	syscallarg(const char *) path;
1059	syscallarg(int) flag;
1060};
1061
1062struct sys___set_tcb_args {
1063	syscallarg(void *) tcb;
1064};
1065
1066/*
1067 * System call prototypes.
1068 */
1069
1070int	sys_exit(struct proc *, void *, register_t *);
1071int	sys_fork(struct proc *, void *, register_t *);
1072int	sys_read(struct proc *, void *, register_t *);
1073int	sys_write(struct proc *, void *, register_t *);
1074int	sys_open(struct proc *, void *, register_t *);
1075int	sys_close(struct proc *, void *, register_t *);
1076int	sys_getentropy(struct proc *, void *, register_t *);
1077int	sys___tfork(struct proc *, void *, register_t *);
1078int	sys_link(struct proc *, void *, register_t *);
1079int	sys_unlink(struct proc *, void *, register_t *);
1080int	sys_wait4(struct proc *, void *, register_t *);
1081int	sys_chdir(struct proc *, void *, register_t *);
1082int	sys_fchdir(struct proc *, void *, register_t *);
1083int	sys_mknod(struct proc *, void *, register_t *);
1084int	sys_chmod(struct proc *, void *, register_t *);
1085int	sys_chown(struct proc *, void *, register_t *);
1086int	sys_obreak(struct proc *, void *, register_t *);
1087int	sys_getdtablecount(struct proc *, void *, register_t *);
1088int	sys_getrusage(struct proc *, void *, register_t *);
1089int	sys_getpid(struct proc *, void *, register_t *);
1090int	sys_mount(struct proc *, void *, register_t *);
1091int	sys_unmount(struct proc *, void *, register_t *);
1092int	sys_setuid(struct proc *, void *, register_t *);
1093int	sys_getuid(struct proc *, void *, register_t *);
1094int	sys_geteuid(struct proc *, void *, register_t *);
1095#ifdef PTRACE
1096int	sys_ptrace(struct proc *, void *, register_t *);
1097#else
1098#endif
1099int	sys_recvmsg(struct proc *, void *, register_t *);
1100int	sys_sendmsg(struct proc *, void *, register_t *);
1101int	sys_recvfrom(struct proc *, void *, register_t *);
1102int	sys_accept(struct proc *, void *, register_t *);
1103int	sys_getpeername(struct proc *, void *, register_t *);
1104int	sys_getsockname(struct proc *, void *, register_t *);
1105int	sys_access(struct proc *, void *, register_t *);
1106int	sys_chflags(struct proc *, void *, register_t *);
1107int	sys_fchflags(struct proc *, void *, register_t *);
1108int	sys_sync(struct proc *, void *, register_t *);
1109int	sys_kill(struct proc *, void *, register_t *);
1110int	sys_stat(struct proc *, void *, register_t *);
1111int	sys_getppid(struct proc *, void *, register_t *);
1112int	sys_lstat(struct proc *, void *, register_t *);
1113int	sys_dup(struct proc *, void *, register_t *);
1114int	sys_fstatat(struct proc *, void *, register_t *);
1115int	sys_getegid(struct proc *, void *, register_t *);
1116int	sys_profil(struct proc *, void *, register_t *);
1117#ifdef KTRACE
1118int	sys_ktrace(struct proc *, void *, register_t *);
1119#else
1120#endif
1121int	sys_sigaction(struct proc *, void *, register_t *);
1122int	sys_getgid(struct proc *, void *, register_t *);
1123int	sys_sigprocmask(struct proc *, void *, register_t *);
1124int	sys_getlogin(struct proc *, void *, register_t *);
1125int	sys_setlogin(struct proc *, void *, register_t *);
1126#ifdef ACCOUNTING
1127int	sys_acct(struct proc *, void *, register_t *);
1128#else
1129#endif
1130int	sys_sigpending(struct proc *, void *, register_t *);
1131int	sys_fstat(struct proc *, void *, register_t *);
1132int	sys_ioctl(struct proc *, void *, register_t *);
1133int	sys_reboot(struct proc *, void *, register_t *);
1134int	sys_revoke(struct proc *, void *, register_t *);
1135int	sys_symlink(struct proc *, void *, register_t *);
1136int	sys_readlink(struct proc *, void *, register_t *);
1137int	sys_execve(struct proc *, void *, register_t *);
1138int	sys_umask(struct proc *, void *, register_t *);
1139int	sys_chroot(struct proc *, void *, register_t *);
1140int	sys_getfsstat(struct proc *, void *, register_t *);
1141int	sys_statfs(struct proc *, void *, register_t *);
1142int	sys_fstatfs(struct proc *, void *, register_t *);
1143int	sys_fhstatfs(struct proc *, void *, register_t *);
1144int	sys_vfork(struct proc *, void *, register_t *);
1145int	sys_gettimeofday(struct proc *, void *, register_t *);
1146int	sys_settimeofday(struct proc *, void *, register_t *);
1147int	sys_setitimer(struct proc *, void *, register_t *);
1148int	sys_getitimer(struct proc *, void *, register_t *);
1149int	sys_select(struct proc *, void *, register_t *);
1150int	sys_kevent(struct proc *, void *, register_t *);
1151int	sys_munmap(struct proc *, void *, register_t *);
1152int	sys_mprotect(struct proc *, void *, register_t *);
1153int	sys_madvise(struct proc *, void *, register_t *);
1154int	sys_utimes(struct proc *, void *, register_t *);
1155int	sys_futimes(struct proc *, void *, register_t *);
1156int	sys_mincore(struct proc *, void *, register_t *);
1157int	sys_getgroups(struct proc *, void *, register_t *);
1158int	sys_setgroups(struct proc *, void *, register_t *);
1159int	sys_getpgrp(struct proc *, void *, register_t *);
1160int	sys_setpgid(struct proc *, void *, register_t *);
1161int	sys_sendsyslog(struct proc *, void *, register_t *);
1162int	sys_utimensat(struct proc *, void *, register_t *);
1163int	sys_futimens(struct proc *, void *, register_t *);
1164int	sys_clock_gettime(struct proc *, void *, register_t *);
1165int	sys_clock_settime(struct proc *, void *, register_t *);
1166int	sys_clock_getres(struct proc *, void *, register_t *);
1167int	sys_dup2(struct proc *, void *, register_t *);
1168int	sys_nanosleep(struct proc *, void *, register_t *);
1169int	sys_fcntl(struct proc *, void *, register_t *);
1170int	sys_accept4(struct proc *, void *, register_t *);
1171int	sys___thrsleep(struct proc *, void *, register_t *);
1172int	sys_fsync(struct proc *, void *, register_t *);
1173int	sys_setpriority(struct proc *, void *, register_t *);
1174int	sys_socket(struct proc *, void *, register_t *);
1175int	sys_connect(struct proc *, void *, register_t *);
1176int	sys_getdents(struct proc *, void *, register_t *);
1177int	sys_getpriority(struct proc *, void *, register_t *);
1178int	sys_pipe2(struct proc *, void *, register_t *);
1179int	sys_dup3(struct proc *, void *, register_t *);
1180int	sys_sigreturn(struct proc *, void *, register_t *);
1181int	sys_bind(struct proc *, void *, register_t *);
1182int	sys_setsockopt(struct proc *, void *, register_t *);
1183int	sys_listen(struct proc *, void *, register_t *);
1184int	sys_ppoll(struct proc *, void *, register_t *);
1185int	sys_pselect(struct proc *, void *, register_t *);
1186int	sys_sigsuspend(struct proc *, void *, register_t *);
1187int	sys_getsockopt(struct proc *, void *, register_t *);
1188int	sys_readv(struct proc *, void *, register_t *);
1189int	sys_writev(struct proc *, void *, register_t *);
1190int	sys_fchown(struct proc *, void *, register_t *);
1191int	sys_fchmod(struct proc *, void *, register_t *);
1192int	sys_setreuid(struct proc *, void *, register_t *);
1193int	sys_setregid(struct proc *, void *, register_t *);
1194int	sys_rename(struct proc *, void *, register_t *);
1195int	sys_flock(struct proc *, void *, register_t *);
1196int	sys_mkfifo(struct proc *, void *, register_t *);
1197int	sys_sendto(struct proc *, void *, register_t *);
1198int	sys_shutdown(struct proc *, void *, register_t *);
1199int	sys_socketpair(struct proc *, void *, register_t *);
1200int	sys_mkdir(struct proc *, void *, register_t *);
1201int	sys_rmdir(struct proc *, void *, register_t *);
1202int	sys_adjtime(struct proc *, void *, register_t *);
1203int	sys_setsid(struct proc *, void *, register_t *);
1204int	sys_quotactl(struct proc *, void *, register_t *);
1205#if defined(NFSCLIENT) || defined(NFSSERVER)
1206int	sys_nfssvc(struct proc *, void *, register_t *);
1207#else
1208#endif
1209int	sys_getfh(struct proc *, void *, register_t *);
1210int	sys_sysarch(struct proc *, void *, register_t *);
1211int	sys_pread(struct proc *, void *, register_t *);
1212int	sys_pwrite(struct proc *, void *, register_t *);
1213int	sys_setgid(struct proc *, void *, register_t *);
1214int	sys_setegid(struct proc *, void *, register_t *);
1215int	sys_seteuid(struct proc *, void *, register_t *);
1216int	sys_pathconf(struct proc *, void *, register_t *);
1217int	sys_fpathconf(struct proc *, void *, register_t *);
1218int	sys_swapctl(struct proc *, void *, register_t *);
1219int	sys_getrlimit(struct proc *, void *, register_t *);
1220int	sys_setrlimit(struct proc *, void *, register_t *);
1221int	sys_mmap(struct proc *, void *, register_t *);
1222int	sys_lseek(struct proc *, void *, register_t *);
1223int	sys_truncate(struct proc *, void *, register_t *);
1224int	sys_ftruncate(struct proc *, void *, register_t *);
1225int	sys___sysctl(struct proc *, void *, register_t *);
1226int	sys_mlock(struct proc *, void *, register_t *);
1227int	sys_munlock(struct proc *, void *, register_t *);
1228int	sys_getpgid(struct proc *, void *, register_t *);
1229int	sys_utrace(struct proc *, void *, register_t *);
1230#ifdef SYSVSEM
1231int	sys_semget(struct proc *, void *, register_t *);
1232#else
1233#endif
1234#ifdef SYSVMSG
1235int	sys_msgget(struct proc *, void *, register_t *);
1236int	sys_msgsnd(struct proc *, void *, register_t *);
1237int	sys_msgrcv(struct proc *, void *, register_t *);
1238#else
1239#endif
1240#ifdef SYSVSHM
1241int	sys_shmat(struct proc *, void *, register_t *);
1242int	sys_shmdt(struct proc *, void *, register_t *);
1243#else
1244#endif
1245int	sys_minherit(struct proc *, void *, register_t *);
1246int	sys_poll(struct proc *, void *, register_t *);
1247int	sys_issetugid(struct proc *, void *, register_t *);
1248int	sys_lchown(struct proc *, void *, register_t *);
1249int	sys_getsid(struct proc *, void *, register_t *);
1250int	sys_msync(struct proc *, void *, register_t *);
1251int	sys_pipe(struct proc *, void *, register_t *);
1252int	sys_fhopen(struct proc *, void *, register_t *);
1253int	sys_preadv(struct proc *, void *, register_t *);
1254int	sys_pwritev(struct proc *, void *, register_t *);
1255int	sys_kqueue(struct proc *, void *, register_t *);
1256int	sys_mlockall(struct proc *, void *, register_t *);
1257int	sys_munlockall(struct proc *, void *, register_t *);
1258int	sys_getresuid(struct proc *, void *, register_t *);
1259int	sys_setresuid(struct proc *, void *, register_t *);
1260int	sys_getresgid(struct proc *, void *, register_t *);
1261int	sys_setresgid(struct proc *, void *, register_t *);
1262int	sys_mquery(struct proc *, void *, register_t *);
1263int	sys_closefrom(struct proc *, void *, register_t *);
1264int	sys_sigaltstack(struct proc *, void *, register_t *);
1265#ifdef SYSVSHM
1266int	sys_shmget(struct proc *, void *, register_t *);
1267#else
1268#endif
1269#ifdef SYSVSEM
1270int	sys_semop(struct proc *, void *, register_t *);
1271#else
1272#endif
1273int	sys_fhstat(struct proc *, void *, register_t *);
1274#ifdef SYSVSEM
1275int	sys___semctl(struct proc *, void *, register_t *);
1276#else
1277#endif
1278#ifdef SYSVSHM
1279int	sys_shmctl(struct proc *, void *, register_t *);
1280#else
1281#endif
1282#ifdef SYSVMSG
1283int	sys_msgctl(struct proc *, void *, register_t *);
1284#else
1285#endif
1286int	sys_sched_yield(struct proc *, void *, register_t *);
1287int	sys_getthrid(struct proc *, void *, register_t *);
1288int	sys___thrwakeup(struct proc *, void *, register_t *);
1289int	sys___threxit(struct proc *, void *, register_t *);
1290int	sys___thrsigdivert(struct proc *, void *, register_t *);
1291int	sys___getcwd(struct proc *, void *, register_t *);
1292int	sys_adjfreq(struct proc *, void *, register_t *);
1293int	sys_setrtable(struct proc *, void *, register_t *);
1294int	sys_getrtable(struct proc *, void *, register_t *);
1295int	sys_faccessat(struct proc *, void *, register_t *);
1296int	sys_fchmodat(struct proc *, void *, register_t *);
1297int	sys_fchownat(struct proc *, void *, register_t *);
1298int	sys_linkat(struct proc *, void *, register_t *);
1299int	sys_mkdirat(struct proc *, void *, register_t *);
1300int	sys_mkfifoat(struct proc *, void *, register_t *);
1301int	sys_mknodat(struct proc *, void *, register_t *);
1302int	sys_openat(struct proc *, void *, register_t *);
1303int	sys_readlinkat(struct proc *, void *, register_t *);
1304int	sys_renameat(struct proc *, void *, register_t *);
1305int	sys_symlinkat(struct proc *, void *, register_t *);
1306int	sys_unlinkat(struct proc *, void *, register_t *);
1307int	sys___set_tcb(struct proc *, void *, register_t *);
1308int	sys___get_tcb(struct proc *, void *, register_t *);
1309