xref: /dragonfly/sys/sys/sysproto.h (revision 08e4ff68)
1 /*
2  * System call prototypes.
3  *
4  * DO NOT EDIT-- To regenerate this file, edit syscalls.master followed
5  *               by running make sysent in the same directory.
6  */
7 
8 #ifndef _SYS_SYSPROTO_H_
9 #define	_SYS_SYSPROTO_H_
10 
11 #include <sys/select.h>
12 #include <sys/signal.h>
13 #include <sys/acl.h>
14 #include <sys/cpumask.h>
15 #include <sys/mqueue.h>
16 #include <sys/msgport.h>
17 #include <sys/sysmsg.h>
18 #include <sys/procctl.h>
19 
20 #define	PAD_(t)	(sizeof(register_t) <= sizeof(t) ? \
21 		0 : sizeof(register_t) - sizeof(t))
22 
23 struct	exit_args {
24 	int	rval;	char rval_[PAD_(int)];
25 };
26 struct	fork_args {
27 	register_t dummy;
28 };
29 struct	read_args {
30 	int	fd;	char fd_[PAD_(int)];
31 	void *	buf;	char buf_[PAD_(void *)];
32 	size_t	nbyte;	char nbyte_[PAD_(size_t)];
33 };
34 struct	write_args {
35 	int	fd;	char fd_[PAD_(int)];
36 	const void *	buf;	char buf_[PAD_(const void *)];
37 	size_t	nbyte;	char nbyte_[PAD_(size_t)];
38 };
39 struct	open_args {
40 	char *	path;	char path_[PAD_(char *)];
41 	int	flags;	char flags_[PAD_(int)];
42 	int	mode;	char mode_[PAD_(int)];
43 };
44 struct	close_args {
45 	int	fd;	char fd_[PAD_(int)];
46 };
47 struct	wait_args {
48 	int	pid;	char pid_[PAD_(int)];
49 	int *	status;	char status_[PAD_(int *)];
50 	int	options;	char options_[PAD_(int)];
51 	struct rusage *	rusage;	char rusage_[PAD_(struct rusage *)];
52 };
53 struct	nosys_args {
54 	register_t dummy;
55 };
56 struct	link_args {
57 	char *	path;	char path_[PAD_(char *)];
58 	char *	link;	char link_[PAD_(char *)];
59 };
60 struct	unlink_args {
61 	char *	path;	char path_[PAD_(char *)];
62 };
63 struct	chdir_args {
64 	char *	path;	char path_[PAD_(char *)];
65 };
66 struct	fchdir_args {
67 	int	fd;	char fd_[PAD_(int)];
68 };
69 struct	mknod_args {
70 	char *	path;	char path_[PAD_(char *)];
71 	int	mode;	char mode_[PAD_(int)];
72 	int	dev;	char dev_[PAD_(int)];
73 };
74 struct	chmod_args {
75 	char *	path;	char path_[PAD_(char *)];
76 	int	mode;	char mode_[PAD_(int)];
77 };
78 struct	chown_args {
79 	char *	path;	char path_[PAD_(char *)];
80 	int	uid;	char uid_[PAD_(int)];
81 	int	gid;	char gid_[PAD_(int)];
82 };
83 struct	obreak_args {
84 	char *	nsize;	char nsize_[PAD_(char *)];
85 };
86 struct	getfsstat_args {
87 	struct statfs *	buf;	char buf_[PAD_(struct statfs *)];
88 	long	bufsize;	char bufsize_[PAD_(long)];
89 	int	flags;	char flags_[PAD_(int)];
90 };
91 struct	getpid_args {
92 	register_t dummy;
93 };
94 struct	mount_args {
95 	char *	type;	char type_[PAD_(char *)];
96 	char *	path;	char path_[PAD_(char *)];
97 	int	flags;	char flags_[PAD_(int)];
98 	caddr_t	data;	char data_[PAD_(caddr_t)];
99 };
100 struct	unmount_args {
101 	char *	path;	char path_[PAD_(char *)];
102 	int	flags;	char flags_[PAD_(int)];
103 };
104 struct	setuid_args {
105 	uid_t	uid;	char uid_[PAD_(uid_t)];
106 };
107 struct	getuid_args {
108 	register_t dummy;
109 };
110 struct	geteuid_args {
111 	register_t dummy;
112 };
113 struct	ptrace_args {
114 	int	req;	char req_[PAD_(int)];
115 	pid_t	pid;	char pid_[PAD_(pid_t)];
116 	caddr_t	addr;	char addr_[PAD_(caddr_t)];
117 	int	data;	char data_[PAD_(int)];
118 };
119 struct	recvmsg_args {
120 	int	s;	char s_[PAD_(int)];
121 	struct msghdr *	msg;	char msg_[PAD_(struct msghdr *)];
122 	int	flags;	char flags_[PAD_(int)];
123 };
124 struct	sendmsg_args {
125 	int	s;	char s_[PAD_(int)];
126 	caddr_t	msg;	char msg_[PAD_(caddr_t)];
127 	int	flags;	char flags_[PAD_(int)];
128 };
129 struct	recvfrom_args {
130 	int	s;	char s_[PAD_(int)];
131 	caddr_t	buf;	char buf_[PAD_(caddr_t)];
132 	size_t	len;	char len_[PAD_(size_t)];
133 	int	flags;	char flags_[PAD_(int)];
134 	caddr_t	from;	char from_[PAD_(caddr_t)];
135 	int *	fromlenaddr;	char fromlenaddr_[PAD_(int *)];
136 };
137 struct	accept_args {
138 	int	s;	char s_[PAD_(int)];
139 	caddr_t	name;	char name_[PAD_(caddr_t)];
140 	int *	anamelen;	char anamelen_[PAD_(int *)];
141 };
142 struct	getpeername_args {
143 	int	fdes;	char fdes_[PAD_(int)];
144 	caddr_t	asa;	char asa_[PAD_(caddr_t)];
145 	int *	alen;	char alen_[PAD_(int *)];
146 };
147 struct	getsockname_args {
148 	int	fdes;	char fdes_[PAD_(int)];
149 	caddr_t	asa;	char asa_[PAD_(caddr_t)];
150 	int *	alen;	char alen_[PAD_(int *)];
151 };
152 struct	access_args {
153 	char *	path;	char path_[PAD_(char *)];
154 	int	flags;	char flags_[PAD_(int)];
155 };
156 struct	chflags_args {
157 	const char *	path;	char path_[PAD_(const char *)];
158 	u_long	flags;	char flags_[PAD_(u_long)];
159 };
160 struct	fchflags_args {
161 	int	fd;	char fd_[PAD_(int)];
162 	u_long	flags;	char flags_[PAD_(u_long)];
163 };
164 struct	sync_args {
165 	register_t dummy;
166 };
167 struct	kill_args {
168 	int	pid;	char pid_[PAD_(int)];
169 	int	signum;	char signum_[PAD_(int)];
170 };
171 struct	getppid_args {
172 	register_t dummy;
173 };
174 struct	dup_args {
175 	int	fd;	char fd_[PAD_(int)];
176 };
177 struct	pipe_args {
178 	register_t dummy;
179 };
180 struct	getegid_args {
181 	register_t dummy;
182 };
183 struct	profil_args {
184 	caddr_t	samples;	char samples_[PAD_(caddr_t)];
185 	size_t	size;	char size_[PAD_(size_t)];
186 	u_long	offset;	char offset_[PAD_(u_long)];
187 	u_int	scale;	char scale_[PAD_(u_int)];
188 };
189 struct	ktrace_args {
190 	const char *	fname;	char fname_[PAD_(const char *)];
191 	int	ops;	char ops_[PAD_(int)];
192 	int	facs;	char facs_[PAD_(int)];
193 	int	pid;	char pid_[PAD_(int)];
194 };
195 struct	getgid_args {
196 	register_t dummy;
197 };
198 struct	getlogin_args {
199 	char *	namebuf;	char namebuf_[PAD_(char *)];
200 	size_t	namelen;	char namelen_[PAD_(size_t)];
201 };
202 struct	setlogin_args {
203 	char *	namebuf;	char namebuf_[PAD_(char *)];
204 };
205 struct	acct_args {
206 	char *	path;	char path_[PAD_(char *)];
207 };
208 struct	sigaltstack_args {
209 	stack_t *	ss;	char ss_[PAD_(stack_t *)];
210 	stack_t *	oss;	char oss_[PAD_(stack_t *)];
211 };
212 struct	ioctl_args {
213 	int	fd;	char fd_[PAD_(int)];
214 	u_long	com;	char com_[PAD_(u_long)];
215 	caddr_t	data;	char data_[PAD_(caddr_t)];
216 };
217 struct	reboot_args {
218 	int	opt;	char opt_[PAD_(int)];
219 };
220 struct	revoke_args {
221 	char *	path;	char path_[PAD_(char *)];
222 };
223 struct	symlink_args {
224 	char *	path;	char path_[PAD_(char *)];
225 	char *	link;	char link_[PAD_(char *)];
226 };
227 struct	readlink_args {
228 	char *	path;	char path_[PAD_(char *)];
229 	char *	buf;	char buf_[PAD_(char *)];
230 	int	count;	char count_[PAD_(int)];
231 };
232 struct	execve_args {
233 	char *	fname;	char fname_[PAD_(char *)];
234 	char **	argv;	char argv_[PAD_(char **)];
235 	char **	envv;	char envv_[PAD_(char **)];
236 };
237 struct	umask_args {
238 	int	newmask;	char newmask_[PAD_(int)];
239 };
240 struct	chroot_args {
241 	char *	path;	char path_[PAD_(char *)];
242 };
243 struct	msync_args {
244 	void *	addr;	char addr_[PAD_(void *)];
245 	size_t	len;	char len_[PAD_(size_t)];
246 	int	flags;	char flags_[PAD_(int)];
247 };
248 struct	vfork_args {
249 	register_t dummy;
250 };
251 struct	sbrk_args {
252 	size_t	incr;	char incr_[PAD_(size_t)];
253 };
254 struct	sstk_args {
255 	size_t	incr;	char incr_[PAD_(size_t)];
256 };
257 struct	munmap_args {
258 	void *	addr;	char addr_[PAD_(void *)];
259 	size_t	len;	char len_[PAD_(size_t)];
260 };
261 struct	mprotect_args {
262 	void *	addr;	char addr_[PAD_(void *)];
263 	size_t	len;	char len_[PAD_(size_t)];
264 	int	prot;	char prot_[PAD_(int)];
265 };
266 struct	madvise_args {
267 	void *	addr;	char addr_[PAD_(void *)];
268 	size_t	len;	char len_[PAD_(size_t)];
269 	int	behav;	char behav_[PAD_(int)];
270 };
271 struct	mincore_args {
272 	const void *	addr;	char addr_[PAD_(const void *)];
273 	size_t	len;	char len_[PAD_(size_t)];
274 	char *	vec;	char vec_[PAD_(char *)];
275 };
276 struct	getgroups_args {
277 	u_int	gidsetsize;	char gidsetsize_[PAD_(u_int)];
278 	gid_t *	gidset;	char gidset_[PAD_(gid_t *)];
279 };
280 struct	setgroups_args {
281 	u_int	gidsetsize;	char gidsetsize_[PAD_(u_int)];
282 	gid_t *	gidset;	char gidset_[PAD_(gid_t *)];
283 };
284 struct	getpgrp_args {
285 	register_t dummy;
286 };
287 struct	setpgid_args {
288 	int	pid;	char pid_[PAD_(int)];
289 	int	pgid;	char pgid_[PAD_(int)];
290 };
291 struct	setitimer_args {
292 	u_int	which;	char which_[PAD_(u_int)];
293 	struct itimerval *	itv;	char itv_[PAD_(struct itimerval *)];
294 	struct itimerval *	oitv;	char oitv_[PAD_(struct itimerval *)];
295 };
296 struct	swapon_args {
297 	char *	name;	char name_[PAD_(char *)];
298 };
299 struct	getitimer_args {
300 	u_int	which;	char which_[PAD_(u_int)];
301 	struct itimerval *	itv;	char itv_[PAD_(struct itimerval *)];
302 };
303 struct	getdtablesize_args {
304 	register_t dummy;
305 };
306 struct	dup2_args {
307 	int	from;	char from_[PAD_(int)];
308 	int	to;	char to_[PAD_(int)];
309 };
310 struct	fcntl_args {
311 	int	fd;	char fd_[PAD_(int)];
312 	int	cmd;	char cmd_[PAD_(int)];
313 	long	arg;	char arg_[PAD_(long)];
314 };
315 struct	select_args {
316 	int	nd;	char nd_[PAD_(int)];
317 	fd_set *	in;	char in_[PAD_(fd_set *)];
318 	fd_set *	ou;	char ou_[PAD_(fd_set *)];
319 	fd_set *	ex;	char ex_[PAD_(fd_set *)];
320 	struct timeval *	tv;	char tv_[PAD_(struct timeval *)];
321 };
322 struct	fsync_args {
323 	int	fd;	char fd_[PAD_(int)];
324 };
325 struct	setpriority_args {
326 	int	which;	char which_[PAD_(int)];
327 	int	who;	char who_[PAD_(int)];
328 	int	prio;	char prio_[PAD_(int)];
329 };
330 struct	socket_args {
331 	int	domain;	char domain_[PAD_(int)];
332 	int	type;	char type_[PAD_(int)];
333 	int	protocol;	char protocol_[PAD_(int)];
334 };
335 struct	connect_args {
336 	int	s;	char s_[PAD_(int)];
337 	caddr_t	name;	char name_[PAD_(caddr_t)];
338 	int	namelen;	char namelen_[PAD_(int)];
339 };
340 struct	getpriority_args {
341 	int	which;	char which_[PAD_(int)];
342 	int	who;	char who_[PAD_(int)];
343 };
344 struct	bind_args {
345 	int	s;	char s_[PAD_(int)];
346 	caddr_t	name;	char name_[PAD_(caddr_t)];
347 	int	namelen;	char namelen_[PAD_(int)];
348 };
349 struct	setsockopt_args {
350 	int	s;	char s_[PAD_(int)];
351 	int	level;	char level_[PAD_(int)];
352 	int	name;	char name_[PAD_(int)];
353 	caddr_t	val;	char val_[PAD_(caddr_t)];
354 	int	valsize;	char valsize_[PAD_(int)];
355 };
356 struct	listen_args {
357 	int	s;	char s_[PAD_(int)];
358 	int	backlog;	char backlog_[PAD_(int)];
359 };
360 struct	gettimeofday_args {
361 	struct timeval *	tp;	char tp_[PAD_(struct timeval *)];
362 	struct timezone *	tzp;	char tzp_[PAD_(struct timezone *)];
363 };
364 struct	getrusage_args {
365 	int	who;	char who_[PAD_(int)];
366 	struct rusage *	rusage;	char rusage_[PAD_(struct rusage *)];
367 };
368 struct	getsockopt_args {
369 	int	s;	char s_[PAD_(int)];
370 	int	level;	char level_[PAD_(int)];
371 	int	name;	char name_[PAD_(int)];
372 	caddr_t	val;	char val_[PAD_(caddr_t)];
373 	int *	avalsize;	char avalsize_[PAD_(int *)];
374 };
375 struct	readv_args {
376 	int	fd;	char fd_[PAD_(int)];
377 	struct iovec *	iovp;	char iovp_[PAD_(struct iovec *)];
378 	u_int	iovcnt;	char iovcnt_[PAD_(u_int)];
379 };
380 struct	writev_args {
381 	int	fd;	char fd_[PAD_(int)];
382 	struct iovec *	iovp;	char iovp_[PAD_(struct iovec *)];
383 	u_int	iovcnt;	char iovcnt_[PAD_(u_int)];
384 };
385 struct	settimeofday_args {
386 	struct timeval *	tv;	char tv_[PAD_(struct timeval *)];
387 	struct timezone *	tzp;	char tzp_[PAD_(struct timezone *)];
388 };
389 struct	fchown_args {
390 	int	fd;	char fd_[PAD_(int)];
391 	int	uid;	char uid_[PAD_(int)];
392 	int	gid;	char gid_[PAD_(int)];
393 };
394 struct	fchmod_args {
395 	int	fd;	char fd_[PAD_(int)];
396 	int	mode;	char mode_[PAD_(int)];
397 };
398 struct	setreuid_args {
399 	int	ruid;	char ruid_[PAD_(int)];
400 	int	euid;	char euid_[PAD_(int)];
401 };
402 struct	setregid_args {
403 	int	rgid;	char rgid_[PAD_(int)];
404 	int	egid;	char egid_[PAD_(int)];
405 };
406 struct	rename_args {
407 	char *	from;	char from_[PAD_(char *)];
408 	char *	to;	char to_[PAD_(char *)];
409 };
410 struct	flock_args {
411 	int	fd;	char fd_[PAD_(int)];
412 	int	how;	char how_[PAD_(int)];
413 };
414 struct	mkfifo_args {
415 	char *	path;	char path_[PAD_(char *)];
416 	int	mode;	char mode_[PAD_(int)];
417 };
418 struct	sendto_args {
419 	int	s;	char s_[PAD_(int)];
420 	caddr_t	buf;	char buf_[PAD_(caddr_t)];
421 	size_t	len;	char len_[PAD_(size_t)];
422 	int	flags;	char flags_[PAD_(int)];
423 	caddr_t	to;	char to_[PAD_(caddr_t)];
424 	int	tolen;	char tolen_[PAD_(int)];
425 };
426 struct	shutdown_args {
427 	int	s;	char s_[PAD_(int)];
428 	int	how;	char how_[PAD_(int)];
429 };
430 struct	socketpair_args {
431 	int	domain;	char domain_[PAD_(int)];
432 	int	type;	char type_[PAD_(int)];
433 	int	protocol;	char protocol_[PAD_(int)];
434 	int *	rsv;	char rsv_[PAD_(int *)];
435 };
436 struct	mkdir_args {
437 	char *	path;	char path_[PAD_(char *)];
438 	int	mode;	char mode_[PAD_(int)];
439 };
440 struct	rmdir_args {
441 	char *	path;	char path_[PAD_(char *)];
442 };
443 struct	utimes_args {
444 	char *	path;	char path_[PAD_(char *)];
445 	struct timeval *	tptr;	char tptr_[PAD_(struct timeval *)];
446 };
447 struct	adjtime_args {
448 	struct timeval *	delta;	char delta_[PAD_(struct timeval *)];
449 	struct timeval *	olddelta;	char olddelta_[PAD_(struct timeval *)];
450 };
451 struct	setsid_args {
452 	register_t dummy;
453 };
454 struct	quotactl_args {
455 	char *	path;	char path_[PAD_(char *)];
456 	int	cmd;	char cmd_[PAD_(int)];
457 	int	uid;	char uid_[PAD_(int)];
458 	caddr_t	arg;	char arg_[PAD_(caddr_t)];
459 };
460 struct	nfssvc_args {
461 	int	flag;	char flag_[PAD_(int)];
462 	caddr_t	argp;	char argp_[PAD_(caddr_t)];
463 };
464 struct	statfs_args {
465 	char *	path;	char path_[PAD_(char *)];
466 	struct statfs *	buf;	char buf_[PAD_(struct statfs *)];
467 };
468 struct	fstatfs_args {
469 	int	fd;	char fd_[PAD_(int)];
470 	struct statfs *	buf;	char buf_[PAD_(struct statfs *)];
471 };
472 struct	getfh_args {
473 	char *	fname;	char fname_[PAD_(char *)];
474 	struct fhandle *	fhp;	char fhp_[PAD_(struct fhandle *)];
475 };
476 struct	sysarch_args {
477 	int	op;	char op_[PAD_(int)];
478 	char *	parms;	char parms_[PAD_(char *)];
479 };
480 struct	rtprio_args {
481 	int	function;	char function_[PAD_(int)];
482 	pid_t	pid;	char pid_[PAD_(pid_t)];
483 	struct rtprio *	rtp;	char rtp_[PAD_(struct rtprio *)];
484 };
485 struct	extpread_args {
486 	int	fd;	char fd_[PAD_(int)];
487 	void *	buf;	char buf_[PAD_(void *)];
488 	size_t	nbyte;	char nbyte_[PAD_(size_t)];
489 	int	flags;	char flags_[PAD_(int)];
490 	off_t	offset;	char offset_[PAD_(off_t)];
491 };
492 struct	extpwrite_args {
493 	int	fd;	char fd_[PAD_(int)];
494 	const void *	buf;	char buf_[PAD_(const void *)];
495 	size_t	nbyte;	char nbyte_[PAD_(size_t)];
496 	int	flags;	char flags_[PAD_(int)];
497 	off_t	offset;	char offset_[PAD_(off_t)];
498 };
499 struct	ntp_adjtime_args {
500 	struct timex *	tp;	char tp_[PAD_(struct timex *)];
501 };
502 struct	setgid_args {
503 	gid_t	gid;	char gid_[PAD_(gid_t)];
504 };
505 struct	setegid_args {
506 	gid_t	egid;	char egid_[PAD_(gid_t)];
507 };
508 struct	seteuid_args {
509 	uid_t	euid;	char euid_[PAD_(uid_t)];
510 };
511 struct	pathconf_args {
512 	char *	path;	char path_[PAD_(char *)];
513 	int	name;	char name_[PAD_(int)];
514 };
515 struct	fpathconf_args {
516 	int	fd;	char fd_[PAD_(int)];
517 	int	name;	char name_[PAD_(int)];
518 };
519 struct	__getrlimit_args {
520 	u_int	which;	char which_[PAD_(u_int)];
521 	struct rlimit *	rlp;	char rlp_[PAD_(struct rlimit *)];
522 };
523 struct	__setrlimit_args {
524 	u_int	which;	char which_[PAD_(u_int)];
525 	struct rlimit *	rlp;	char rlp_[PAD_(struct rlimit *)];
526 };
527 struct	mmap_args {
528 	caddr_t	addr;	char addr_[PAD_(caddr_t)];
529 	size_t	len;	char len_[PAD_(size_t)];
530 	int	prot;	char prot_[PAD_(int)];
531 	int	flags;	char flags_[PAD_(int)];
532 	int	fd;	char fd_[PAD_(int)];
533 	int	pad;	char pad_[PAD_(int)];
534 	off_t	pos;	char pos_[PAD_(off_t)];
535 };
536 struct	lseek_args {
537 	int	fd;	char fd_[PAD_(int)];
538 	int	pad;	char pad_[PAD_(int)];
539 	off_t	offset;	char offset_[PAD_(off_t)];
540 	int	whence;	char whence_[PAD_(int)];
541 };
542 struct	truncate_args {
543 	char *	path;	char path_[PAD_(char *)];
544 	int	pad;	char pad_[PAD_(int)];
545 	off_t	length;	char length_[PAD_(off_t)];
546 };
547 struct	ftruncate_args {
548 	int	fd;	char fd_[PAD_(int)];
549 	int	pad;	char pad_[PAD_(int)];
550 	off_t	length;	char length_[PAD_(off_t)];
551 };
552 struct	sysctl_args {
553 	int *	name;	char name_[PAD_(int *)];
554 	u_int	namelen;	char namelen_[PAD_(u_int)];
555 	void *	old;	char old_[PAD_(void *)];
556 	size_t *	oldlenp;	char oldlenp_[PAD_(size_t *)];
557 	void *	new;	char new_[PAD_(void *)];
558 	size_t	newlen;	char newlen_[PAD_(size_t)];
559 };
560 struct	mlock_args {
561 	const void *	addr;	char addr_[PAD_(const void *)];
562 	size_t	len;	char len_[PAD_(size_t)];
563 };
564 struct	munlock_args {
565 	const void *	addr;	char addr_[PAD_(const void *)];
566 	size_t	len;	char len_[PAD_(size_t)];
567 };
568 struct	undelete_args {
569 	char *	path;	char path_[PAD_(char *)];
570 };
571 struct	futimes_args {
572 	int	fd;	char fd_[PAD_(int)];
573 	struct timeval *	tptr;	char tptr_[PAD_(struct timeval *)];
574 };
575 struct	getpgid_args {
576 	pid_t	pid;	char pid_[PAD_(pid_t)];
577 };
578 struct	poll_args {
579 	struct pollfd *	fds;	char fds_[PAD_(struct pollfd *)];
580 	u_int	nfds;	char nfds_[PAD_(u_int)];
581 	int	timeout;	char timeout_[PAD_(int)];
582 };
583 struct	__semctl_args {
584 	int	semid;	char semid_[PAD_(int)];
585 	int	semnum;	char semnum_[PAD_(int)];
586 	int	cmd;	char cmd_[PAD_(int)];
587 	union semun *	arg;	char arg_[PAD_(union semun *)];
588 };
589 struct	semget_args {
590 	key_t	key;	char key_[PAD_(key_t)];
591 	int	nsems;	char nsems_[PAD_(int)];
592 	int	semflg;	char semflg_[PAD_(int)];
593 };
594 struct	semop_args {
595 	int	semid;	char semid_[PAD_(int)];
596 	struct sembuf *	sops;	char sops_[PAD_(struct sembuf *)];
597 	u_int	nsops;	char nsops_[PAD_(u_int)];
598 };
599 struct	msgctl_args {
600 	int	msqid;	char msqid_[PAD_(int)];
601 	int	cmd;	char cmd_[PAD_(int)];
602 	struct msqid_ds *	buf;	char buf_[PAD_(struct msqid_ds *)];
603 };
604 struct	msgget_args {
605 	key_t	key;	char key_[PAD_(key_t)];
606 	int	msgflg;	char msgflg_[PAD_(int)];
607 };
608 struct	msgsnd_args {
609 	int	msqid;	char msqid_[PAD_(int)];
610 	const void *	msgp;	char msgp_[PAD_(const void *)];
611 	size_t	msgsz;	char msgsz_[PAD_(size_t)];
612 	int	msgflg;	char msgflg_[PAD_(int)];
613 };
614 struct	msgrcv_args {
615 	int	msqid;	char msqid_[PAD_(int)];
616 	void *	msgp;	char msgp_[PAD_(void *)];
617 	size_t	msgsz;	char msgsz_[PAD_(size_t)];
618 	long	msgtyp;	char msgtyp_[PAD_(long)];
619 	int	msgflg;	char msgflg_[PAD_(int)];
620 };
621 struct	shmat_args {
622 	int	shmid;	char shmid_[PAD_(int)];
623 	const void *	shmaddr;	char shmaddr_[PAD_(const void *)];
624 	int	shmflg;	char shmflg_[PAD_(int)];
625 };
626 struct	shmctl_args {
627 	int	shmid;	char shmid_[PAD_(int)];
628 	int	cmd;	char cmd_[PAD_(int)];
629 	struct shmid_ds *	buf;	char buf_[PAD_(struct shmid_ds *)];
630 };
631 struct	shmdt_args {
632 	const void *	shmaddr;	char shmaddr_[PAD_(const void *)];
633 };
634 struct	shmget_args {
635 	key_t	key;	char key_[PAD_(key_t)];
636 	size_t	size;	char size_[PAD_(size_t)];
637 	int	shmflg;	char shmflg_[PAD_(int)];
638 };
639 struct	clock_gettime_args {
640 	clockid_t	clock_id;	char clock_id_[PAD_(clockid_t)];
641 	struct timespec *	tp;	char tp_[PAD_(struct timespec *)];
642 };
643 struct	clock_settime_args {
644 	clockid_t	clock_id;	char clock_id_[PAD_(clockid_t)];
645 	const struct timespec *	tp;	char tp_[PAD_(const struct timespec *)];
646 };
647 struct	clock_getres_args {
648 	clockid_t	clock_id;	char clock_id_[PAD_(clockid_t)];
649 	struct timespec *	tp;	char tp_[PAD_(struct timespec *)];
650 };
651 struct	nanosleep_args {
652 	const struct timespec *	rqtp;	char rqtp_[PAD_(const struct timespec *)];
653 	struct timespec *	rmtp;	char rmtp_[PAD_(struct timespec *)];
654 };
655 struct	minherit_args {
656 	void *	addr;	char addr_[PAD_(void *)];
657 	size_t	len;	char len_[PAD_(size_t)];
658 	int	inherit;	char inherit_[PAD_(int)];
659 };
660 struct	rfork_args {
661 	int	flags;	char flags_[PAD_(int)];
662 };
663 struct	openbsd_poll_args {
664 	struct pollfd *	fds;	char fds_[PAD_(struct pollfd *)];
665 	u_int	nfds;	char nfds_[PAD_(u_int)];
666 	int	timeout;	char timeout_[PAD_(int)];
667 };
668 struct	issetugid_args {
669 	register_t dummy;
670 };
671 struct	lchown_args {
672 	char *	path;	char path_[PAD_(char *)];
673 	int	uid;	char uid_[PAD_(int)];
674 	int	gid;	char gid_[PAD_(int)];
675 };
676 struct	lchmod_args {
677 	char *	path;	char path_[PAD_(char *)];
678 	mode_t	mode;	char mode_[PAD_(mode_t)];
679 };
680 struct	lutimes_args {
681 	char *	path;	char path_[PAD_(char *)];
682 	struct timeval *	tptr;	char tptr_[PAD_(struct timeval *)];
683 };
684 struct	extpreadv_args {
685 	int	fd;	char fd_[PAD_(int)];
686 	const struct iovec *	iovp;	char iovp_[PAD_(const struct iovec *)];
687 	int	iovcnt;	char iovcnt_[PAD_(int)];
688 	int	flags;	char flags_[PAD_(int)];
689 	off_t	offset;	char offset_[PAD_(off_t)];
690 };
691 struct	extpwritev_args {
692 	int	fd;	char fd_[PAD_(int)];
693 	const struct iovec *	iovp;	char iovp_[PAD_(const struct iovec *)];
694 	int	iovcnt;	char iovcnt_[PAD_(int)];
695 	int	flags;	char flags_[PAD_(int)];
696 	off_t	offset;	char offset_[PAD_(off_t)];
697 };
698 struct	fhstatfs_args {
699 	const struct fhandle *	u_fhp;	char u_fhp_[PAD_(const struct fhandle *)];
700 	struct statfs *	buf;	char buf_[PAD_(struct statfs *)];
701 };
702 struct	fhopen_args {
703 	const struct fhandle *	u_fhp;	char u_fhp_[PAD_(const struct fhandle *)];
704 	int	flags;	char flags_[PAD_(int)];
705 };
706 struct	modnext_args {
707 	int	modid;	char modid_[PAD_(int)];
708 };
709 struct	modstat_args {
710 	int	modid;	char modid_[PAD_(int)];
711 	struct module_stat *	stat;	char stat_[PAD_(struct module_stat *)];
712 };
713 struct	modfnext_args {
714 	int	modid;	char modid_[PAD_(int)];
715 };
716 struct	modfind_args {
717 	const char *	name;	char name_[PAD_(const char *)];
718 };
719 struct	kldload_args {
720 	const char *	file;	char file_[PAD_(const char *)];
721 };
722 struct	kldunload_args {
723 	int	fileid;	char fileid_[PAD_(int)];
724 };
725 struct	kldfind_args {
726 	const char *	file;	char file_[PAD_(const char *)];
727 };
728 struct	kldnext_args {
729 	int	fileid;	char fileid_[PAD_(int)];
730 };
731 struct	kldstat_args {
732 	int	fileid;	char fileid_[PAD_(int)];
733 	struct kld_file_stat *	stat;	char stat_[PAD_(struct kld_file_stat *)];
734 };
735 struct	kldfirstmod_args {
736 	int	fileid;	char fileid_[PAD_(int)];
737 };
738 struct	getsid_args {
739 	pid_t	pid;	char pid_[PAD_(pid_t)];
740 };
741 struct	setresuid_args {
742 	uid_t	ruid;	char ruid_[PAD_(uid_t)];
743 	uid_t	euid;	char euid_[PAD_(uid_t)];
744 	uid_t	suid;	char suid_[PAD_(uid_t)];
745 };
746 struct	setresgid_args {
747 	gid_t	rgid;	char rgid_[PAD_(gid_t)];
748 	gid_t	egid;	char egid_[PAD_(gid_t)];
749 	gid_t	sgid;	char sgid_[PAD_(gid_t)];
750 };
751 struct	aio_return_args {
752 	struct aiocb *	aiocbp;	char aiocbp_[PAD_(struct aiocb *)];
753 };
754 struct	aio_suspend_args {
755 	struct aiocb *const *	aiocbp;	char aiocbp_[PAD_(struct aiocb *const *)];
756 	int	nent;	char nent_[PAD_(int)];
757 	const struct timespec *	timeout;	char timeout_[PAD_(const struct timespec *)];
758 };
759 struct	aio_cancel_args {
760 	int	fd;	char fd_[PAD_(int)];
761 	struct aiocb *	aiocbp;	char aiocbp_[PAD_(struct aiocb *)];
762 };
763 struct	aio_error_args {
764 	struct aiocb *	aiocbp;	char aiocbp_[PAD_(struct aiocb *)];
765 };
766 struct	aio_read_args {
767 	struct aiocb *	aiocbp;	char aiocbp_[PAD_(struct aiocb *)];
768 };
769 struct	aio_write_args {
770 	struct aiocb *	aiocbp;	char aiocbp_[PAD_(struct aiocb *)];
771 };
772 struct	lio_listio_args {
773 	int	mode;	char mode_[PAD_(int)];
774 	struct aiocb *const *	acb_list;	char acb_list_[PAD_(struct aiocb *const *)];
775 	int	nent;	char nent_[PAD_(int)];
776 	struct sigevent *	sig;	char sig_[PAD_(struct sigevent *)];
777 };
778 struct	yield_args {
779 	register_t dummy;
780 };
781 struct	mlockall_args {
782 	int	how;	char how_[PAD_(int)];
783 };
784 struct	munlockall_args {
785 	register_t dummy;
786 };
787 struct	__getcwd_args {
788 	u_char *	buf;	char buf_[PAD_(u_char *)];
789 	u_int	buflen;	char buflen_[PAD_(u_int)];
790 };
791 struct	sched_setparam_args {
792 	pid_t	pid;	char pid_[PAD_(pid_t)];
793 	const struct sched_param *	param;	char param_[PAD_(const struct sched_param *)];
794 };
795 struct	sched_getparam_args {
796 	pid_t	pid;	char pid_[PAD_(pid_t)];
797 	struct sched_param *	param;	char param_[PAD_(struct sched_param *)];
798 };
799 struct	sched_setscheduler_args {
800 	pid_t	pid;	char pid_[PAD_(pid_t)];
801 	int	policy;	char policy_[PAD_(int)];
802 	const struct sched_param *	param;	char param_[PAD_(const struct sched_param *)];
803 };
804 struct	sched_getscheduler_args {
805 	pid_t	pid;	char pid_[PAD_(pid_t)];
806 };
807 struct	sched_yield_args {
808 	register_t dummy;
809 };
810 struct	sched_get_priority_max_args {
811 	int	policy;	char policy_[PAD_(int)];
812 };
813 struct	sched_get_priority_min_args {
814 	int	policy;	char policy_[PAD_(int)];
815 };
816 struct	sched_rr_get_interval_args {
817 	pid_t	pid;	char pid_[PAD_(pid_t)];
818 	struct timespec *	interval;	char interval_[PAD_(struct timespec *)];
819 };
820 struct	utrace_args {
821 	const void *	addr;	char addr_[PAD_(const void *)];
822 	size_t	len;	char len_[PAD_(size_t)];
823 };
824 struct	kldsym_args {
825 	int	fileid;	char fileid_[PAD_(int)];
826 	int	cmd;	char cmd_[PAD_(int)];
827 	void *	data;	char data_[PAD_(void *)];
828 };
829 struct	jail_args {
830 	struct jail *	jail;	char jail_[PAD_(struct jail *)];
831 };
832 struct	sigprocmask_args {
833 	int	how;	char how_[PAD_(int)];
834 	const sigset_t *	set;	char set_[PAD_(const sigset_t *)];
835 	sigset_t *	oset;	char oset_[PAD_(sigset_t *)];
836 };
837 struct	sigsuspend_args {
838 	const sigset_t *	sigmask;	char sigmask_[PAD_(const sigset_t *)];
839 };
840 struct	sigaction_args {
841 	int	sig;	char sig_[PAD_(int)];
842 	const struct sigaction *	act;	char act_[PAD_(const struct sigaction *)];
843 	struct sigaction *	oact;	char oact_[PAD_(struct sigaction *)];
844 };
845 struct	sigpending_args {
846 	sigset_t *	set;	char set_[PAD_(sigset_t *)];
847 };
848 struct	sigreturn_args {
849 	ucontext_t *	sigcntxp;	char sigcntxp_[PAD_(ucontext_t *)];
850 };
851 struct	sigtimedwait_args {
852 	const sigset_t *	set;	char set_[PAD_(const sigset_t *)];
853 	siginfo_t *	info;	char info_[PAD_(siginfo_t *)];
854 	const struct timespec *	timeout;	char timeout_[PAD_(const struct timespec *)];
855 };
856 struct	sigwaitinfo_args {
857 	const sigset_t *	set;	char set_[PAD_(const sigset_t *)];
858 	siginfo_t *	info;	char info_[PAD_(siginfo_t *)];
859 };
860 struct	__acl_get_file_args {
861 	const char *	path;	char path_[PAD_(const char *)];
862 	acl_type_t	type;	char type_[PAD_(acl_type_t)];
863 	struct acl *	aclp;	char aclp_[PAD_(struct acl *)];
864 };
865 struct	__acl_set_file_args {
866 	const char *	path;	char path_[PAD_(const char *)];
867 	acl_type_t	type;	char type_[PAD_(acl_type_t)];
868 	struct acl *	aclp;	char aclp_[PAD_(struct acl *)];
869 };
870 struct	__acl_get_fd_args {
871 	int	filedes;	char filedes_[PAD_(int)];
872 	acl_type_t	type;	char type_[PAD_(acl_type_t)];
873 	struct acl *	aclp;	char aclp_[PAD_(struct acl *)];
874 };
875 struct	__acl_set_fd_args {
876 	int	filedes;	char filedes_[PAD_(int)];
877 	acl_type_t	type;	char type_[PAD_(acl_type_t)];
878 	struct acl *	aclp;	char aclp_[PAD_(struct acl *)];
879 };
880 struct	__acl_delete_file_args {
881 	const char *	path;	char path_[PAD_(const char *)];
882 	acl_type_t	type;	char type_[PAD_(acl_type_t)];
883 };
884 struct	__acl_delete_fd_args {
885 	int	filedes;	char filedes_[PAD_(int)];
886 	acl_type_t	type;	char type_[PAD_(acl_type_t)];
887 };
888 struct	__acl_aclcheck_file_args {
889 	const char *	path;	char path_[PAD_(const char *)];
890 	acl_type_t	type;	char type_[PAD_(acl_type_t)];
891 	struct acl *	aclp;	char aclp_[PAD_(struct acl *)];
892 };
893 struct	__acl_aclcheck_fd_args {
894 	int	filedes;	char filedes_[PAD_(int)];
895 	acl_type_t	type;	char type_[PAD_(acl_type_t)];
896 	struct acl *	aclp;	char aclp_[PAD_(struct acl *)];
897 };
898 struct	extattrctl_args {
899 	const char *	path;	char path_[PAD_(const char *)];
900 	int	cmd;	char cmd_[PAD_(int)];
901 	const char *	filename;	char filename_[PAD_(const char *)];
902 	int	attrnamespace;	char attrnamespace_[PAD_(int)];
903 	const char *	attrname;	char attrname_[PAD_(const char *)];
904 };
905 struct	extattr_set_file_args {
906 	const char *	path;	char path_[PAD_(const char *)];
907 	int	attrnamespace;	char attrnamespace_[PAD_(int)];
908 	const char *	attrname;	char attrname_[PAD_(const char *)];
909 	void *	data;	char data_[PAD_(void *)];
910 	size_t	nbytes;	char nbytes_[PAD_(size_t)];
911 };
912 struct	extattr_get_file_args {
913 	const char *	path;	char path_[PAD_(const char *)];
914 	int	attrnamespace;	char attrnamespace_[PAD_(int)];
915 	const char *	attrname;	char attrname_[PAD_(const char *)];
916 	void *	data;	char data_[PAD_(void *)];
917 	size_t	nbytes;	char nbytes_[PAD_(size_t)];
918 };
919 struct	extattr_delete_file_args {
920 	const char *	path;	char path_[PAD_(const char *)];
921 	int	attrnamespace;	char attrnamespace_[PAD_(int)];
922 	const char *	attrname;	char attrname_[PAD_(const char *)];
923 };
924 struct	aio_waitcomplete_args {
925 	struct aiocb **	aiocbp;	char aiocbp_[PAD_(struct aiocb **)];
926 	struct timespec *	timeout;	char timeout_[PAD_(struct timespec *)];
927 };
928 struct	getresuid_args {
929 	uid_t *	ruid;	char ruid_[PAD_(uid_t *)];
930 	uid_t *	euid;	char euid_[PAD_(uid_t *)];
931 	uid_t *	suid;	char suid_[PAD_(uid_t *)];
932 };
933 struct	getresgid_args {
934 	gid_t *	rgid;	char rgid_[PAD_(gid_t *)];
935 	gid_t *	egid;	char egid_[PAD_(gid_t *)];
936 	gid_t *	sgid;	char sgid_[PAD_(gid_t *)];
937 };
938 struct	kqueue_args {
939 	register_t dummy;
940 };
941 struct	kevent_args {
942 	int	fd;	char fd_[PAD_(int)];
943 	const struct kevent *	changelist;	char changelist_[PAD_(const struct kevent *)];
944 	int	nchanges;	char nchanges_[PAD_(int)];
945 	struct kevent *	eventlist;	char eventlist_[PAD_(struct kevent *)];
946 	int	nevents;	char nevents_[PAD_(int)];
947 	const struct timespec *	timeout;	char timeout_[PAD_(const struct timespec *)];
948 };
949 struct	kenv_args {
950 	int	what;	char what_[PAD_(int)];
951 	const char *	name;	char name_[PAD_(const char *)];
952 	char *	value;	char value_[PAD_(char *)];
953 	int	len;	char len_[PAD_(int)];
954 };
955 struct	lchflags_args {
956 	const char *	path;	char path_[PAD_(const char *)];
957 	u_long	flags;	char flags_[PAD_(u_long)];
958 };
959 struct	uuidgen_args {
960 	struct uuid *	store;	char store_[PAD_(struct uuid *)];
961 	int	count;	char count_[PAD_(int)];
962 };
963 struct	sendfile_args {
964 	int	fd;	char fd_[PAD_(int)];
965 	int	s;	char s_[PAD_(int)];
966 	off_t	offset;	char offset_[PAD_(off_t)];
967 	size_t	nbytes;	char nbytes_[PAD_(size_t)];
968 	struct sf_hdtr *	hdtr;	char hdtr_[PAD_(struct sf_hdtr *)];
969 	off_t *	sbytes;	char sbytes_[PAD_(off_t *)];
970 	int	flags;	char flags_[PAD_(int)];
971 };
972 struct	varsym_set_args {
973 	int	level;	char level_[PAD_(int)];
974 	const char *	name;	char name_[PAD_(const char *)];
975 	const char *	data;	char data_[PAD_(const char *)];
976 };
977 struct	varsym_get_args {
978 	int	mask;	char mask_[PAD_(int)];
979 	const char *	wild;	char wild_[PAD_(const char *)];
980 	char *	buf;	char buf_[PAD_(char *)];
981 	int	bufsize;	char bufsize_[PAD_(int)];
982 };
983 struct	varsym_list_args {
984 	int	level;	char level_[PAD_(int)];
985 	char *	buf;	char buf_[PAD_(char *)];
986 	int	maxsize;	char maxsize_[PAD_(int)];
987 	int *	marker;	char marker_[PAD_(int *)];
988 };
989 struct	exec_sys_register_args {
990 	void *	entry;	char entry_[PAD_(void *)];
991 };
992 struct	exec_sys_unregister_args {
993 	int	id;	char id_[PAD_(int)];
994 };
995 struct	sys_checkpoint_args {
996 	int	type;	char type_[PAD_(int)];
997 	int	fd;	char fd_[PAD_(int)];
998 	pid_t	pid;	char pid_[PAD_(pid_t)];
999 	int	retval;	char retval_[PAD_(int)];
1000 };
1001 struct	mountctl_args {
1002 	const char *	path;	char path_[PAD_(const char *)];
1003 	int	op;	char op_[PAD_(int)];
1004 	int	fd;	char fd_[PAD_(int)];
1005 	const void *	ctl;	char ctl_[PAD_(const void *)];
1006 	int	ctllen;	char ctllen_[PAD_(int)];
1007 	void *	buf;	char buf_[PAD_(void *)];
1008 	int	buflen;	char buflen_[PAD_(int)];
1009 };
1010 struct	umtx_sleep_args {
1011 	volatile const int *	ptr;	char ptr_[PAD_(volatile const int *)];
1012 	int	value;	char value_[PAD_(int)];
1013 	int	timeout;	char timeout_[PAD_(int)];
1014 };
1015 struct	umtx_wakeup_args {
1016 	volatile const int *	ptr;	char ptr_[PAD_(volatile const int *)];
1017 	int	count;	char count_[PAD_(int)];
1018 };
1019 struct	jail_attach_args {
1020 	int	jid;	char jid_[PAD_(int)];
1021 };
1022 struct	set_tls_area_args {
1023 	int	which;	char which_[PAD_(int)];
1024 	struct tls_info *	info;	char info_[PAD_(struct tls_info *)];
1025 	size_t	infosize;	char infosize_[PAD_(size_t)];
1026 };
1027 struct	get_tls_area_args {
1028 	int	which;	char which_[PAD_(int)];
1029 	struct tls_info *	info;	char info_[PAD_(struct tls_info *)];
1030 	size_t	infosize;	char infosize_[PAD_(size_t)];
1031 };
1032 struct	closefrom_args {
1033 	int	fd;	char fd_[PAD_(int)];
1034 };
1035 struct	stat_args {
1036 	const char *	path;	char path_[PAD_(const char *)];
1037 	struct stat *	ub;	char ub_[PAD_(struct stat *)];
1038 };
1039 struct	fstat_args {
1040 	int	fd;	char fd_[PAD_(int)];
1041 	struct stat *	sb;	char sb_[PAD_(struct stat *)];
1042 };
1043 struct	lstat_args {
1044 	const char *	path;	char path_[PAD_(const char *)];
1045 	struct stat *	ub;	char ub_[PAD_(struct stat *)];
1046 };
1047 struct	fhstat_args {
1048 	const struct fhandle *	u_fhp;	char u_fhp_[PAD_(const struct fhandle *)];
1049 	struct stat *	sb;	char sb_[PAD_(struct stat *)];
1050 };
1051 struct	getdirentries_args {
1052 	int	fd;	char fd_[PAD_(int)];
1053 	char *	buf;	char buf_[PAD_(char *)];
1054 	u_int	count;	char count_[PAD_(u_int)];
1055 	long *	basep;	char basep_[PAD_(long *)];
1056 };
1057 struct	getdents_args {
1058 	int	fd;	char fd_[PAD_(int)];
1059 	char *	buf;	char buf_[PAD_(char *)];
1060 	size_t	count;	char count_[PAD_(size_t)];
1061 };
1062 struct	usched_set_args {
1063 	pid_t	pid;	char pid_[PAD_(pid_t)];
1064 	int	cmd;	char cmd_[PAD_(int)];
1065 	void *	data;	char data_[PAD_(void *)];
1066 	int	bytes;	char bytes_[PAD_(int)];
1067 };
1068 struct	extaccept_args {
1069 	int	s;	char s_[PAD_(int)];
1070 	int	flags;	char flags_[PAD_(int)];
1071 	caddr_t	name;	char name_[PAD_(caddr_t)];
1072 	int *	anamelen;	char anamelen_[PAD_(int *)];
1073 };
1074 struct	extconnect_args {
1075 	int	s;	char s_[PAD_(int)];
1076 	int	flags;	char flags_[PAD_(int)];
1077 	caddr_t	name;	char name_[PAD_(caddr_t)];
1078 	int	namelen;	char namelen_[PAD_(int)];
1079 };
1080 struct	mcontrol_args {
1081 	void *	addr;	char addr_[PAD_(void *)];
1082 	size_t	len;	char len_[PAD_(size_t)];
1083 	int	behav;	char behav_[PAD_(int)];
1084 	off_t	value;	char value_[PAD_(off_t)];
1085 };
1086 struct	vmspace_create_args {
1087 	void *	id;	char id_[PAD_(void *)];
1088 	int	type;	char type_[PAD_(int)];
1089 	void *	data;	char data_[PAD_(void *)];
1090 };
1091 struct	vmspace_destroy_args {
1092 	void *	id;	char id_[PAD_(void *)];
1093 };
1094 struct	vmspace_ctl_args {
1095 	void *	id;	char id_[PAD_(void *)];
1096 	int	cmd;	char cmd_[PAD_(int)];
1097 	struct trapframe *	tframe;	char tframe_[PAD_(struct trapframe *)];
1098 	struct vextframe *	vframe;	char vframe_[PAD_(struct vextframe *)];
1099 };
1100 struct	vmspace_mmap_args {
1101 	void *	id;	char id_[PAD_(void *)];
1102 	void *	addr;	char addr_[PAD_(void *)];
1103 	size_t	len;	char len_[PAD_(size_t)];
1104 	int	prot;	char prot_[PAD_(int)];
1105 	int	flags;	char flags_[PAD_(int)];
1106 	int	fd;	char fd_[PAD_(int)];
1107 	off_t	offset;	char offset_[PAD_(off_t)];
1108 };
1109 struct	vmspace_munmap_args {
1110 	void *	id;	char id_[PAD_(void *)];
1111 	void *	addr;	char addr_[PAD_(void *)];
1112 	size_t	len;	char len_[PAD_(size_t)];
1113 };
1114 struct	vmspace_mcontrol_args {
1115 	void *	id;	char id_[PAD_(void *)];
1116 	void *	addr;	char addr_[PAD_(void *)];
1117 	size_t	len;	char len_[PAD_(size_t)];
1118 	int	behav;	char behav_[PAD_(int)];
1119 	off_t	value;	char value_[PAD_(off_t)];
1120 };
1121 struct	vmspace_pread_args {
1122 	void *	id;	char id_[PAD_(void *)];
1123 	void *	buf;	char buf_[PAD_(void *)];
1124 	size_t	nbyte;	char nbyte_[PAD_(size_t)];
1125 	int	flags;	char flags_[PAD_(int)];
1126 	off_t	offset;	char offset_[PAD_(off_t)];
1127 };
1128 struct	vmspace_pwrite_args {
1129 	void *	id;	char id_[PAD_(void *)];
1130 	const void *	buf;	char buf_[PAD_(const void *)];
1131 	size_t	nbyte;	char nbyte_[PAD_(size_t)];
1132 	int	flags;	char flags_[PAD_(int)];
1133 	off_t	offset;	char offset_[PAD_(off_t)];
1134 };
1135 struct	extexit_args {
1136 	int	how;	char how_[PAD_(int)];
1137 	int	status;	char status_[PAD_(int)];
1138 	void *	addr;	char addr_[PAD_(void *)];
1139 };
1140 struct	lwp_create_args {
1141 	struct lwp_params *	params;	char params_[PAD_(struct lwp_params *)];
1142 };
1143 struct	lwp_gettid_args {
1144 	register_t dummy;
1145 };
1146 struct	lwp_kill_args {
1147 	pid_t	pid;	char pid_[PAD_(pid_t)];
1148 	lwpid_t	tid;	char tid_[PAD_(lwpid_t)];
1149 	int	signum;	char signum_[PAD_(int)];
1150 };
1151 struct	lwp_rtprio_args {
1152 	int	function;	char function_[PAD_(int)];
1153 	pid_t	pid;	char pid_[PAD_(pid_t)];
1154 	lwpid_t	tid;	char tid_[PAD_(lwpid_t)];
1155 	struct rtprio *	rtp;	char rtp_[PAD_(struct rtprio *)];
1156 };
1157 struct	pselect_args {
1158 	int	nd;	char nd_[PAD_(int)];
1159 	fd_set *	in;	char in_[PAD_(fd_set *)];
1160 	fd_set *	ou;	char ou_[PAD_(fd_set *)];
1161 	fd_set *	ex;	char ex_[PAD_(fd_set *)];
1162 	const struct timespec *	ts;	char ts_[PAD_(const struct timespec *)];
1163 	const sigset_t *	sigmask;	char sigmask_[PAD_(const sigset_t *)];
1164 };
1165 struct	statvfs_args {
1166 	const char *	path;	char path_[PAD_(const char *)];
1167 	struct statvfs *	buf;	char buf_[PAD_(struct statvfs *)];
1168 };
1169 struct	fstatvfs_args {
1170 	int	fd;	char fd_[PAD_(int)];
1171 	struct statvfs *	buf;	char buf_[PAD_(struct statvfs *)];
1172 };
1173 struct	fhstatvfs_args {
1174 	const struct fhandle *	u_fhp;	char u_fhp_[PAD_(const struct fhandle *)];
1175 	struct statvfs *	buf;	char buf_[PAD_(struct statvfs *)];
1176 };
1177 struct	getvfsstat_args {
1178 	struct statfs *	buf;	char buf_[PAD_(struct statfs *)];
1179 	struct statvfs *	vbuf;	char vbuf_[PAD_(struct statvfs *)];
1180 	long	vbufsize;	char vbufsize_[PAD_(long)];
1181 	int	flags;	char flags_[PAD_(int)];
1182 };
1183 struct	openat_args {
1184 	int	fd;	char fd_[PAD_(int)];
1185 	char *	path;	char path_[PAD_(char *)];
1186 	int	flags;	char flags_[PAD_(int)];
1187 	int	mode;	char mode_[PAD_(int)];
1188 };
1189 struct	fstatat_args {
1190 	int	fd;	char fd_[PAD_(int)];
1191 	char *	path;	char path_[PAD_(char *)];
1192 	struct stat *	sb;	char sb_[PAD_(struct stat *)];
1193 	int	flags;	char flags_[PAD_(int)];
1194 };
1195 struct	fchmodat_args {
1196 	int	fd;	char fd_[PAD_(int)];
1197 	char *	path;	char path_[PAD_(char *)];
1198 	int	mode;	char mode_[PAD_(int)];
1199 	int	flags;	char flags_[PAD_(int)];
1200 };
1201 struct	fchownat_args {
1202 	int	fd;	char fd_[PAD_(int)];
1203 	char *	path;	char path_[PAD_(char *)];
1204 	int	uid;	char uid_[PAD_(int)];
1205 	int	gid;	char gid_[PAD_(int)];
1206 	int	flags;	char flags_[PAD_(int)];
1207 };
1208 struct	unlinkat_args {
1209 	int	fd;	char fd_[PAD_(int)];
1210 	char *	path;	char path_[PAD_(char *)];
1211 	int	flags;	char flags_[PAD_(int)];
1212 };
1213 struct	faccessat_args {
1214 	int	fd;	char fd_[PAD_(int)];
1215 	char *	path;	char path_[PAD_(char *)];
1216 	int	amode;	char amode_[PAD_(int)];
1217 	int	flags;	char flags_[PAD_(int)];
1218 };
1219 struct	mq_open_args {
1220 	const char *	name;	char name_[PAD_(const char *)];
1221 	int	oflag;	char oflag_[PAD_(int)];
1222 	mode_t	mode;	char mode_[PAD_(mode_t)];
1223 	struct mq_attr *	attr;	char attr_[PAD_(struct mq_attr *)];
1224 };
1225 struct	mq_close_args {
1226 	mqd_t	mqdes;	char mqdes_[PAD_(mqd_t)];
1227 };
1228 struct	mq_unlink_args {
1229 	const char *	name;	char name_[PAD_(const char *)];
1230 };
1231 struct	mq_getattr_args {
1232 	mqd_t	mqdes;	char mqdes_[PAD_(mqd_t)];
1233 	struct mq_attr *	mqstat;	char mqstat_[PAD_(struct mq_attr *)];
1234 };
1235 struct	mq_setattr_args {
1236 	mqd_t	mqdes;	char mqdes_[PAD_(mqd_t)];
1237 	const struct mq_attr *	mqstat;	char mqstat_[PAD_(const struct mq_attr *)];
1238 	struct mq_attr *	omqstat;	char omqstat_[PAD_(struct mq_attr *)];
1239 };
1240 struct	mq_notify_args {
1241 	mqd_t	mqdes;	char mqdes_[PAD_(mqd_t)];
1242 	const struct sigevent *	notification;	char notification_[PAD_(const struct sigevent *)];
1243 };
1244 struct	mq_send_args {
1245 	mqd_t	mqdes;	char mqdes_[PAD_(mqd_t)];
1246 	const char *	msg_ptr;	char msg_ptr_[PAD_(const char *)];
1247 	size_t	msg_len;	char msg_len_[PAD_(size_t)];
1248 	unsigned	msg_prio;	char msg_prio_[PAD_(unsigned)];
1249 };
1250 struct	mq_receive_args {
1251 	mqd_t	mqdes;	char mqdes_[PAD_(mqd_t)];
1252 	char *	msg_ptr;	char msg_ptr_[PAD_(char *)];
1253 	size_t	msg_len;	char msg_len_[PAD_(size_t)];
1254 	unsigned *	msg_prio;	char msg_prio_[PAD_(unsigned *)];
1255 };
1256 struct	mq_timedsend_args {
1257 	mqd_t	mqdes;	char mqdes_[PAD_(mqd_t)];
1258 	const char *	msg_ptr;	char msg_ptr_[PAD_(const char *)];
1259 	size_t	msg_len;	char msg_len_[PAD_(size_t)];
1260 	unsigned	msg_prio;	char msg_prio_[PAD_(unsigned)];
1261 	const struct timespec *	abs_timeout;	char abs_timeout_[PAD_(const struct timespec *)];
1262 };
1263 struct	mq_timedreceive_args {
1264 	mqd_t	mqdes;	char mqdes_[PAD_(mqd_t)];
1265 	char *	msg_ptr;	char msg_ptr_[PAD_(char *)];
1266 	size_t	msg_len;	char msg_len_[PAD_(size_t)];
1267 	unsigned *	msg_prio;	char msg_prio_[PAD_(unsigned *)];
1268 	const struct timespec *	abs_timeout;	char abs_timeout_[PAD_(const struct timespec *)];
1269 };
1270 struct	ioprio_set_args {
1271 	int	which;	char which_[PAD_(int)];
1272 	int	who;	char who_[PAD_(int)];
1273 	int	prio;	char prio_[PAD_(int)];
1274 };
1275 struct	ioprio_get_args {
1276 	int	which;	char which_[PAD_(int)];
1277 	int	who;	char who_[PAD_(int)];
1278 };
1279 struct	chroot_kernel_args {
1280 	char *	path;	char path_[PAD_(char *)];
1281 };
1282 struct	renameat_args {
1283 	int	oldfd;	char oldfd_[PAD_(int)];
1284 	char *	old;	char old_[PAD_(char *)];
1285 	int	newfd;	char newfd_[PAD_(int)];
1286 	char *	new;	char new_[PAD_(char *)];
1287 };
1288 struct	mkdirat_args {
1289 	int	fd;	char fd_[PAD_(int)];
1290 	char *	path;	char path_[PAD_(char *)];
1291 	mode_t	mode;	char mode_[PAD_(mode_t)];
1292 };
1293 struct	mkfifoat_args {
1294 	int	fd;	char fd_[PAD_(int)];
1295 	char *	path;	char path_[PAD_(char *)];
1296 	mode_t	mode;	char mode_[PAD_(mode_t)];
1297 };
1298 struct	mknodat_args {
1299 	int	fd;	char fd_[PAD_(int)];
1300 	char *	path;	char path_[PAD_(char *)];
1301 	mode_t	mode;	char mode_[PAD_(mode_t)];
1302 	dev_t	dev;	char dev_[PAD_(dev_t)];
1303 };
1304 struct	readlinkat_args {
1305 	int	fd;	char fd_[PAD_(int)];
1306 	char *	path;	char path_[PAD_(char *)];
1307 	char *	buf;	char buf_[PAD_(char *)];
1308 	size_t	bufsize;	char bufsize_[PAD_(size_t)];
1309 };
1310 struct	symlinkat_args {
1311 	char *	path1;	char path1_[PAD_(char *)];
1312 	int	fd;	char fd_[PAD_(int)];
1313 	char *	path2;	char path2_[PAD_(char *)];
1314 };
1315 struct	swapoff_args {
1316 	char *	name;	char name_[PAD_(char *)];
1317 };
1318 struct	vquotactl_args {
1319 	const char *	path;	char path_[PAD_(const char *)];
1320 	struct plistref *	pref;	char pref_[PAD_(struct plistref *)];
1321 };
1322 struct	linkat_args {
1323 	int	fd1;	char fd1_[PAD_(int)];
1324 	char *	path1;	char path1_[PAD_(char *)];
1325 	int	fd2;	char fd2_[PAD_(int)];
1326 	char *	path2;	char path2_[PAD_(char *)];
1327 	int	flags;	char flags_[PAD_(int)];
1328 };
1329 struct	eaccess_args {
1330 	char *	path;	char path_[PAD_(char *)];
1331 	int	flags;	char flags_[PAD_(int)];
1332 };
1333 struct	lpathconf_args {
1334 	char *	path;	char path_[PAD_(char *)];
1335 	int	name;	char name_[PAD_(int)];
1336 };
1337 struct	vmm_guest_ctl_args {
1338 	int	op;	char op_[PAD_(int)];
1339 	struct vmm_guest_options *	options;	char options_[PAD_(struct vmm_guest_options *)];
1340 };
1341 struct	vmm_guest_sync_addr_args {
1342 	long *	dstaddr;	char dstaddr_[PAD_(long *)];
1343 	long *	srcaddr;	char srcaddr_[PAD_(long *)];
1344 };
1345 struct	procctl_args {
1346 	idtype_t	idtype;	char idtype_[PAD_(idtype_t)];
1347 	id_t	id;	char id_[PAD_(id_t)];
1348 	int	cmd;	char cmd_[PAD_(int)];
1349 	void *	data;	char data_[PAD_(void *)];
1350 };
1351 struct	chflagsat_args {
1352 	int	fd;	char fd_[PAD_(int)];
1353 	const char *	path;	char path_[PAD_(const char *)];
1354 	u_long	flags;	char flags_[PAD_(u_long)];
1355 	int	atflags;	char atflags_[PAD_(int)];
1356 };
1357 struct	pipe2_args {
1358 	int *	fildes;	char fildes_[PAD_(int *)];
1359 	int	flags;	char flags_[PAD_(int)];
1360 };
1361 struct	utimensat_args {
1362 	int	fd;	char fd_[PAD_(int)];
1363 	const char *	path;	char path_[PAD_(const char *)];
1364 	const struct timespec *	ts;	char ts_[PAD_(const struct timespec *)];
1365 	int	flags;	char flags_[PAD_(int)];
1366 };
1367 struct	futimens_args {
1368 	int	fd;	char fd_[PAD_(int)];
1369 	const struct timespec *	ts;	char ts_[PAD_(const struct timespec *)];
1370 };
1371 struct	accept4_args {
1372 	int	s;	char s_[PAD_(int)];
1373 	caddr_t	name;	char name_[PAD_(caddr_t)];
1374 	int *	anamelen;	char anamelen_[PAD_(int *)];
1375 	int	flags;	char flags_[PAD_(int)];
1376 };
1377 struct	lwp_setname_args {
1378 	lwpid_t	tid;	char tid_[PAD_(lwpid_t)];
1379 	const char *	name;	char name_[PAD_(const char *)];
1380 };
1381 struct	ppoll_args {
1382 	struct pollfd *	fds;	char fds_[PAD_(struct pollfd *)];
1383 	u_int	nfds;	char nfds_[PAD_(u_int)];
1384 	const struct timespec *	ts;	char ts_[PAD_(const struct timespec *)];
1385 	const sigset_t *	sigmask;	char sigmask_[PAD_(const sigset_t *)];
1386 };
1387 struct	lwp_setaffinity_args {
1388 	pid_t	pid;	char pid_[PAD_(pid_t)];
1389 	lwpid_t	tid;	char tid_[PAD_(lwpid_t)];
1390 	const cpumask_t *	mask;	char mask_[PAD_(const cpumask_t *)];
1391 };
1392 struct	lwp_getaffinity_args {
1393 	pid_t	pid;	char pid_[PAD_(pid_t)];
1394 	lwpid_t	tid;	char tid_[PAD_(lwpid_t)];
1395 	cpumask_t *	mask;	char mask_[PAD_(cpumask_t *)];
1396 };
1397 struct	lwp_create2_args {
1398 	struct lwp_params *	params;	char params_[PAD_(struct lwp_params *)];
1399 	const cpumask_t *	mask;	char mask_[PAD_(const cpumask_t *)];
1400 };
1401 struct	getcpuclockid_args {
1402 	pid_t	pid;	char pid_[PAD_(pid_t)];
1403 	lwpid_t	lwp_id;	char lwp_id_[PAD_(lwpid_t)];
1404 	clockid_t *	clock_id;	char clock_id_[PAD_(clockid_t *)];
1405 };
1406 struct	wait6_args {
1407 	idtype_t	idtype;	char idtype_[PAD_(idtype_t)];
1408 	id_t	id;	char id_[PAD_(id_t)];
1409 	int *	status;	char status_[PAD_(int *)];
1410 	int	options;	char options_[PAD_(int)];
1411 	struct __wrusage *	wrusage;	char wrusage_[PAD_(struct __wrusage *)];
1412 	siginfo_t *	info;	char info_[PAD_(siginfo_t *)];
1413 };
1414 struct	lwp_getname_args {
1415 	lwpid_t	tid;	char tid_[PAD_(lwpid_t)];
1416 	char *	name;	char name_[PAD_(char *)];
1417 	size_t	len;	char len_[PAD_(size_t)];
1418 };
1419 struct	getrandom_args {
1420 	void *	buf;	char buf_[PAD_(void *)];
1421 	size_t	len;	char len_[PAD_(size_t)];
1422 	unsigned	flags;	char flags_[PAD_(unsigned)];
1423 };
1424 struct	__realpath_args {
1425 	const char *	path;	char path_[PAD_(const char *)];
1426 	char *	buf;	char buf_[PAD_(char *)];
1427 	size_t	len;	char len_[PAD_(size_t)];
1428 };
1429 
1430 #ifdef _KERNEL
1431 
1432 struct sysmsg;
1433 
1434 
1435 #endif /* _KERNEL */
1436 
1437 #ifdef _KERNEL
1438 
1439 struct sysmsg;
1440 
1441 int	sys_xsyscall (struct sysmsg *sysmsg, const struct nosys_args *);
1442 int	sys_exit (struct sysmsg *sysmsg, const struct exit_args *);
1443 int	sys_fork (struct sysmsg *sysmsg, const struct fork_args *);
1444 int	sys_read (struct sysmsg *sysmsg, const struct read_args *);
1445 int	sys_write (struct sysmsg *sysmsg, const struct write_args *);
1446 int	sys_open (struct sysmsg *sysmsg, const struct open_args *);
1447 int	sys_close (struct sysmsg *sysmsg, const struct close_args *);
1448 int	sys_wait4 (struct sysmsg *sysmsg, const struct wait_args *);
1449 int	sys_nosys (struct sysmsg *sysmsg, const struct nosys_args *);
1450 int	sys_link (struct sysmsg *sysmsg, const struct link_args *);
1451 int	sys_unlink (struct sysmsg *sysmsg, const struct unlink_args *);
1452 int	sys_chdir (struct sysmsg *sysmsg, const struct chdir_args *);
1453 int	sys_fchdir (struct sysmsg *sysmsg, const struct fchdir_args *);
1454 int	sys_mknod (struct sysmsg *sysmsg, const struct mknod_args *);
1455 int	sys_chmod (struct sysmsg *sysmsg, const struct chmod_args *);
1456 int	sys_chown (struct sysmsg *sysmsg, const struct chown_args *);
1457 int	sys_obreak (struct sysmsg *sysmsg, const struct obreak_args *);
1458 int	sys_getfsstat (struct sysmsg *sysmsg, const struct getfsstat_args *);
1459 int	sys_getpid (struct sysmsg *sysmsg, const struct getpid_args *);
1460 int	sys_mount (struct sysmsg *sysmsg, const struct mount_args *);
1461 int	sys_unmount (struct sysmsg *sysmsg, const struct unmount_args *);
1462 int	sys_setuid (struct sysmsg *sysmsg, const struct setuid_args *);
1463 int	sys_getuid (struct sysmsg *sysmsg, const struct getuid_args *);
1464 int	sys_geteuid (struct sysmsg *sysmsg, const struct geteuid_args *);
1465 int	sys_ptrace (struct sysmsg *sysmsg, const struct ptrace_args *);
1466 int	sys_recvmsg (struct sysmsg *sysmsg, const struct recvmsg_args *);
1467 int	sys_sendmsg (struct sysmsg *sysmsg, const struct sendmsg_args *);
1468 int	sys_recvfrom (struct sysmsg *sysmsg, const struct recvfrom_args *);
1469 int	sys_accept (struct sysmsg *sysmsg, const struct accept_args *);
1470 int	sys_getpeername (struct sysmsg *sysmsg, const struct getpeername_args *);
1471 int	sys_getsockname (struct sysmsg *sysmsg, const struct getsockname_args *);
1472 int	sys_access (struct sysmsg *sysmsg, const struct access_args *);
1473 int	sys_chflags (struct sysmsg *sysmsg, const struct chflags_args *);
1474 int	sys_fchflags (struct sysmsg *sysmsg, const struct fchflags_args *);
1475 int	sys_sync (struct sysmsg *sysmsg, const struct sync_args *);
1476 int	sys_kill (struct sysmsg *sysmsg, const struct kill_args *);
1477 int	sys_getppid (struct sysmsg *sysmsg, const struct getppid_args *);
1478 int	sys_dup (struct sysmsg *sysmsg, const struct dup_args *);
1479 int	sys_pipe (struct sysmsg *sysmsg, const struct pipe_args *);
1480 int	sys_getegid (struct sysmsg *sysmsg, const struct getegid_args *);
1481 int	sys_profil (struct sysmsg *sysmsg, const struct profil_args *);
1482 int	sys_ktrace (struct sysmsg *sysmsg, const struct ktrace_args *);
1483 int	sys_getgid (struct sysmsg *sysmsg, const struct getgid_args *);
1484 int	sys_getlogin (struct sysmsg *sysmsg, const struct getlogin_args *);
1485 int	sys_setlogin (struct sysmsg *sysmsg, const struct setlogin_args *);
1486 int	sys_acct (struct sysmsg *sysmsg, const struct acct_args *);
1487 int	sys_sigaltstack (struct sysmsg *sysmsg, const struct sigaltstack_args *);
1488 int	sys_ioctl (struct sysmsg *sysmsg, const struct ioctl_args *);
1489 int	sys_reboot (struct sysmsg *sysmsg, const struct reboot_args *);
1490 int	sys_revoke (struct sysmsg *sysmsg, const struct revoke_args *);
1491 int	sys_symlink (struct sysmsg *sysmsg, const struct symlink_args *);
1492 int	sys_readlink (struct sysmsg *sysmsg, const struct readlink_args *);
1493 int	sys_execve (struct sysmsg *sysmsg, const struct execve_args *);
1494 int	sys_umask (struct sysmsg *sysmsg, const struct umask_args *);
1495 int	sys_chroot (struct sysmsg *sysmsg, const struct chroot_args *);
1496 int	sys_msync (struct sysmsg *sysmsg, const struct msync_args *);
1497 int	sys_vfork (struct sysmsg *sysmsg, const struct vfork_args *);
1498 int	sys_sbrk (struct sysmsg *sysmsg, const struct sbrk_args *);
1499 int	sys_sstk (struct sysmsg *sysmsg, const struct sstk_args *);
1500 int	sys_munmap (struct sysmsg *sysmsg, const struct munmap_args *);
1501 int	sys_mprotect (struct sysmsg *sysmsg, const struct mprotect_args *);
1502 int	sys_madvise (struct sysmsg *sysmsg, const struct madvise_args *);
1503 int	sys_mincore (struct sysmsg *sysmsg, const struct mincore_args *);
1504 int	sys_getgroups (struct sysmsg *sysmsg, const struct getgroups_args *);
1505 int	sys_setgroups (struct sysmsg *sysmsg, const struct setgroups_args *);
1506 int	sys_getpgrp (struct sysmsg *sysmsg, const struct getpgrp_args *);
1507 int	sys_setpgid (struct sysmsg *sysmsg, const struct setpgid_args *);
1508 int	sys_setitimer (struct sysmsg *sysmsg, const struct setitimer_args *);
1509 int	sys_swapon (struct sysmsg *sysmsg, const struct swapon_args *);
1510 int	sys_getitimer (struct sysmsg *sysmsg, const struct getitimer_args *);
1511 int	sys_getdtablesize (struct sysmsg *sysmsg, const struct getdtablesize_args *);
1512 int	sys_dup2 (struct sysmsg *sysmsg, const struct dup2_args *);
1513 int	sys_fcntl (struct sysmsg *sysmsg, const struct fcntl_args *);
1514 int	sys_select (struct sysmsg *sysmsg, const struct select_args *);
1515 int	sys_fsync (struct sysmsg *sysmsg, const struct fsync_args *);
1516 int	sys_setpriority (struct sysmsg *sysmsg, const struct setpriority_args *);
1517 int	sys_socket (struct sysmsg *sysmsg, const struct socket_args *);
1518 int	sys_connect (struct sysmsg *sysmsg, const struct connect_args *);
1519 int	sys_getpriority (struct sysmsg *sysmsg, const struct getpriority_args *);
1520 int	sys_bind (struct sysmsg *sysmsg, const struct bind_args *);
1521 int	sys_setsockopt (struct sysmsg *sysmsg, const struct setsockopt_args *);
1522 int	sys_listen (struct sysmsg *sysmsg, const struct listen_args *);
1523 int	sys_gettimeofday (struct sysmsg *sysmsg, const struct gettimeofday_args *);
1524 int	sys_getrusage (struct sysmsg *sysmsg, const struct getrusage_args *);
1525 int	sys_getsockopt (struct sysmsg *sysmsg, const struct getsockopt_args *);
1526 int	sys_readv (struct sysmsg *sysmsg, const struct readv_args *);
1527 int	sys_writev (struct sysmsg *sysmsg, const struct writev_args *);
1528 int	sys_settimeofday (struct sysmsg *sysmsg, const struct settimeofday_args *);
1529 int	sys_fchown (struct sysmsg *sysmsg, const struct fchown_args *);
1530 int	sys_fchmod (struct sysmsg *sysmsg, const struct fchmod_args *);
1531 int	sys_setreuid (struct sysmsg *sysmsg, const struct setreuid_args *);
1532 int	sys_setregid (struct sysmsg *sysmsg, const struct setregid_args *);
1533 int	sys_rename (struct sysmsg *sysmsg, const struct rename_args *);
1534 int	sys_flock (struct sysmsg *sysmsg, const struct flock_args *);
1535 int	sys_mkfifo (struct sysmsg *sysmsg, const struct mkfifo_args *);
1536 int	sys_sendto (struct sysmsg *sysmsg, const struct sendto_args *);
1537 int	sys_shutdown (struct sysmsg *sysmsg, const struct shutdown_args *);
1538 int	sys_socketpair (struct sysmsg *sysmsg, const struct socketpair_args *);
1539 int	sys_mkdir (struct sysmsg *sysmsg, const struct mkdir_args *);
1540 int	sys_rmdir (struct sysmsg *sysmsg, const struct rmdir_args *);
1541 int	sys_utimes (struct sysmsg *sysmsg, const struct utimes_args *);
1542 int	sys_adjtime (struct sysmsg *sysmsg, const struct adjtime_args *);
1543 int	sys_setsid (struct sysmsg *sysmsg, const struct setsid_args *);
1544 int	sys_quotactl (struct sysmsg *sysmsg, const struct quotactl_args *);
1545 int	sys_nfssvc (struct sysmsg *sysmsg, const struct nfssvc_args *);
1546 int	sys_statfs (struct sysmsg *sysmsg, const struct statfs_args *);
1547 int	sys_fstatfs (struct sysmsg *sysmsg, const struct fstatfs_args *);
1548 int	sys_getfh (struct sysmsg *sysmsg, const struct getfh_args *);
1549 int	sys_sysarch (struct sysmsg *sysmsg, const struct sysarch_args *);
1550 int	sys_rtprio (struct sysmsg *sysmsg, const struct rtprio_args *);
1551 int	sys_extpread (struct sysmsg *sysmsg, const struct extpread_args *);
1552 int	sys_extpwrite (struct sysmsg *sysmsg, const struct extpwrite_args *);
1553 int	sys_ntp_adjtime (struct sysmsg *sysmsg, const struct ntp_adjtime_args *);
1554 int	sys_setgid (struct sysmsg *sysmsg, const struct setgid_args *);
1555 int	sys_setegid (struct sysmsg *sysmsg, const struct setegid_args *);
1556 int	sys_seteuid (struct sysmsg *sysmsg, const struct seteuid_args *);
1557 int	sys_pathconf (struct sysmsg *sysmsg, const struct pathconf_args *);
1558 int	sys_fpathconf (struct sysmsg *sysmsg, const struct fpathconf_args *);
1559 int	sys_getrlimit (struct sysmsg *sysmsg, const struct __getrlimit_args *);
1560 int	sys_setrlimit (struct sysmsg *sysmsg, const struct __setrlimit_args *);
1561 int	sys_mmap (struct sysmsg *sysmsg, const struct mmap_args *);
1562 int	sys_lseek (struct sysmsg *sysmsg, const struct lseek_args *);
1563 int	sys_truncate (struct sysmsg *sysmsg, const struct truncate_args *);
1564 int	sys_ftruncate (struct sysmsg *sysmsg, const struct ftruncate_args *);
1565 int	sys___sysctl (struct sysmsg *sysmsg, const struct sysctl_args *);
1566 int	sys_mlock (struct sysmsg *sysmsg, const struct mlock_args *);
1567 int	sys_munlock (struct sysmsg *sysmsg, const struct munlock_args *);
1568 int	sys_undelete (struct sysmsg *sysmsg, const struct undelete_args *);
1569 int	sys_futimes (struct sysmsg *sysmsg, const struct futimes_args *);
1570 int	sys_getpgid (struct sysmsg *sysmsg, const struct getpgid_args *);
1571 int	sys_poll (struct sysmsg *sysmsg, const struct poll_args *);
1572 int	sys_lkmnosys (struct sysmsg *sysmsg, const struct nosys_args *);
1573 int	sys___semctl (struct sysmsg *sysmsg, const struct __semctl_args *);
1574 int	sys_semget (struct sysmsg *sysmsg, const struct semget_args *);
1575 int	sys_semop (struct sysmsg *sysmsg, const struct semop_args *);
1576 int	sys_msgctl (struct sysmsg *sysmsg, const struct msgctl_args *);
1577 int	sys_msgget (struct sysmsg *sysmsg, const struct msgget_args *);
1578 int	sys_msgsnd (struct sysmsg *sysmsg, const struct msgsnd_args *);
1579 int	sys_msgrcv (struct sysmsg *sysmsg, const struct msgrcv_args *);
1580 int	sys_shmat (struct sysmsg *sysmsg, const struct shmat_args *);
1581 int	sys_shmctl (struct sysmsg *sysmsg, const struct shmctl_args *);
1582 int	sys_shmdt (struct sysmsg *sysmsg, const struct shmdt_args *);
1583 int	sys_shmget (struct sysmsg *sysmsg, const struct shmget_args *);
1584 int	sys_clock_gettime (struct sysmsg *sysmsg, const struct clock_gettime_args *);
1585 int	sys_clock_settime (struct sysmsg *sysmsg, const struct clock_settime_args *);
1586 int	sys_clock_getres (struct sysmsg *sysmsg, const struct clock_getres_args *);
1587 int	sys_nanosleep (struct sysmsg *sysmsg, const struct nanosleep_args *);
1588 int	sys_minherit (struct sysmsg *sysmsg, const struct minherit_args *);
1589 int	sys_rfork (struct sysmsg *sysmsg, const struct rfork_args *);
1590 int	sys_openbsd_poll (struct sysmsg *sysmsg, const struct openbsd_poll_args *);
1591 int	sys_issetugid (struct sysmsg *sysmsg, const struct issetugid_args *);
1592 int	sys_lchown (struct sysmsg *sysmsg, const struct lchown_args *);
1593 int	sys_lchmod (struct sysmsg *sysmsg, const struct lchmod_args *);
1594 int	sys_lutimes (struct sysmsg *sysmsg, const struct lutimes_args *);
1595 int	sys_extpreadv (struct sysmsg *sysmsg, const struct extpreadv_args *);
1596 int	sys_extpwritev (struct sysmsg *sysmsg, const struct extpwritev_args *);
1597 int	sys_fhstatfs (struct sysmsg *sysmsg, const struct fhstatfs_args *);
1598 int	sys_fhopen (struct sysmsg *sysmsg, const struct fhopen_args *);
1599 int	sys_modnext (struct sysmsg *sysmsg, const struct modnext_args *);
1600 int	sys_modstat (struct sysmsg *sysmsg, const struct modstat_args *);
1601 int	sys_modfnext (struct sysmsg *sysmsg, const struct modfnext_args *);
1602 int	sys_modfind (struct sysmsg *sysmsg, const struct modfind_args *);
1603 int	sys_kldload (struct sysmsg *sysmsg, const struct kldload_args *);
1604 int	sys_kldunload (struct sysmsg *sysmsg, const struct kldunload_args *);
1605 int	sys_kldfind (struct sysmsg *sysmsg, const struct kldfind_args *);
1606 int	sys_kldnext (struct sysmsg *sysmsg, const struct kldnext_args *);
1607 int	sys_kldstat (struct sysmsg *sysmsg, const struct kldstat_args *);
1608 int	sys_kldfirstmod (struct sysmsg *sysmsg, const struct kldfirstmod_args *);
1609 int	sys_getsid (struct sysmsg *sysmsg, const struct getsid_args *);
1610 int	sys_setresuid (struct sysmsg *sysmsg, const struct setresuid_args *);
1611 int	sys_setresgid (struct sysmsg *sysmsg, const struct setresgid_args *);
1612 int	sys_aio_return (struct sysmsg *sysmsg, const struct aio_return_args *);
1613 int	sys_aio_suspend (struct sysmsg *sysmsg, const struct aio_suspend_args *);
1614 int	sys_aio_cancel (struct sysmsg *sysmsg, const struct aio_cancel_args *);
1615 int	sys_aio_error (struct sysmsg *sysmsg, const struct aio_error_args *);
1616 int	sys_aio_read (struct sysmsg *sysmsg, const struct aio_read_args *);
1617 int	sys_aio_write (struct sysmsg *sysmsg, const struct aio_write_args *);
1618 int	sys_lio_listio (struct sysmsg *sysmsg, const struct lio_listio_args *);
1619 int	sys_yield (struct sysmsg *sysmsg, const struct yield_args *);
1620 int	sys_mlockall (struct sysmsg *sysmsg, const struct mlockall_args *);
1621 int	sys_munlockall (struct sysmsg *sysmsg, const struct munlockall_args *);
1622 int	sys___getcwd (struct sysmsg *sysmsg, const struct __getcwd_args *);
1623 int	sys_sched_setparam (struct sysmsg *sysmsg, const struct sched_setparam_args *);
1624 int	sys_sched_getparam (struct sysmsg *sysmsg, const struct sched_getparam_args *);
1625 int	sys_sched_setscheduler (struct sysmsg *sysmsg, const struct sched_setscheduler_args *);
1626 int	sys_sched_getscheduler (struct sysmsg *sysmsg, const struct sched_getscheduler_args *);
1627 int	sys_sched_yield (struct sysmsg *sysmsg, const struct sched_yield_args *);
1628 int	sys_sched_get_priority_max (struct sysmsg *sysmsg, const struct sched_get_priority_max_args *);
1629 int	sys_sched_get_priority_min (struct sysmsg *sysmsg, const struct sched_get_priority_min_args *);
1630 int	sys_sched_rr_get_interval (struct sysmsg *sysmsg, const struct sched_rr_get_interval_args *);
1631 int	sys_utrace (struct sysmsg *sysmsg, const struct utrace_args *);
1632 int	sys_kldsym (struct sysmsg *sysmsg, const struct kldsym_args *);
1633 int	sys_jail (struct sysmsg *sysmsg, const struct jail_args *);
1634 int	sys_sigprocmask (struct sysmsg *sysmsg, const struct sigprocmask_args *);
1635 int	sys_sigsuspend (struct sysmsg *sysmsg, const struct sigsuspend_args *);
1636 int	sys_sigaction (struct sysmsg *sysmsg, const struct sigaction_args *);
1637 int	sys_sigpending (struct sysmsg *sysmsg, const struct sigpending_args *);
1638 int	sys_sigreturn (struct sysmsg *sysmsg, const struct sigreturn_args *);
1639 int	sys_sigtimedwait (struct sysmsg *sysmsg, const struct sigtimedwait_args *);
1640 int	sys_sigwaitinfo (struct sysmsg *sysmsg, const struct sigwaitinfo_args *);
1641 int	sys___acl_get_file (struct sysmsg *sysmsg, const struct __acl_get_file_args *);
1642 int	sys___acl_set_file (struct sysmsg *sysmsg, const struct __acl_set_file_args *);
1643 int	sys___acl_get_fd (struct sysmsg *sysmsg, const struct __acl_get_fd_args *);
1644 int	sys___acl_set_fd (struct sysmsg *sysmsg, const struct __acl_set_fd_args *);
1645 int	sys___acl_delete_file (struct sysmsg *sysmsg, const struct __acl_delete_file_args *);
1646 int	sys___acl_delete_fd (struct sysmsg *sysmsg, const struct __acl_delete_fd_args *);
1647 int	sys___acl_aclcheck_file (struct sysmsg *sysmsg, const struct __acl_aclcheck_file_args *);
1648 int	sys___acl_aclcheck_fd (struct sysmsg *sysmsg, const struct __acl_aclcheck_fd_args *);
1649 int	sys_extattrctl (struct sysmsg *sysmsg, const struct extattrctl_args *);
1650 int	sys_extattr_set_file (struct sysmsg *sysmsg, const struct extattr_set_file_args *);
1651 int	sys_extattr_get_file (struct sysmsg *sysmsg, const struct extattr_get_file_args *);
1652 int	sys_extattr_delete_file (struct sysmsg *sysmsg, const struct extattr_delete_file_args *);
1653 int	sys_aio_waitcomplete (struct sysmsg *sysmsg, const struct aio_waitcomplete_args *);
1654 int	sys_getresuid (struct sysmsg *sysmsg, const struct getresuid_args *);
1655 int	sys_getresgid (struct sysmsg *sysmsg, const struct getresgid_args *);
1656 int	sys_kqueue (struct sysmsg *sysmsg, const struct kqueue_args *);
1657 int	sys_kevent (struct sysmsg *sysmsg, const struct kevent_args *);
1658 int	sys_kenv (struct sysmsg *sysmsg, const struct kenv_args *);
1659 int	sys_lchflags (struct sysmsg *sysmsg, const struct lchflags_args *);
1660 int	sys_uuidgen (struct sysmsg *sysmsg, const struct uuidgen_args *);
1661 int	sys_sendfile (struct sysmsg *sysmsg, const struct sendfile_args *);
1662 int	sys_varsym_set (struct sysmsg *sysmsg, const struct varsym_set_args *);
1663 int	sys_varsym_get (struct sysmsg *sysmsg, const struct varsym_get_args *);
1664 int	sys_varsym_list (struct sysmsg *sysmsg, const struct varsym_list_args *);
1665 int	sys_exec_sys_register (struct sysmsg *sysmsg, const struct exec_sys_register_args *);
1666 int	sys_exec_sys_unregister (struct sysmsg *sysmsg, const struct exec_sys_unregister_args *);
1667 int	sys_sys_checkpoint (struct sysmsg *sysmsg, const struct sys_checkpoint_args *);
1668 int	sys_mountctl (struct sysmsg *sysmsg, const struct mountctl_args *);
1669 int	sys_umtx_sleep (struct sysmsg *sysmsg, const struct umtx_sleep_args *);
1670 int	sys_umtx_wakeup (struct sysmsg *sysmsg, const struct umtx_wakeup_args *);
1671 int	sys_jail_attach (struct sysmsg *sysmsg, const struct jail_attach_args *);
1672 int	sys_set_tls_area (struct sysmsg *sysmsg, const struct set_tls_area_args *);
1673 int	sys_get_tls_area (struct sysmsg *sysmsg, const struct get_tls_area_args *);
1674 int	sys_closefrom (struct sysmsg *sysmsg, const struct closefrom_args *);
1675 int	sys_stat (struct sysmsg *sysmsg, const struct stat_args *);
1676 int	sys_fstat (struct sysmsg *sysmsg, const struct fstat_args *);
1677 int	sys_lstat (struct sysmsg *sysmsg, const struct lstat_args *);
1678 int	sys_fhstat (struct sysmsg *sysmsg, const struct fhstat_args *);
1679 int	sys_getdirentries (struct sysmsg *sysmsg, const struct getdirentries_args *);
1680 int	sys_getdents (struct sysmsg *sysmsg, const struct getdents_args *);
1681 int	sys_usched_set (struct sysmsg *sysmsg, const struct usched_set_args *);
1682 int	sys_extaccept (struct sysmsg *sysmsg, const struct extaccept_args *);
1683 int	sys_extconnect (struct sysmsg *sysmsg, const struct extconnect_args *);
1684 int	sys_mcontrol (struct sysmsg *sysmsg, const struct mcontrol_args *);
1685 int	sys_vmspace_create (struct sysmsg *sysmsg, const struct vmspace_create_args *);
1686 int	sys_vmspace_destroy (struct sysmsg *sysmsg, const struct vmspace_destroy_args *);
1687 int	sys_vmspace_ctl (struct sysmsg *sysmsg, const struct vmspace_ctl_args *);
1688 int	sys_vmspace_mmap (struct sysmsg *sysmsg, const struct vmspace_mmap_args *);
1689 int	sys_vmspace_munmap (struct sysmsg *sysmsg, const struct vmspace_munmap_args *);
1690 int	sys_vmspace_mcontrol (struct sysmsg *sysmsg, const struct vmspace_mcontrol_args *);
1691 int	sys_vmspace_pread (struct sysmsg *sysmsg, const struct vmspace_pread_args *);
1692 int	sys_vmspace_pwrite (struct sysmsg *sysmsg, const struct vmspace_pwrite_args *);
1693 int	sys_extexit (struct sysmsg *sysmsg, const struct extexit_args *);
1694 int	sys_lwp_create (struct sysmsg *sysmsg, const struct lwp_create_args *);
1695 int	sys_lwp_gettid (struct sysmsg *sysmsg, const struct lwp_gettid_args *);
1696 int	sys_lwp_kill (struct sysmsg *sysmsg, const struct lwp_kill_args *);
1697 int	sys_lwp_rtprio (struct sysmsg *sysmsg, const struct lwp_rtprio_args *);
1698 int	sys_pselect (struct sysmsg *sysmsg, const struct pselect_args *);
1699 int	sys_statvfs (struct sysmsg *sysmsg, const struct statvfs_args *);
1700 int	sys_fstatvfs (struct sysmsg *sysmsg, const struct fstatvfs_args *);
1701 int	sys_fhstatvfs (struct sysmsg *sysmsg, const struct fhstatvfs_args *);
1702 int	sys_getvfsstat (struct sysmsg *sysmsg, const struct getvfsstat_args *);
1703 int	sys_openat (struct sysmsg *sysmsg, const struct openat_args *);
1704 int	sys_fstatat (struct sysmsg *sysmsg, const struct fstatat_args *);
1705 int	sys_fchmodat (struct sysmsg *sysmsg, const struct fchmodat_args *);
1706 int	sys_fchownat (struct sysmsg *sysmsg, const struct fchownat_args *);
1707 int	sys_unlinkat (struct sysmsg *sysmsg, const struct unlinkat_args *);
1708 int	sys_faccessat (struct sysmsg *sysmsg, const struct faccessat_args *);
1709 int	sys_mq_open (struct sysmsg *sysmsg, const struct mq_open_args *);
1710 int	sys_mq_close (struct sysmsg *sysmsg, const struct mq_close_args *);
1711 int	sys_mq_unlink (struct sysmsg *sysmsg, const struct mq_unlink_args *);
1712 int	sys_mq_getattr (struct sysmsg *sysmsg, const struct mq_getattr_args *);
1713 int	sys_mq_setattr (struct sysmsg *sysmsg, const struct mq_setattr_args *);
1714 int	sys_mq_notify (struct sysmsg *sysmsg, const struct mq_notify_args *);
1715 int	sys_mq_send (struct sysmsg *sysmsg, const struct mq_send_args *);
1716 int	sys_mq_receive (struct sysmsg *sysmsg, const struct mq_receive_args *);
1717 int	sys_mq_timedsend (struct sysmsg *sysmsg, const struct mq_timedsend_args *);
1718 int	sys_mq_timedreceive (struct sysmsg *sysmsg, const struct mq_timedreceive_args *);
1719 int	sys_ioprio_set (struct sysmsg *sysmsg, const struct ioprio_set_args *);
1720 int	sys_ioprio_get (struct sysmsg *sysmsg, const struct ioprio_get_args *);
1721 int	sys_chroot_kernel (struct sysmsg *sysmsg, const struct chroot_kernel_args *);
1722 int	sys_renameat (struct sysmsg *sysmsg, const struct renameat_args *);
1723 int	sys_mkdirat (struct sysmsg *sysmsg, const struct mkdirat_args *);
1724 int	sys_mkfifoat (struct sysmsg *sysmsg, const struct mkfifoat_args *);
1725 int	sys_mknodat (struct sysmsg *sysmsg, const struct mknodat_args *);
1726 int	sys_readlinkat (struct sysmsg *sysmsg, const struct readlinkat_args *);
1727 int	sys_symlinkat (struct sysmsg *sysmsg, const struct symlinkat_args *);
1728 int	sys_swapoff (struct sysmsg *sysmsg, const struct swapoff_args *);
1729 int	sys_vquotactl (struct sysmsg *sysmsg, const struct vquotactl_args *);
1730 int	sys_linkat (struct sysmsg *sysmsg, const struct linkat_args *);
1731 int	sys_eaccess (struct sysmsg *sysmsg, const struct eaccess_args *);
1732 int	sys_lpathconf (struct sysmsg *sysmsg, const struct lpathconf_args *);
1733 int	sys_vmm_guest_ctl (struct sysmsg *sysmsg, const struct vmm_guest_ctl_args *);
1734 int	sys_vmm_guest_sync_addr (struct sysmsg *sysmsg, const struct vmm_guest_sync_addr_args *);
1735 int	sys_procctl (struct sysmsg *sysmsg, const struct procctl_args *);
1736 int	sys_chflagsat (struct sysmsg *sysmsg, const struct chflagsat_args *);
1737 int	sys_pipe2 (struct sysmsg *sysmsg, const struct pipe2_args *);
1738 int	sys_utimensat (struct sysmsg *sysmsg, const struct utimensat_args *);
1739 int	sys_futimens (struct sysmsg *sysmsg, const struct futimens_args *);
1740 int	sys_accept4 (struct sysmsg *sysmsg, const struct accept4_args *);
1741 int	sys_lwp_setname (struct sysmsg *sysmsg, const struct lwp_setname_args *);
1742 int	sys_ppoll (struct sysmsg *sysmsg, const struct ppoll_args *);
1743 int	sys_lwp_setaffinity (struct sysmsg *sysmsg, const struct lwp_setaffinity_args *);
1744 int	sys_lwp_getaffinity (struct sysmsg *sysmsg, const struct lwp_getaffinity_args *);
1745 int	sys_lwp_create2 (struct sysmsg *sysmsg, const struct lwp_create2_args *);
1746 int	sys_getcpuclockid (struct sysmsg *sysmsg, const struct getcpuclockid_args *);
1747 int	sys_wait6 (struct sysmsg *sysmsg, const struct wait6_args *);
1748 int	sys_lwp_getname (struct sysmsg *sysmsg, const struct lwp_getname_args *);
1749 int	sys_getrandom (struct sysmsg *sysmsg, const struct getrandom_args *);
1750 int	sys___realpath (struct sysmsg *sysmsg, const struct __realpath_args *);
1751 
1752 #endif /* !_SYS_SYSPROTO_H_ */
1753 #undef PAD_
1754 
1755 #endif /* _KERNEL */
1756