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