Don't return right after a goto.
[dragonfly.git] / sys / sys / sysproto.h
CommitLineData
984263bc
MD
1/*
2 * System call prototypes.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
ae5995b9
JS
5 * $DragonFly: src/sys/sys/sysproto.h,v 1.29 2005/04/08 08:31:45 joerg Exp $
6 * created from DragonFly: src/sys/kern/syscalls.master,v 1.22 2005/04/08 08:31:06 joerg Exp
984263bc
MD
7 */
8
9#ifndef _SYS_SYSPROTO_H_
10#define _SYS_SYSPROTO_H_
11
12#include <sys/signal.h>
13
14#include <sys/acl.h>
15
a64ba182
MD
16#include <sys/msgport.h>
17
c7114eea
MD
18#include <sys/sysmsg.h>
19
984263bc
MD
20#define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \
21 0 : sizeof(register_t) - sizeof(t))
22
23struct nosys_args {
245e4f17 24#ifdef _KERNEL
df2244e3 25 struct sysmsg sysmsg;
245e4f17
MD
26#endif
27 union usrmsg usrmsg;
984263bc
MD
28 register_t dummy;
29};
30struct sys_exit_args {
245e4f17 31#ifdef _KERNEL
df2244e3 32 struct sysmsg sysmsg;
245e4f17
MD
33#endif
34 union usrmsg usrmsg;
984263bc
MD
35 int rval; char rval_[PAD_(int)];
36};
37struct fork_args {
245e4f17 38#ifdef _KERNEL
df2244e3 39 struct sysmsg sysmsg;
245e4f17
MD
40#endif
41 union usrmsg usrmsg;
984263bc
MD
42 register_t dummy;
43};
44struct read_args {
245e4f17 45#ifdef _KERNEL
df2244e3 46 struct sysmsg sysmsg;
245e4f17
MD
47#endif
48 union usrmsg usrmsg;
984263bc
MD
49 int fd; char fd_[PAD_(int)];
50 void * buf; char buf_[PAD_(void *)];
51 size_t nbyte; char nbyte_[PAD_(size_t)];
52};
53struct write_args {
245e4f17 54#ifdef _KERNEL
df2244e3 55 struct sysmsg sysmsg;
245e4f17
MD
56#endif
57 union usrmsg usrmsg;
984263bc
MD
58 int fd; char fd_[PAD_(int)];
59 const void * buf; char buf_[PAD_(const void *)];
60 size_t nbyte; char nbyte_[PAD_(size_t)];
61};
62struct open_args {
245e4f17 63#ifdef _KERNEL
df2244e3 64 struct sysmsg sysmsg;
245e4f17
MD
65#endif
66 union usrmsg usrmsg;
984263bc
MD
67 char * path; char path_[PAD_(char *)];
68 int flags; char flags_[PAD_(int)];
69 int mode; char mode_[PAD_(int)];
70};
71struct close_args {
245e4f17 72#ifdef _KERNEL
df2244e3 73 struct sysmsg sysmsg;
245e4f17
MD
74#endif
75 union usrmsg usrmsg;
984263bc
MD
76 int fd; char fd_[PAD_(int)];
77};
78struct wait_args {
245e4f17 79#ifdef _KERNEL
df2244e3 80 struct sysmsg sysmsg;
245e4f17
MD
81#endif
82 union usrmsg usrmsg;
984263bc
MD
83 int pid; char pid_[PAD_(int)];
84 int * status; char status_[PAD_(int *)];
85 int options; char options_[PAD_(int)];
86 struct rusage * rusage; char rusage_[PAD_(struct rusage *)];
87};
88struct link_args {
245e4f17 89#ifdef _KERNEL
df2244e3 90 struct sysmsg sysmsg;
245e4f17
MD
91#endif
92 union usrmsg usrmsg;
984263bc
MD
93 char * path; char path_[PAD_(char *)];
94 char * link; char link_[PAD_(char *)];
95};
96struct unlink_args {
245e4f17 97#ifdef _KERNEL
df2244e3 98 struct sysmsg sysmsg;
245e4f17
MD
99#endif
100 union usrmsg usrmsg;
984263bc
MD
101 char * path; char path_[PAD_(char *)];
102};
103struct chdir_args {
245e4f17 104#ifdef _KERNEL
df2244e3 105 struct sysmsg sysmsg;
245e4f17
MD
106#endif
107 union usrmsg usrmsg;
984263bc
MD
108 char * path; char path_[PAD_(char *)];
109};
110struct fchdir_args {
245e4f17 111#ifdef _KERNEL
df2244e3 112 struct sysmsg sysmsg;
245e4f17
MD
113#endif
114 union usrmsg usrmsg;
984263bc
MD
115 int fd; char fd_[PAD_(int)];
116};
117struct mknod_args {
245e4f17 118#ifdef _KERNEL
df2244e3 119 struct sysmsg sysmsg;
245e4f17
MD
120#endif
121 union usrmsg usrmsg;
984263bc
MD
122 char * path; char path_[PAD_(char *)];
123 int mode; char mode_[PAD_(int)];
124 int dev; char dev_[PAD_(int)];
125};
126struct chmod_args {
245e4f17 127#ifdef _KERNEL
df2244e3 128 struct sysmsg sysmsg;
245e4f17
MD
129#endif
130 union usrmsg usrmsg;
984263bc
MD
131 char * path; char path_[PAD_(char *)];
132 int mode; char mode_[PAD_(int)];
133};
134struct chown_args {
245e4f17 135#ifdef _KERNEL
df2244e3 136 struct sysmsg sysmsg;
245e4f17
MD
137#endif
138 union usrmsg usrmsg;
984263bc
MD
139 char * path; char path_[PAD_(char *)];
140 int uid; char uid_[PAD_(int)];
141 int gid; char gid_[PAD_(int)];
142};
143struct obreak_args {
245e4f17 144#ifdef _KERNEL
df2244e3 145 struct sysmsg sysmsg;
245e4f17
MD
146#endif
147 union usrmsg usrmsg;
984263bc
MD
148 char * nsize; char nsize_[PAD_(char *)];
149};
150struct getfsstat_args {
245e4f17 151#ifdef _KERNEL
df2244e3 152 struct sysmsg sysmsg;
245e4f17
MD
153#endif
154 union usrmsg usrmsg;
984263bc
MD
155 struct statfs * buf; char buf_[PAD_(struct statfs *)];
156 long bufsize; char bufsize_[PAD_(long)];
157 int flags; char flags_[PAD_(int)];
158};
159struct getpid_args {
245e4f17 160#ifdef _KERNEL
df2244e3 161 struct sysmsg sysmsg;
245e4f17
MD
162#endif
163 union usrmsg usrmsg;
984263bc
MD
164 register_t dummy;
165};
166struct mount_args {
245e4f17 167#ifdef _KERNEL
df2244e3 168 struct sysmsg sysmsg;
245e4f17
MD
169#endif
170 union usrmsg usrmsg;
984263bc
MD
171 char * type; char type_[PAD_(char *)];
172 char * path; char path_[PAD_(char *)];
173 int flags; char flags_[PAD_(int)];
174 caddr_t data; char data_[PAD_(caddr_t)];
175};
176struct unmount_args {
245e4f17 177#ifdef _KERNEL
df2244e3 178 struct sysmsg sysmsg;
245e4f17
MD
179#endif
180 union usrmsg usrmsg;
984263bc
MD
181 char * path; char path_[PAD_(char *)];
182 int flags; char flags_[PAD_(int)];
183};
184struct setuid_args {
245e4f17 185#ifdef _KERNEL
df2244e3 186 struct sysmsg sysmsg;
245e4f17
MD
187#endif
188 union usrmsg usrmsg;
984263bc
MD
189 uid_t uid; char uid_[PAD_(uid_t)];
190};
191struct getuid_args {
245e4f17 192#ifdef _KERNEL
df2244e3 193 struct sysmsg sysmsg;
245e4f17
MD
194#endif
195 union usrmsg usrmsg;
984263bc
MD
196 register_t dummy;
197};
198struct geteuid_args {
245e4f17 199#ifdef _KERNEL
df2244e3 200 struct sysmsg sysmsg;
245e4f17
MD
201#endif
202 union usrmsg usrmsg;
984263bc
MD
203 register_t dummy;
204};
205struct ptrace_args {
245e4f17 206#ifdef _KERNEL
df2244e3 207 struct sysmsg sysmsg;
245e4f17
MD
208#endif
209 union usrmsg usrmsg;
984263bc
MD
210 int req; char req_[PAD_(int)];
211 pid_t pid; char pid_[PAD_(pid_t)];
212 caddr_t addr; char addr_[PAD_(caddr_t)];
213 int data; char data_[PAD_(int)];
214};
215struct recvmsg_args {
245e4f17 216#ifdef _KERNEL
df2244e3 217 struct sysmsg sysmsg;
245e4f17
MD
218#endif
219 union usrmsg usrmsg;
984263bc
MD
220 int s; char s_[PAD_(int)];
221 struct msghdr * msg; char msg_[PAD_(struct msghdr *)];
222 int flags; char flags_[PAD_(int)];
223};
224struct sendmsg_args {
245e4f17 225#ifdef _KERNEL
df2244e3 226 struct sysmsg sysmsg;
245e4f17
MD
227#endif
228 union usrmsg usrmsg;
984263bc
MD
229 int s; char s_[PAD_(int)];
230 caddr_t msg; char msg_[PAD_(caddr_t)];
231 int flags; char flags_[PAD_(int)];
232};
233struct recvfrom_args {
245e4f17 234#ifdef _KERNEL
df2244e3 235 struct sysmsg sysmsg;
245e4f17
MD
236#endif
237 union usrmsg usrmsg;
984263bc
MD
238 int s; char s_[PAD_(int)];
239 caddr_t buf; char buf_[PAD_(caddr_t)];
240 size_t len; char len_[PAD_(size_t)];
241 int flags; char flags_[PAD_(int)];
242 caddr_t from; char from_[PAD_(caddr_t)];
243 int * fromlenaddr; char fromlenaddr_[PAD_(int *)];
244};
245struct accept_args {
245e4f17 246#ifdef _KERNEL
df2244e3 247 struct sysmsg sysmsg;
245e4f17
MD
248#endif
249 union usrmsg usrmsg;
984263bc
MD
250 int s; char s_[PAD_(int)];
251 caddr_t name; char name_[PAD_(caddr_t)];
252 int * anamelen; char anamelen_[PAD_(int *)];
253};
254struct getpeername_args {
245e4f17 255#ifdef _KERNEL
df2244e3 256 struct sysmsg sysmsg;
245e4f17
MD
257#endif
258 union usrmsg usrmsg;
984263bc
MD
259 int fdes; char fdes_[PAD_(int)];
260 caddr_t asa; char asa_[PAD_(caddr_t)];
261 int * alen; char alen_[PAD_(int *)];
262};
263struct getsockname_args {
245e4f17 264#ifdef _KERNEL
df2244e3 265 struct sysmsg sysmsg;
245e4f17
MD
266#endif
267 union usrmsg usrmsg;
984263bc
MD
268 int fdes; char fdes_[PAD_(int)];
269 caddr_t asa; char asa_[PAD_(caddr_t)];
270 int * alen; char alen_[PAD_(int *)];
271};
272struct access_args {
245e4f17 273#ifdef _KERNEL
df2244e3 274 struct sysmsg sysmsg;
245e4f17
MD
275#endif
276 union usrmsg usrmsg;
984263bc
MD
277 char * path; char path_[PAD_(char *)];
278 int flags; char flags_[PAD_(int)];
279};
280struct chflags_args {
245e4f17 281#ifdef _KERNEL
df2244e3 282 struct sysmsg sysmsg;
245e4f17
MD
283#endif
284 union usrmsg usrmsg;
984263bc
MD
285 char * path; char path_[PAD_(char *)];
286 int flags; char flags_[PAD_(int)];
287};
288struct fchflags_args {
245e4f17 289#ifdef _KERNEL
df2244e3 290 struct sysmsg sysmsg;
245e4f17
MD
291#endif
292 union usrmsg usrmsg;
984263bc
MD
293 int fd; char fd_[PAD_(int)];
294 int flags; char flags_[PAD_(int)];
295};
296struct sync_args {
245e4f17 297#ifdef _KERNEL
df2244e3 298 struct sysmsg sysmsg;
245e4f17
MD
299#endif
300 union usrmsg usrmsg;
984263bc
MD
301 register_t dummy;
302};
303struct kill_args {
245e4f17 304#ifdef _KERNEL
df2244e3 305 struct sysmsg sysmsg;
245e4f17
MD
306#endif
307 union usrmsg usrmsg;
984263bc
MD
308 int pid; char pid_[PAD_(int)];
309 int signum; char signum_[PAD_(int)];
310};
311struct getppid_args {
245e4f17 312#ifdef _KERNEL
df2244e3 313 struct sysmsg sysmsg;
245e4f17
MD
314#endif
315 union usrmsg usrmsg;
984263bc
MD
316 register_t dummy;
317};
318struct dup_args {
245e4f17 319#ifdef _KERNEL
df2244e3 320 struct sysmsg sysmsg;
245e4f17
MD
321#endif
322 union usrmsg usrmsg;
984263bc
MD
323 u_int fd; char fd_[PAD_(u_int)];
324};
325struct pipe_args {
245e4f17 326#ifdef _KERNEL
df2244e3 327 struct sysmsg sysmsg;
245e4f17
MD
328#endif
329 union usrmsg usrmsg;
984263bc
MD
330 register_t dummy;
331};
332struct getegid_args {
245e4f17 333#ifdef _KERNEL
df2244e3 334 struct sysmsg sysmsg;
245e4f17
MD
335#endif
336 union usrmsg usrmsg;
984263bc
MD
337 register_t dummy;
338};
339struct profil_args {
245e4f17 340#ifdef _KERNEL
df2244e3 341 struct sysmsg sysmsg;
245e4f17
MD
342#endif
343 union usrmsg usrmsg;
984263bc
MD
344 caddr_t samples; char samples_[PAD_(caddr_t)];
345 size_t size; char size_[PAD_(size_t)];
346 size_t offset; char offset_[PAD_(size_t)];
347 u_int scale; char scale_[PAD_(u_int)];
348};
349struct ktrace_args {
245e4f17 350#ifdef _KERNEL
df2244e3 351 struct sysmsg sysmsg;
245e4f17
MD
352#endif
353 union usrmsg usrmsg;
984263bc
MD
354 const char * fname; char fname_[PAD_(const char *)];
355 int ops; char ops_[PAD_(int)];
356 int facs; char facs_[PAD_(int)];
357 int pid; char pid_[PAD_(int)];
358};
359struct getgid_args {
245e4f17 360#ifdef _KERNEL
df2244e3 361 struct sysmsg sysmsg;
245e4f17
MD
362#endif
363 union usrmsg usrmsg;
984263bc
MD
364 register_t dummy;
365};
366struct getlogin_args {
245e4f17 367#ifdef _KERNEL
df2244e3 368 struct sysmsg sysmsg;
245e4f17
MD
369#endif
370 union usrmsg usrmsg;
984263bc
MD
371 char * namebuf; char namebuf_[PAD_(char *)];
372 u_int namelen; char namelen_[PAD_(u_int)];
373};
374struct setlogin_args {
245e4f17 375#ifdef _KERNEL
df2244e3 376 struct sysmsg sysmsg;
245e4f17
MD
377#endif
378 union usrmsg usrmsg;
984263bc
MD
379 char * namebuf; char namebuf_[PAD_(char *)];
380};
381struct acct_args {
245e4f17 382#ifdef _KERNEL
df2244e3 383 struct sysmsg sysmsg;
245e4f17
MD
384#endif
385 union usrmsg usrmsg;
984263bc
MD
386 char * path; char path_[PAD_(char *)];
387};
984263bc 388struct sigaltstack_args {
245e4f17 389#ifdef _KERNEL
df2244e3 390 struct sysmsg sysmsg;
245e4f17
MD
391#endif
392 union usrmsg usrmsg;
984263bc
MD
393 stack_t * ss; char ss_[PAD_(stack_t *)];
394 stack_t * oss; char oss_[PAD_(stack_t *)];
395};
396struct ioctl_args {
245e4f17 397#ifdef _KERNEL
df2244e3 398 struct sysmsg sysmsg;
245e4f17
MD
399#endif
400 union usrmsg usrmsg;
984263bc
MD
401 int fd; char fd_[PAD_(int)];
402 u_long com; char com_[PAD_(u_long)];
403 caddr_t data; char data_[PAD_(caddr_t)];
404};
405struct reboot_args {
245e4f17 406#ifdef _KERNEL
df2244e3 407 struct sysmsg sysmsg;
245e4f17
MD
408#endif
409 union usrmsg usrmsg;
984263bc
MD
410 int opt; char opt_[PAD_(int)];
411};
412struct revoke_args {
245e4f17 413#ifdef _KERNEL
df2244e3 414 struct sysmsg sysmsg;
245e4f17
MD
415#endif
416 union usrmsg usrmsg;
984263bc
MD
417 char * path; char path_[PAD_(char *)];
418};
419struct symlink_args {
245e4f17 420#ifdef _KERNEL
df2244e3 421 struct sysmsg sysmsg;
245e4f17
MD
422#endif
423 union usrmsg usrmsg;
984263bc
MD
424 char * path; char path_[PAD_(char *)];
425 char * link; char link_[PAD_(char *)];
426};
427struct readlink_args {
245e4f17 428#ifdef _KERNEL
df2244e3 429 struct sysmsg sysmsg;
245e4f17
MD
430#endif
431 union usrmsg usrmsg;
984263bc
MD
432 char * path; char path_[PAD_(char *)];
433 char * buf; char buf_[PAD_(char *)];
434 int count; char count_[PAD_(int)];
435};
436struct execve_args {
245e4f17 437#ifdef _KERNEL
df2244e3 438 struct sysmsg sysmsg;
245e4f17
MD
439#endif
440 union usrmsg usrmsg;
984263bc
MD
441 char * fname; char fname_[PAD_(char *)];
442 char ** argv; char argv_[PAD_(char **)];
443 char ** envv; char envv_[PAD_(char **)];
444};
445struct umask_args {
245e4f17 446#ifdef _KERNEL
df2244e3 447 struct sysmsg sysmsg;
245e4f17
MD
448#endif
449 union usrmsg usrmsg;
984263bc
MD
450 int newmask; char newmask_[PAD_(int)];
451};
452struct chroot_args {
245e4f17 453#ifdef _KERNEL
df2244e3 454 struct sysmsg sysmsg;
245e4f17
MD
455#endif
456 union usrmsg usrmsg;
984263bc
MD
457 char * path; char path_[PAD_(char *)];
458};
459struct getpagesize_args {
245e4f17 460#ifdef _KERNEL
df2244e3 461 struct sysmsg sysmsg;
245e4f17
MD
462#endif
463 union usrmsg usrmsg;
984263bc
MD
464 register_t dummy;
465};
466struct msync_args {
245e4f17 467#ifdef _KERNEL
df2244e3 468 struct sysmsg sysmsg;
245e4f17
MD
469#endif
470 union usrmsg usrmsg;
984263bc
MD
471 void * addr; char addr_[PAD_(void *)];
472 size_t len; char len_[PAD_(size_t)];
473 int flags; char flags_[PAD_(int)];
474};
475struct vfork_args {
245e4f17 476#ifdef _KERNEL
df2244e3 477 struct sysmsg sysmsg;
245e4f17
MD
478#endif
479 union usrmsg usrmsg;
984263bc
MD
480 register_t dummy;
481};
482struct sbrk_args {
245e4f17 483#ifdef _KERNEL
df2244e3 484 struct sysmsg sysmsg;
245e4f17
MD
485#endif
486 union usrmsg usrmsg;
984263bc
MD
487 int incr; char incr_[PAD_(int)];
488};
489struct sstk_args {
245e4f17 490#ifdef _KERNEL
df2244e3 491 struct sysmsg sysmsg;
245e4f17
MD
492#endif
493 union usrmsg usrmsg;
984263bc
MD
494 int incr; char incr_[PAD_(int)];
495};
496struct ovadvise_args {
245e4f17 497#ifdef _KERNEL
df2244e3 498 struct sysmsg sysmsg;
245e4f17
MD
499#endif
500 union usrmsg usrmsg;
984263bc
MD
501 int anom; char anom_[PAD_(int)];
502};
503struct munmap_args {
245e4f17 504#ifdef _KERNEL
df2244e3 505 struct sysmsg sysmsg;
245e4f17
MD
506#endif
507 union usrmsg usrmsg;
984263bc
MD
508 void * addr; char addr_[PAD_(void *)];
509 size_t len; char len_[PAD_(size_t)];
510};
511struct mprotect_args {
245e4f17 512#ifdef _KERNEL
df2244e3 513 struct sysmsg sysmsg;
245e4f17
MD
514#endif
515 union usrmsg usrmsg;
984263bc
MD
516 const void * addr; char addr_[PAD_(const void *)];
517 size_t len; char len_[PAD_(size_t)];
518 int prot; char prot_[PAD_(int)];
519};
520struct madvise_args {
245e4f17 521#ifdef _KERNEL
df2244e3 522 struct sysmsg sysmsg;
245e4f17
MD
523#endif
524 union usrmsg usrmsg;
984263bc
MD
525 void * addr; char addr_[PAD_(void *)];
526 size_t len; char len_[PAD_(size_t)];
527 int behav; char behav_[PAD_(int)];
528};
529struct mincore_args {
245e4f17 530#ifdef _KERNEL
df2244e3 531 struct sysmsg sysmsg;
245e4f17
MD
532#endif
533 union usrmsg usrmsg;
984263bc
MD
534 const void * addr; char addr_[PAD_(const void *)];
535 size_t len; char len_[PAD_(size_t)];
536 char * vec; char vec_[PAD_(char *)];
537};
538struct getgroups_args {
245e4f17 539#ifdef _KERNEL
df2244e3 540 struct sysmsg sysmsg;
245e4f17
MD
541#endif
542 union usrmsg usrmsg;
984263bc
MD
543 u_int gidsetsize; char gidsetsize_[PAD_(u_int)];
544 gid_t * gidset; char gidset_[PAD_(gid_t *)];
545};
546struct setgroups_args {
245e4f17 547#ifdef _KERNEL
df2244e3 548 struct sysmsg sysmsg;
245e4f17
MD
549#endif
550 union usrmsg usrmsg;
984263bc
MD
551 u_int gidsetsize; char gidsetsize_[PAD_(u_int)];
552 gid_t * gidset; char gidset_[PAD_(gid_t *)];
553};
554struct getpgrp_args {
245e4f17 555#ifdef _KERNEL
df2244e3 556 struct sysmsg sysmsg;
245e4f17
MD
557#endif
558 union usrmsg usrmsg;
984263bc
MD
559 register_t dummy;
560};
561struct setpgid_args {
245e4f17 562#ifdef _KERNEL
df2244e3 563 struct sysmsg sysmsg;
245e4f17
MD
564#endif
565 union usrmsg usrmsg;
984263bc
MD
566 int pid; char pid_[PAD_(int)];
567 int pgid; char pgid_[PAD_(int)];
568};
569struct setitimer_args {
245e4f17 570#ifdef _KERNEL
df2244e3 571 struct sysmsg sysmsg;
245e4f17
MD
572#endif
573 union usrmsg usrmsg;
984263bc
MD
574 u_int which; char which_[PAD_(u_int)];
575 struct itimerval * itv; char itv_[PAD_(struct itimerval *)];
576 struct itimerval * oitv; char oitv_[PAD_(struct itimerval *)];
577};
578struct owait_args {
245e4f17 579#ifdef _KERNEL
df2244e3 580 struct sysmsg sysmsg;
245e4f17
MD
581#endif
582 union usrmsg usrmsg;
984263bc
MD
583 register_t dummy;
584};
585struct swapon_args {
245e4f17 586#ifdef _KERNEL
df2244e3 587 struct sysmsg sysmsg;
245e4f17
MD
588#endif
589 union usrmsg usrmsg;
984263bc
MD
590 char * name; char name_[PAD_(char *)];
591};
592struct getitimer_args {
245e4f17 593#ifdef _KERNEL
df2244e3 594 struct sysmsg sysmsg;
245e4f17
MD
595#endif
596 union usrmsg usrmsg;
984263bc
MD
597 u_int which; char which_[PAD_(u_int)];
598 struct itimerval * itv; char itv_[PAD_(struct itimerval *)];
599};
600struct getdtablesize_args {
245e4f17 601#ifdef _KERNEL
df2244e3 602 struct sysmsg sysmsg;
245e4f17
MD
603#endif
604 union usrmsg usrmsg;
984263bc
MD
605 register_t dummy;
606};
607struct dup2_args {
245e4f17 608#ifdef _KERNEL
df2244e3 609 struct sysmsg sysmsg;
245e4f17
MD
610#endif
611 union usrmsg usrmsg;
984263bc
MD
612 u_int from; char from_[PAD_(u_int)];
613 u_int to; char to_[PAD_(u_int)];
614};
615struct fcntl_args {
245e4f17 616#ifdef _KERNEL
df2244e3 617 struct sysmsg sysmsg;
245e4f17
MD
618#endif
619 union usrmsg usrmsg;
984263bc
MD
620 int fd; char fd_[PAD_(int)];
621 int cmd; char cmd_[PAD_(int)];
622 long arg; char arg_[PAD_(long)];
623};
624struct select_args {
245e4f17 625#ifdef _KERNEL
df2244e3 626 struct sysmsg sysmsg;
245e4f17
MD
627#endif
628 union usrmsg usrmsg;
984263bc
MD
629 int nd; char nd_[PAD_(int)];
630 fd_set * in; char in_[PAD_(fd_set *)];
631 fd_set * ou; char ou_[PAD_(fd_set *)];
632 fd_set * ex; char ex_[PAD_(fd_set *)];
633 struct timeval * tv; char tv_[PAD_(struct timeval *)];
634};
635struct fsync_args {
245e4f17 636#ifdef _KERNEL
df2244e3 637 struct sysmsg sysmsg;
245e4f17
MD
638#endif
639 union usrmsg usrmsg;
984263bc
MD
640 int fd; char fd_[PAD_(int)];
641};
642struct setpriority_args {
245e4f17 643#ifdef _KERNEL
df2244e3 644 struct sysmsg sysmsg;
245e4f17
MD
645#endif
646 union usrmsg usrmsg;
984263bc
MD
647 int which; char which_[PAD_(int)];
648 int who; char who_[PAD_(int)];
649 int prio; char prio_[PAD_(int)];
650};
651struct socket_args {
245e4f17 652#ifdef _KERNEL
df2244e3 653 struct sysmsg sysmsg;
245e4f17
MD
654#endif
655 union usrmsg usrmsg;
984263bc
MD
656 int domain; char domain_[PAD_(int)];
657 int type; char type_[PAD_(int)];
658 int protocol; char protocol_[PAD_(int)];
659};
660struct connect_args {
245e4f17 661#ifdef _KERNEL
df2244e3 662 struct sysmsg sysmsg;
245e4f17
MD
663#endif
664 union usrmsg usrmsg;
984263bc
MD
665 int s; char s_[PAD_(int)];
666 caddr_t name; char name_[PAD_(caddr_t)];
667 int namelen; char namelen_[PAD_(int)];
668};
669struct getpriority_args {
245e4f17 670#ifdef _KERNEL
df2244e3 671 struct sysmsg sysmsg;
245e4f17
MD
672#endif
673 union usrmsg usrmsg;
984263bc
MD
674 int which; char which_[PAD_(int)];
675 int who; char who_[PAD_(int)];
676};
677struct bind_args {
245e4f17 678#ifdef _KERNEL
df2244e3 679 struct sysmsg sysmsg;
245e4f17
MD
680#endif
681 union usrmsg usrmsg;
984263bc
MD
682 int s; char s_[PAD_(int)];
683 caddr_t name; char name_[PAD_(caddr_t)];
684 int namelen; char namelen_[PAD_(int)];
685};
686struct setsockopt_args {
245e4f17 687#ifdef _KERNEL
df2244e3 688 struct sysmsg sysmsg;
245e4f17
MD
689#endif
690 union usrmsg usrmsg;
984263bc
MD
691 int s; char s_[PAD_(int)];
692 int level; char level_[PAD_(int)];
693 int name; char name_[PAD_(int)];
694 caddr_t val; char val_[PAD_(caddr_t)];
695 int valsize; char valsize_[PAD_(int)];
696};
697struct listen_args {
245e4f17 698#ifdef _KERNEL
df2244e3 699 struct sysmsg sysmsg;
245e4f17
MD
700#endif
701 union usrmsg usrmsg;
984263bc
MD
702 int s; char s_[PAD_(int)];
703 int backlog; char backlog_[PAD_(int)];
704};
705struct gettimeofday_args {
245e4f17 706#ifdef _KERNEL
df2244e3 707 struct sysmsg sysmsg;
245e4f17
MD
708#endif
709 union usrmsg usrmsg;
984263bc
MD
710 struct timeval * tp; char tp_[PAD_(struct timeval *)];
711 struct timezone * tzp; char tzp_[PAD_(struct timezone *)];
712};
713struct getrusage_args {
245e4f17 714#ifdef _KERNEL
df2244e3 715 struct sysmsg sysmsg;
245e4f17
MD
716#endif
717 union usrmsg usrmsg;
984263bc
MD
718 int who; char who_[PAD_(int)];
719 struct rusage * rusage; char rusage_[PAD_(struct rusage *)];
720};
721struct getsockopt_args {
245e4f17 722#ifdef _KERNEL
df2244e3 723 struct sysmsg sysmsg;
245e4f17
MD
724#endif
725 union usrmsg usrmsg;
984263bc
MD
726 int s; char s_[PAD_(int)];
727 int level; char level_[PAD_(int)];
728 int name; char name_[PAD_(int)];
729 caddr_t val; char val_[PAD_(caddr_t)];
730 int * avalsize; char avalsize_[PAD_(int *)];
731};
732struct readv_args {
245e4f17 733#ifdef _KERNEL
df2244e3 734 struct sysmsg sysmsg;
245e4f17
MD
735#endif
736 union usrmsg usrmsg;
984263bc
MD
737 int fd; char fd_[PAD_(int)];
738 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
739 u_int iovcnt; char iovcnt_[PAD_(u_int)];
740};
741struct writev_args {
245e4f17 742#ifdef _KERNEL
df2244e3 743 struct sysmsg sysmsg;
245e4f17
MD
744#endif
745 union usrmsg usrmsg;
984263bc
MD
746 int fd; char fd_[PAD_(int)];
747 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
748 u_int iovcnt; char iovcnt_[PAD_(u_int)];
749};
750struct settimeofday_args {
245e4f17 751#ifdef _KERNEL
df2244e3 752 struct sysmsg sysmsg;
245e4f17
MD
753#endif
754 union usrmsg usrmsg;
984263bc
MD
755 struct timeval * tv; char tv_[PAD_(struct timeval *)];
756 struct timezone * tzp; char tzp_[PAD_(struct timezone *)];
757};
758struct fchown_args {
245e4f17 759#ifdef _KERNEL
df2244e3 760 struct sysmsg sysmsg;
245e4f17
MD
761#endif
762 union usrmsg usrmsg;
984263bc
MD
763 int fd; char fd_[PAD_(int)];
764 int uid; char uid_[PAD_(int)];
765 int gid; char gid_[PAD_(int)];
766};
767struct fchmod_args {
245e4f17 768#ifdef _KERNEL
df2244e3 769 struct sysmsg sysmsg;
245e4f17
MD
770#endif
771 union usrmsg usrmsg;
984263bc
MD
772 int fd; char fd_[PAD_(int)];
773 int mode; char mode_[PAD_(int)];
774};
775struct setreuid_args {
245e4f17 776#ifdef _KERNEL
df2244e3 777 struct sysmsg sysmsg;
245e4f17
MD
778#endif
779 union usrmsg usrmsg;
984263bc
MD
780 int ruid; char ruid_[PAD_(int)];
781 int euid; char euid_[PAD_(int)];
782};
783struct setregid_args {
245e4f17 784#ifdef _KERNEL
df2244e3 785 struct sysmsg sysmsg;
245e4f17
MD
786#endif
787 union usrmsg usrmsg;
984263bc
MD
788 int rgid; char rgid_[PAD_(int)];
789 int egid; char egid_[PAD_(int)];
790};
791struct rename_args {
245e4f17 792#ifdef _KERNEL
df2244e3 793 struct sysmsg sysmsg;
245e4f17
MD
794#endif
795 union usrmsg usrmsg;
984263bc
MD
796 char * from; char from_[PAD_(char *)];
797 char * to; char to_[PAD_(char *)];
798};
799struct flock_args {
245e4f17 800#ifdef _KERNEL
df2244e3 801 struct sysmsg sysmsg;
245e4f17
MD
802#endif
803 union usrmsg usrmsg;
984263bc
MD
804 int fd; char fd_[PAD_(int)];
805 int how; char how_[PAD_(int)];
806};
807struct mkfifo_args {
245e4f17 808#ifdef _KERNEL
df2244e3 809 struct sysmsg sysmsg;
245e4f17
MD
810#endif
811 union usrmsg usrmsg;
984263bc
MD
812 char * path; char path_[PAD_(char *)];
813 int mode; char mode_[PAD_(int)];
814};
815struct sendto_args {
245e4f17 816#ifdef _KERNEL
df2244e3 817 struct sysmsg sysmsg;
245e4f17
MD
818#endif
819 union usrmsg usrmsg;
984263bc
MD
820 int s; char s_[PAD_(int)];
821 caddr_t buf; char buf_[PAD_(caddr_t)];
822 size_t len; char len_[PAD_(size_t)];
823 int flags; char flags_[PAD_(int)];
824 caddr_t to; char to_[PAD_(caddr_t)];
825 int tolen; char tolen_[PAD_(int)];
826};
827struct shutdown_args {
245e4f17 828#ifdef _KERNEL
df2244e3 829 struct sysmsg sysmsg;
245e4f17
MD
830#endif
831 union usrmsg usrmsg;
984263bc
MD
832 int s; char s_[PAD_(int)];
833 int how; char how_[PAD_(int)];
834};
835struct socketpair_args {
245e4f17 836#ifdef _KERNEL
df2244e3 837 struct sysmsg sysmsg;
245e4f17
MD
838#endif
839 union usrmsg usrmsg;
984263bc
MD
840 int domain; char domain_[PAD_(int)];
841 int type; char type_[PAD_(int)];
842 int protocol; char protocol_[PAD_(int)];
843 int * rsv; char rsv_[PAD_(int *)];
844};
845struct mkdir_args {
245e4f17 846#ifdef _KERNEL
df2244e3 847 struct sysmsg sysmsg;
245e4f17
MD
848#endif
849 union usrmsg usrmsg;
984263bc
MD
850 char * path; char path_[PAD_(char *)];
851 int mode; char mode_[PAD_(int)];
852};
853struct rmdir_args {
245e4f17 854#ifdef _KERNEL
df2244e3 855 struct sysmsg sysmsg;
245e4f17
MD
856#endif
857 union usrmsg usrmsg;
984263bc
MD
858 char * path; char path_[PAD_(char *)];
859};
860struct utimes_args {
245e4f17 861#ifdef _KERNEL
df2244e3 862 struct sysmsg sysmsg;
245e4f17
MD
863#endif
864 union usrmsg usrmsg;
984263bc
MD
865 char * path; char path_[PAD_(char *)];
866 struct timeval * tptr; char tptr_[PAD_(struct timeval *)];
867};
868struct adjtime_args {
245e4f17 869#ifdef _KERNEL
df2244e3 870 struct sysmsg sysmsg;
245e4f17
MD
871#endif
872 union usrmsg usrmsg;
984263bc
MD
873 struct timeval * delta; char delta_[PAD_(struct timeval *)];
874 struct timeval * olddelta; char olddelta_[PAD_(struct timeval *)];
875};
876struct ogethostid_args {
245e4f17 877#ifdef _KERNEL
df2244e3 878 struct sysmsg sysmsg;
245e4f17
MD
879#endif
880 union usrmsg usrmsg;
984263bc
MD
881 register_t dummy;
882};
883struct setsid_args {
245e4f17 884#ifdef _KERNEL
df2244e3 885 struct sysmsg sysmsg;
245e4f17
MD
886#endif
887 union usrmsg usrmsg;
984263bc
MD
888 register_t dummy;
889};
890struct quotactl_args {
245e4f17 891#ifdef _KERNEL
df2244e3 892 struct sysmsg sysmsg;
245e4f17
MD
893#endif
894 union usrmsg usrmsg;
984263bc
MD
895 char * path; char path_[PAD_(char *)];
896 int cmd; char cmd_[PAD_(int)];
897 int uid; char uid_[PAD_(int)];
898 caddr_t arg; char arg_[PAD_(caddr_t)];
899};
900struct oquota_args {
245e4f17 901#ifdef _KERNEL
df2244e3 902 struct sysmsg sysmsg;
245e4f17
MD
903#endif
904 union usrmsg usrmsg;
984263bc
MD
905 register_t dummy;
906};
907struct nfssvc_args {
245e4f17 908#ifdef _KERNEL
df2244e3 909 struct sysmsg sysmsg;
245e4f17
MD
910#endif
911 union usrmsg usrmsg;
984263bc
MD
912 int flag; char flag_[PAD_(int)];
913 caddr_t argp; char argp_[PAD_(caddr_t)];
914};
915struct statfs_args {
245e4f17 916#ifdef _KERNEL
df2244e3 917 struct sysmsg sysmsg;
245e4f17
MD
918#endif
919 union usrmsg usrmsg;
984263bc
MD
920 char * path; char path_[PAD_(char *)];
921 struct statfs * buf; char buf_[PAD_(struct statfs *)];
922};
923struct fstatfs_args {
245e4f17 924#ifdef _KERNEL
df2244e3 925 struct sysmsg sysmsg;
245e4f17
MD
926#endif
927 union usrmsg usrmsg;
984263bc
MD
928 int fd; char fd_[PAD_(int)];
929 struct statfs * buf; char buf_[PAD_(struct statfs *)];
930};
931struct getfh_args {
245e4f17 932#ifdef _KERNEL
df2244e3 933 struct sysmsg sysmsg;
245e4f17
MD
934#endif
935 union usrmsg usrmsg;
984263bc
MD
936 char * fname; char fname_[PAD_(char *)];
937 struct fhandle * fhp; char fhp_[PAD_(struct fhandle *)];
938};
939struct getdomainname_args {
245e4f17 940#ifdef _KERNEL
df2244e3 941 struct sysmsg sysmsg;
245e4f17
MD
942#endif
943 union usrmsg usrmsg;
984263bc
MD
944 char * domainname; char domainname_[PAD_(char *)];
945 int len; char len_[PAD_(int)];
946};
947struct setdomainname_args {
245e4f17 948#ifdef _KERNEL
df2244e3 949 struct sysmsg sysmsg;
245e4f17
MD
950#endif
951 union usrmsg usrmsg;
984263bc
MD
952 char * domainname; char domainname_[PAD_(char *)];
953 int len; char len_[PAD_(int)];
954};
955struct uname_args {
245e4f17 956#ifdef _KERNEL
df2244e3 957 struct sysmsg sysmsg;
245e4f17
MD
958#endif
959 union usrmsg usrmsg;
984263bc
MD
960 struct utsname * name; char name_[PAD_(struct utsname *)];
961};
962struct sysarch_args {
245e4f17 963#ifdef _KERNEL
df2244e3 964 struct sysmsg sysmsg;
245e4f17
MD
965#endif
966 union usrmsg usrmsg;
984263bc
MD
967 int op; char op_[PAD_(int)];
968 char * parms; char parms_[PAD_(char *)];
969};
970struct rtprio_args {
245e4f17 971#ifdef _KERNEL
df2244e3 972 struct sysmsg sysmsg;
245e4f17
MD
973#endif
974 union usrmsg usrmsg;
984263bc
MD
975 int function; char function_[PAD_(int)];
976 pid_t pid; char pid_[PAD_(pid_t)];
977 struct rtprio * rtp; char rtp_[PAD_(struct rtprio *)];
978};
979struct semsys_args {
245e4f17 980#ifdef _KERNEL
df2244e3 981 struct sysmsg sysmsg;
245e4f17
MD
982#endif
983 union usrmsg usrmsg;
984263bc
MD
984 int which; char which_[PAD_(int)];
985 int a2; char a2_[PAD_(int)];
986 int a3; char a3_[PAD_(int)];
987 int a4; char a4_[PAD_(int)];
988 int a5; char a5_[PAD_(int)];
989};
990struct msgsys_args {
245e4f17 991#ifdef _KERNEL
df2244e3 992 struct sysmsg sysmsg;
245e4f17
MD
993#endif
994 union usrmsg usrmsg;
984263bc
MD
995 int which; char which_[PAD_(int)];
996 int a2; char a2_[PAD_(int)];
997 int a3; char a3_[PAD_(int)];
998 int a4; char a4_[PAD_(int)];
999 int a5; char a5_[PAD_(int)];
1000 int a6; char a6_[PAD_(int)];
1001};
1002struct shmsys_args {
245e4f17 1003#ifdef _KERNEL
df2244e3 1004 struct sysmsg sysmsg;
245e4f17
MD
1005#endif
1006 union usrmsg usrmsg;
984263bc
MD
1007 int which; char which_[PAD_(int)];
1008 int a2; char a2_[PAD_(int)];
1009 int a3; char a3_[PAD_(int)];
1010 int a4; char a4_[PAD_(int)];
1011};
1012struct pread_args {
245e4f17 1013#ifdef _KERNEL
df2244e3 1014 struct sysmsg sysmsg;
245e4f17
MD
1015#endif
1016 union usrmsg usrmsg;
984263bc
MD
1017 int fd; char fd_[PAD_(int)];
1018 void * buf; char buf_[PAD_(void *)];
1019 size_t nbyte; char nbyte_[PAD_(size_t)];
1020 int pad; char pad_[PAD_(int)];
1021 off_t offset; char offset_[PAD_(off_t)];
1022};
1023struct pwrite_args {
245e4f17 1024#ifdef _KERNEL
df2244e3 1025 struct sysmsg sysmsg;
245e4f17
MD
1026#endif
1027 union usrmsg usrmsg;
984263bc
MD
1028 int fd; char fd_[PAD_(int)];
1029 const void * buf; char buf_[PAD_(const void *)];
1030 size_t nbyte; char nbyte_[PAD_(size_t)];
1031 int pad; char pad_[PAD_(int)];
1032 off_t offset; char offset_[PAD_(off_t)];
1033};
1034struct ntp_adjtime_args {
245e4f17 1035#ifdef _KERNEL
df2244e3 1036 struct sysmsg sysmsg;
245e4f17
MD
1037#endif
1038 union usrmsg usrmsg;
984263bc
MD
1039 struct timex * tp; char tp_[PAD_(struct timex *)];
1040};
1041struct setgid_args {
245e4f17 1042#ifdef _KERNEL
df2244e3 1043 struct sysmsg sysmsg;
245e4f17
MD
1044#endif
1045 union usrmsg usrmsg;
984263bc
MD
1046 gid_t gid; char gid_[PAD_(gid_t)];
1047};
1048struct setegid_args {
245e4f17 1049#ifdef _KERNEL
df2244e3 1050 struct sysmsg sysmsg;
245e4f17
MD
1051#endif
1052 union usrmsg usrmsg;
984263bc
MD
1053 gid_t egid; char egid_[PAD_(gid_t)];
1054};
1055struct seteuid_args {
245e4f17 1056#ifdef _KERNEL
df2244e3 1057 struct sysmsg sysmsg;
245e4f17
MD
1058#endif
1059 union usrmsg usrmsg;
984263bc
MD
1060 uid_t euid; char euid_[PAD_(uid_t)];
1061};
1062struct stat_args {
245e4f17 1063#ifdef _KERNEL
df2244e3 1064 struct sysmsg sysmsg;
245e4f17
MD
1065#endif
1066 union usrmsg usrmsg;
984263bc
MD
1067 char * path; char path_[PAD_(char *)];
1068 struct stat * ub; char ub_[PAD_(struct stat *)];
1069};
1070struct fstat_args {
245e4f17 1071#ifdef _KERNEL
df2244e3 1072 struct sysmsg sysmsg;
245e4f17
MD
1073#endif
1074 union usrmsg usrmsg;
984263bc
MD
1075 int fd; char fd_[PAD_(int)];
1076 struct stat * sb; char sb_[PAD_(struct stat *)];
1077};
1078struct lstat_args {
245e4f17 1079#ifdef _KERNEL
df2244e3 1080 struct sysmsg sysmsg;
245e4f17
MD
1081#endif
1082 union usrmsg usrmsg;
984263bc
MD
1083 char * path; char path_[PAD_(char *)];
1084 struct stat * ub; char ub_[PAD_(struct stat *)];
1085};
1086struct pathconf_args {
245e4f17 1087#ifdef _KERNEL
df2244e3 1088 struct sysmsg sysmsg;
245e4f17
MD
1089#endif
1090 union usrmsg usrmsg;
984263bc
MD
1091 char * path; char path_[PAD_(char *)];
1092 int name; char name_[PAD_(int)];
1093};
1094struct fpathconf_args {
245e4f17 1095#ifdef _KERNEL
df2244e3 1096 struct sysmsg sysmsg;
245e4f17
MD
1097#endif
1098 union usrmsg usrmsg;
984263bc
MD
1099 int fd; char fd_[PAD_(int)];
1100 int name; char name_[PAD_(int)];
1101};
1102struct __getrlimit_args {
245e4f17 1103#ifdef _KERNEL
df2244e3 1104 struct sysmsg sysmsg;
245e4f17
MD
1105#endif
1106 union usrmsg usrmsg;
984263bc
MD
1107 u_int which; char which_[PAD_(u_int)];
1108 struct rlimit * rlp; char rlp_[PAD_(struct rlimit *)];
1109};
1110struct __setrlimit_args {
245e4f17 1111#ifdef _KERNEL
df2244e3 1112 struct sysmsg sysmsg;
245e4f17
MD
1113#endif
1114 union usrmsg usrmsg;
984263bc
MD
1115 u_int which; char which_[PAD_(u_int)];
1116 struct rlimit * rlp; char rlp_[PAD_(struct rlimit *)];
1117};
1118struct getdirentries_args {
245e4f17 1119#ifdef _KERNEL
df2244e3 1120 struct sysmsg sysmsg;
245e4f17
MD
1121#endif
1122 union usrmsg usrmsg;
984263bc
MD
1123 int fd; char fd_[PAD_(int)];
1124 char * buf; char buf_[PAD_(char *)];
1125 u_int count; char count_[PAD_(u_int)];
1126 long * basep; char basep_[PAD_(long *)];
1127};
1128struct mmap_args {
245e4f17 1129#ifdef _KERNEL
df2244e3 1130 struct sysmsg sysmsg;
245e4f17
MD
1131#endif
1132 union usrmsg usrmsg;
984263bc
MD
1133 caddr_t addr; char addr_[PAD_(caddr_t)];
1134 size_t len; char len_[PAD_(size_t)];
1135 int prot; char prot_[PAD_(int)];
1136 int flags; char flags_[PAD_(int)];
1137 int fd; char fd_[PAD_(int)];
1138 int pad; char pad_[PAD_(int)];
1139 off_t pos; char pos_[PAD_(off_t)];
1140};
1141struct lseek_args {
245e4f17 1142#ifdef _KERNEL
df2244e3 1143 struct sysmsg sysmsg;
245e4f17
MD
1144#endif
1145 union usrmsg usrmsg;
984263bc
MD
1146 int fd; char fd_[PAD_(int)];
1147 int pad; char pad_[PAD_(int)];
1148 off_t offset; char offset_[PAD_(off_t)];
1149 int whence; char whence_[PAD_(int)];
1150};
1151struct truncate_args {
245e4f17 1152#ifdef _KERNEL
df2244e3 1153 struct sysmsg sysmsg;
245e4f17
MD
1154#endif
1155 union usrmsg usrmsg;
984263bc
MD
1156 char * path; char path_[PAD_(char *)];
1157 int pad; char pad_[PAD_(int)];
1158 off_t length; char length_[PAD_(off_t)];
1159};
1160struct ftruncate_args {
245e4f17 1161#ifdef _KERNEL
df2244e3 1162 struct sysmsg sysmsg;
245e4f17
MD
1163#endif
1164 union usrmsg usrmsg;
984263bc
MD
1165 int fd; char fd_[PAD_(int)];
1166 int pad; char pad_[PAD_(int)];
1167 off_t length; char length_[PAD_(off_t)];
1168};
1169struct sysctl_args {
245e4f17 1170#ifdef _KERNEL
df2244e3 1171 struct sysmsg sysmsg;
245e4f17
MD
1172#endif
1173 union usrmsg usrmsg;
984263bc
MD
1174 int * name; char name_[PAD_(int *)];
1175 u_int namelen; char namelen_[PAD_(u_int)];
1176 void * old; char old_[PAD_(void *)];
1177 size_t * oldlenp; char oldlenp_[PAD_(size_t *)];
1178 void * new; char new_[PAD_(void *)];
1179 size_t newlen; char newlen_[PAD_(size_t)];
1180};
1181struct mlock_args {
245e4f17 1182#ifdef _KERNEL
df2244e3 1183 struct sysmsg sysmsg;
245e4f17
MD
1184#endif
1185 union usrmsg usrmsg;
984263bc
MD
1186 const void * addr; char addr_[PAD_(const void *)];
1187 size_t len; char len_[PAD_(size_t)];
1188};
1189struct munlock_args {
245e4f17 1190#ifdef _KERNEL
df2244e3 1191 struct sysmsg sysmsg;
245e4f17
MD
1192#endif
1193 union usrmsg usrmsg;
984263bc
MD
1194 const void * addr; char addr_[PAD_(const void *)];
1195 size_t len; char len_[PAD_(size_t)];
1196};
1197struct undelete_args {
245e4f17 1198#ifdef _KERNEL
df2244e3 1199 struct sysmsg sysmsg;
245e4f17
MD
1200#endif
1201 union usrmsg usrmsg;
984263bc
MD
1202 char * path; char path_[PAD_(char *)];
1203};
1204struct futimes_args {
245e4f17 1205#ifdef _KERNEL
df2244e3 1206 struct sysmsg sysmsg;
245e4f17
MD
1207#endif
1208 union usrmsg usrmsg;
984263bc
MD
1209 int fd; char fd_[PAD_(int)];
1210 struct timeval * tptr; char tptr_[PAD_(struct timeval *)];
1211};
1212struct getpgid_args {
245e4f17 1213#ifdef _KERNEL
df2244e3 1214 struct sysmsg sysmsg;
245e4f17
MD
1215#endif
1216 union usrmsg usrmsg;
984263bc
MD
1217 pid_t pid; char pid_[PAD_(pid_t)];
1218};
1219struct poll_args {
245e4f17 1220#ifdef _KERNEL
df2244e3 1221 struct sysmsg sysmsg;
245e4f17
MD
1222#endif
1223 union usrmsg usrmsg;
984263bc
MD
1224 struct pollfd * fds; char fds_[PAD_(struct pollfd *)];
1225 u_int nfds; char nfds_[PAD_(u_int)];
1226 int timeout; char timeout_[PAD_(int)];
1227};
1228struct __semctl_args {
245e4f17 1229#ifdef _KERNEL
df2244e3 1230 struct sysmsg sysmsg;
245e4f17
MD
1231#endif
1232 union usrmsg usrmsg;
984263bc
MD
1233 int semid; char semid_[PAD_(int)];
1234 int semnum; char semnum_[PAD_(int)];
1235 int cmd; char cmd_[PAD_(int)];
1236 union semun * arg; char arg_[PAD_(union semun *)];
1237};
1238struct semget_args {
245e4f17 1239#ifdef _KERNEL
df2244e3 1240 struct sysmsg sysmsg;
245e4f17
MD
1241#endif
1242 union usrmsg usrmsg;
984263bc
MD
1243 key_t key; char key_[PAD_(key_t)];
1244 int nsems; char nsems_[PAD_(int)];
1245 int semflg; char semflg_[PAD_(int)];
1246};
1247struct semop_args {
245e4f17 1248#ifdef _KERNEL
df2244e3 1249 struct sysmsg sysmsg;
245e4f17
MD
1250#endif
1251 union usrmsg usrmsg;
984263bc
MD
1252 int semid; char semid_[PAD_(int)];
1253 struct sembuf * sops; char sops_[PAD_(struct sembuf *)];
1254 u_int nsops; char nsops_[PAD_(u_int)];
1255};
1256struct msgctl_args {
245e4f17 1257#ifdef _KERNEL
df2244e3 1258 struct sysmsg sysmsg;
245e4f17
MD
1259#endif
1260 union usrmsg usrmsg;
984263bc
MD
1261 int msqid; char msqid_[PAD_(int)];
1262 int cmd; char cmd_[PAD_(int)];
1263 struct msqid_ds * buf; char buf_[PAD_(struct msqid_ds *)];
1264};
1265struct msgget_args {
245e4f17 1266#ifdef _KERNEL
df2244e3 1267 struct sysmsg sysmsg;
245e4f17
MD
1268#endif
1269 union usrmsg usrmsg;
984263bc
MD
1270 key_t key; char key_[PAD_(key_t)];
1271 int msgflg; char msgflg_[PAD_(int)];
1272};
1273struct msgsnd_args {
245e4f17 1274#ifdef _KERNEL
df2244e3 1275 struct sysmsg sysmsg;
245e4f17
MD
1276#endif
1277 union usrmsg usrmsg;
984263bc
MD
1278 int msqid; char msqid_[PAD_(int)];
1279 void * msgp; char msgp_[PAD_(void *)];
1280 size_t msgsz; char msgsz_[PAD_(size_t)];
1281 int msgflg; char msgflg_[PAD_(int)];
1282};
1283struct msgrcv_args {
245e4f17 1284#ifdef _KERNEL
df2244e3 1285 struct sysmsg sysmsg;
245e4f17
MD
1286#endif
1287 union usrmsg usrmsg;
984263bc
MD
1288 int msqid; char msqid_[PAD_(int)];
1289 void * msgp; char msgp_[PAD_(void *)];
1290 size_t msgsz; char msgsz_[PAD_(size_t)];
1291 long msgtyp; char msgtyp_[PAD_(long)];
1292 int msgflg; char msgflg_[PAD_(int)];
1293};
1294struct shmat_args {
245e4f17 1295#ifdef _KERNEL
df2244e3 1296 struct sysmsg sysmsg;
245e4f17
MD
1297#endif
1298 union usrmsg usrmsg;
984263bc
MD
1299 int shmid; char shmid_[PAD_(int)];
1300 void * shmaddr; char shmaddr_[PAD_(void *)];
1301 int shmflg; char shmflg_[PAD_(int)];
1302};
1303struct shmctl_args {
245e4f17 1304#ifdef _KERNEL
df2244e3 1305 struct sysmsg sysmsg;
245e4f17
MD
1306#endif
1307 union usrmsg usrmsg;
984263bc
MD
1308 int shmid; char shmid_[PAD_(int)];
1309 int cmd; char cmd_[PAD_(int)];
1310 struct shmid_ds * buf; char buf_[PAD_(struct shmid_ds *)];
1311};
1312struct shmdt_args {
245e4f17 1313#ifdef _KERNEL
df2244e3 1314 struct sysmsg sysmsg;
245e4f17
MD
1315#endif
1316 union usrmsg usrmsg;
984263bc
MD
1317 void * shmaddr; char shmaddr_[PAD_(void *)];
1318};
1319struct shmget_args {
245e4f17 1320#ifdef _KERNEL
df2244e3 1321 struct sysmsg sysmsg;
245e4f17
MD
1322#endif
1323 union usrmsg usrmsg;
984263bc
MD
1324 key_t key; char key_[PAD_(key_t)];
1325 int size; char size_[PAD_(int)];
1326 int shmflg; char shmflg_[PAD_(int)];
1327};
1328struct clock_gettime_args {
245e4f17 1329#ifdef _KERNEL
df2244e3 1330 struct sysmsg sysmsg;
245e4f17
MD
1331#endif
1332 union usrmsg usrmsg;
984263bc
MD
1333 clockid_t clock_id; char clock_id_[PAD_(clockid_t)];
1334 struct timespec * tp; char tp_[PAD_(struct timespec *)];
1335};
1336struct clock_settime_args {
245e4f17 1337#ifdef _KERNEL
df2244e3 1338 struct sysmsg sysmsg;
245e4f17
MD
1339#endif
1340 union usrmsg usrmsg;
984263bc
MD
1341 clockid_t clock_id; char clock_id_[PAD_(clockid_t)];
1342 const struct timespec * tp; char tp_[PAD_(const struct timespec *)];
1343};
1344struct clock_getres_args {
245e4f17 1345#ifdef _KERNEL
df2244e3 1346 struct sysmsg sysmsg;
245e4f17
MD
1347#endif
1348 union usrmsg usrmsg;
984263bc
MD
1349 clockid_t clock_id; char clock_id_[PAD_(clockid_t)];
1350 struct timespec * tp; char tp_[PAD_(struct timespec *)];
1351};
1352struct nanosleep_args {
245e4f17 1353#ifdef _KERNEL
df2244e3 1354 struct sysmsg sysmsg;
245e4f17
MD
1355#endif
1356 union usrmsg usrmsg;
984263bc
MD
1357 const struct timespec * rqtp; char rqtp_[PAD_(const struct timespec *)];
1358 struct timespec * rmtp; char rmtp_[PAD_(struct timespec *)];
1359};
1360struct minherit_args {
245e4f17 1361#ifdef _KERNEL
df2244e3 1362 struct sysmsg sysmsg;
245e4f17
MD
1363#endif
1364 union usrmsg usrmsg;
984263bc
MD
1365 void * addr; char addr_[PAD_(void *)];
1366 size_t len; char len_[PAD_(size_t)];
1367 int inherit; char inherit_[PAD_(int)];
1368};
1369struct rfork_args {
245e4f17 1370#ifdef _KERNEL
df2244e3 1371 struct sysmsg sysmsg;
245e4f17
MD
1372#endif
1373 union usrmsg usrmsg;
984263bc
MD
1374 int flags; char flags_[PAD_(int)];
1375};
1376struct openbsd_poll_args {
245e4f17 1377#ifdef _KERNEL
df2244e3 1378 struct sysmsg sysmsg;
245e4f17
MD
1379#endif
1380 union usrmsg usrmsg;
984263bc
MD
1381 struct pollfd * fds; char fds_[PAD_(struct pollfd *)];
1382 u_int nfds; char nfds_[PAD_(u_int)];
1383 int timeout; char timeout_[PAD_(int)];
1384};
1385struct issetugid_args {
245e4f17 1386#ifdef _KERNEL
df2244e3 1387 struct sysmsg sysmsg;
245e4f17
MD
1388#endif
1389 union usrmsg usrmsg;
984263bc
MD
1390 register_t dummy;
1391};
1392struct lchown_args {
245e4f17 1393#ifdef _KERNEL
df2244e3 1394 struct sysmsg sysmsg;
245e4f17
MD
1395#endif
1396 union usrmsg usrmsg;
984263bc
MD
1397 char * path; char path_[PAD_(char *)];
1398 int uid; char uid_[PAD_(int)];
1399 int gid; char gid_[PAD_(int)];
1400};
1401struct getdents_args {
245e4f17 1402#ifdef _KERNEL
df2244e3 1403 struct sysmsg sysmsg;
245e4f17
MD
1404#endif
1405 union usrmsg usrmsg;
984263bc
MD
1406 int fd; char fd_[PAD_(int)];
1407 char * buf; char buf_[PAD_(char *)];
1408 size_t count; char count_[PAD_(size_t)];
1409};
1410struct lchmod_args {
245e4f17 1411#ifdef _KERNEL
df2244e3 1412 struct sysmsg sysmsg;
245e4f17
MD
1413#endif
1414 union usrmsg usrmsg;
984263bc
MD
1415 char * path; char path_[PAD_(char *)];
1416 mode_t mode; char mode_[PAD_(mode_t)];
1417};
1418struct lutimes_args {
245e4f17 1419#ifdef _KERNEL
df2244e3 1420 struct sysmsg sysmsg;
245e4f17
MD
1421#endif
1422 union usrmsg usrmsg;
984263bc
MD
1423 char * path; char path_[PAD_(char *)];
1424 struct timeval * tptr; char tptr_[PAD_(struct timeval *)];
1425};
1426struct nstat_args {
245e4f17 1427#ifdef _KERNEL
df2244e3 1428 struct sysmsg sysmsg;
245e4f17
MD
1429#endif
1430 union usrmsg usrmsg;
984263bc
MD
1431 char * path; char path_[PAD_(char *)];
1432 struct nstat * ub; char ub_[PAD_(struct nstat *)];
1433};
1434struct nfstat_args {
245e4f17 1435#ifdef _KERNEL
df2244e3 1436 struct sysmsg sysmsg;
245e4f17
MD
1437#endif
1438 union usrmsg usrmsg;
984263bc
MD
1439 int fd; char fd_[PAD_(int)];
1440 struct nstat * sb; char sb_[PAD_(struct nstat *)];
1441};
1442struct nlstat_args {
245e4f17 1443#ifdef _KERNEL
df2244e3 1444 struct sysmsg sysmsg;
245e4f17
MD
1445#endif
1446 union usrmsg usrmsg;
984263bc
MD
1447 char * path; char path_[PAD_(char *)];
1448 struct nstat * ub; char ub_[PAD_(struct nstat *)];
1449};
1450struct fhstatfs_args {
245e4f17 1451#ifdef _KERNEL
df2244e3 1452 struct sysmsg sysmsg;
245e4f17
MD
1453#endif
1454 union usrmsg usrmsg;
984263bc
MD
1455 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
1456 struct statfs * buf; char buf_[PAD_(struct statfs *)];
1457};
1458struct fhopen_args {
245e4f17 1459#ifdef _KERNEL
df2244e3 1460 struct sysmsg sysmsg;
245e4f17
MD
1461#endif
1462 union usrmsg usrmsg;
984263bc
MD
1463 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
1464 int flags; char flags_[PAD_(int)];
1465};
1466struct fhstat_args {
245e4f17 1467#ifdef _KERNEL
df2244e3 1468 struct sysmsg sysmsg;
245e4f17
MD
1469#endif
1470 union usrmsg usrmsg;
984263bc
MD
1471 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
1472 struct stat * sb; char sb_[PAD_(struct stat *)];
1473};
1474struct modnext_args {
245e4f17 1475#ifdef _KERNEL
df2244e3 1476 struct sysmsg sysmsg;
245e4f17
MD
1477#endif
1478 union usrmsg usrmsg;
984263bc
MD
1479 int modid; char modid_[PAD_(int)];
1480};
1481struct modstat_args {
245e4f17 1482#ifdef _KERNEL
df2244e3 1483 struct sysmsg sysmsg;
245e4f17
MD
1484#endif
1485 union usrmsg usrmsg;
984263bc
MD
1486 int modid; char modid_[PAD_(int)];
1487 struct module_stat * stat; char stat_[PAD_(struct module_stat *)];
1488};
1489struct modfnext_args {
245e4f17 1490#ifdef _KERNEL
df2244e3 1491 struct sysmsg sysmsg;
245e4f17
MD
1492#endif
1493 union usrmsg usrmsg;
984263bc
MD
1494 int modid; char modid_[PAD_(int)];
1495};
1496struct modfind_args {
245e4f17 1497#ifdef _KERNEL
df2244e3 1498 struct sysmsg sysmsg;
245e4f17
MD
1499#endif
1500 union usrmsg usrmsg;
984263bc
MD
1501 const char * name; char name_[PAD_(const char *)];
1502};
1503struct kldload_args {
245e4f17 1504#ifdef _KERNEL
df2244e3 1505 struct sysmsg sysmsg;
245e4f17
MD
1506#endif
1507 union usrmsg usrmsg;
984263bc
MD
1508 const char * file; char file_[PAD_(const char *)];
1509};
1510struct kldunload_args {
245e4f17 1511#ifdef _KERNEL
df2244e3 1512 struct sysmsg sysmsg;
245e4f17
MD
1513#endif
1514 union usrmsg usrmsg;
984263bc
MD
1515 int fileid; char fileid_[PAD_(int)];
1516};
1517struct kldfind_args {
245e4f17 1518#ifdef _KERNEL
df2244e3 1519 struct sysmsg sysmsg;
245e4f17
MD
1520#endif
1521 union usrmsg usrmsg;
984263bc
MD
1522 const char * file; char file_[PAD_(const char *)];
1523};
1524struct kldnext_args {
245e4f17 1525#ifdef _KERNEL
df2244e3 1526 struct sysmsg sysmsg;
245e4f17
MD
1527#endif
1528 union usrmsg usrmsg;
984263bc
MD
1529 int fileid; char fileid_[PAD_(int)];
1530};
1531struct kldstat_args {
245e4f17 1532#ifdef _KERNEL
df2244e3 1533 struct sysmsg sysmsg;
245e4f17
MD
1534#endif
1535 union usrmsg usrmsg;
984263bc
MD
1536 int fileid; char fileid_[PAD_(int)];
1537 struct kld_file_stat * stat; char stat_[PAD_(struct kld_file_stat *)];
1538};
1539struct kldfirstmod_args {
245e4f17 1540#ifdef _KERNEL
df2244e3 1541 struct sysmsg sysmsg;
245e4f17
MD
1542#endif
1543 union usrmsg usrmsg;
984263bc
MD
1544 int fileid; char fileid_[PAD_(int)];
1545};
1546struct getsid_args {
245e4f17 1547#ifdef _KERNEL
df2244e3 1548 struct sysmsg sysmsg;
245e4f17
MD
1549#endif
1550 union usrmsg usrmsg;
984263bc
MD
1551 pid_t pid; char pid_[PAD_(pid_t)];
1552};
1553struct setresuid_args {
245e4f17 1554#ifdef _KERNEL
df2244e3 1555 struct sysmsg sysmsg;
245e4f17
MD
1556#endif
1557 union usrmsg usrmsg;
984263bc
MD
1558 uid_t ruid; char ruid_[PAD_(uid_t)];
1559 uid_t euid; char euid_[PAD_(uid_t)];
1560 uid_t suid; char suid_[PAD_(uid_t)];
1561};
1562struct setresgid_args {
245e4f17 1563#ifdef _KERNEL
df2244e3 1564 struct sysmsg sysmsg;
245e4f17
MD
1565#endif
1566 union usrmsg usrmsg;
984263bc
MD
1567 gid_t rgid; char rgid_[PAD_(gid_t)];
1568 gid_t egid; char egid_[PAD_(gid_t)];
1569 gid_t sgid; char sgid_[PAD_(gid_t)];
1570};
1571struct aio_return_args {
245e4f17 1572#ifdef _KERNEL
df2244e3 1573 struct sysmsg sysmsg;
245e4f17
MD
1574#endif
1575 union usrmsg usrmsg;
984263bc
MD
1576 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1577};
1578struct aio_suspend_args {
245e4f17 1579#ifdef _KERNEL
df2244e3 1580 struct sysmsg sysmsg;
245e4f17
MD
1581#endif
1582 union usrmsg usrmsg;
984263bc
MD
1583 struct aiocb *const * aiocbp; char aiocbp_[PAD_(struct aiocb *const *)];
1584 int nent; char nent_[PAD_(int)];
1585 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1586};
1587struct aio_cancel_args {
245e4f17 1588#ifdef _KERNEL
df2244e3 1589 struct sysmsg sysmsg;
245e4f17
MD
1590#endif
1591 union usrmsg usrmsg;
984263bc
MD
1592 int fd; char fd_[PAD_(int)];
1593 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1594};
1595struct aio_error_args {
245e4f17 1596#ifdef _KERNEL
df2244e3 1597 struct sysmsg sysmsg;
245e4f17
MD
1598#endif
1599 union usrmsg usrmsg;
984263bc
MD
1600 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1601};
1602struct aio_read_args {
245e4f17 1603#ifdef _KERNEL
df2244e3 1604 struct sysmsg sysmsg;
245e4f17
MD
1605#endif
1606 union usrmsg usrmsg;
984263bc
MD
1607 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1608};
1609struct aio_write_args {
245e4f17 1610#ifdef _KERNEL
df2244e3 1611 struct sysmsg sysmsg;
245e4f17
MD
1612#endif
1613 union usrmsg usrmsg;
984263bc
MD
1614 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1615};
1616struct lio_listio_args {
245e4f17 1617#ifdef _KERNEL
df2244e3 1618 struct sysmsg sysmsg;
245e4f17
MD
1619#endif
1620 union usrmsg usrmsg;
984263bc
MD
1621 int mode; char mode_[PAD_(int)];
1622 struct aiocb *const * acb_list; char acb_list_[PAD_(struct aiocb *const *)];
1623 int nent; char nent_[PAD_(int)];
1624 struct sigevent * sig; char sig_[PAD_(struct sigevent *)];
1625};
1626struct yield_args {
245e4f17 1627#ifdef _KERNEL
df2244e3 1628 struct sysmsg sysmsg;
245e4f17
MD
1629#endif
1630 union usrmsg usrmsg;
984263bc
MD
1631 register_t dummy;
1632};
1633struct thr_sleep_args {
245e4f17 1634#ifdef _KERNEL
df2244e3 1635 struct sysmsg sysmsg;
245e4f17
MD
1636#endif
1637 union usrmsg usrmsg;
984263bc
MD
1638 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1639};
1640struct thr_wakeup_args {
245e4f17 1641#ifdef _KERNEL
df2244e3 1642 struct sysmsg sysmsg;
245e4f17
MD
1643#endif
1644 union usrmsg usrmsg;
984263bc
MD
1645 pid_t pid; char pid_[PAD_(pid_t)];
1646};
1647struct mlockall_args {
245e4f17 1648#ifdef _KERNEL
df2244e3 1649 struct sysmsg sysmsg;
245e4f17
MD
1650#endif
1651 union usrmsg usrmsg;
984263bc
MD
1652 int how; char how_[PAD_(int)];
1653};
1654struct munlockall_args {
245e4f17 1655#ifdef _KERNEL
df2244e3 1656 struct sysmsg sysmsg;
245e4f17
MD
1657#endif
1658 union usrmsg usrmsg;
984263bc
MD
1659 register_t dummy;
1660};
1661struct __getcwd_args {
245e4f17 1662#ifdef _KERNEL
df2244e3 1663 struct sysmsg sysmsg;
245e4f17
MD
1664#endif
1665 union usrmsg usrmsg;
984263bc
MD
1666 u_char * buf; char buf_[PAD_(u_char *)];
1667 u_int buflen; char buflen_[PAD_(u_int)];
1668};
1669struct sched_setparam_args {
245e4f17 1670#ifdef _KERNEL
df2244e3 1671 struct sysmsg sysmsg;
245e4f17
MD
1672#endif
1673 union usrmsg usrmsg;
984263bc
MD
1674 pid_t pid; char pid_[PAD_(pid_t)];
1675 const struct sched_param * param; char param_[PAD_(const struct sched_param *)];
1676};
1677struct sched_getparam_args {
245e4f17 1678#ifdef _KERNEL
df2244e3 1679 struct sysmsg sysmsg;
245e4f17
MD
1680#endif
1681 union usrmsg usrmsg;
984263bc
MD
1682 pid_t pid; char pid_[PAD_(pid_t)];
1683 struct sched_param * param; char param_[PAD_(struct sched_param *)];
1684};
1685struct sched_setscheduler_args {
245e4f17 1686#ifdef _KERNEL
df2244e3 1687 struct sysmsg sysmsg;
245e4f17
MD
1688#endif
1689 union usrmsg usrmsg;
984263bc
MD
1690 pid_t pid; char pid_[PAD_(pid_t)];
1691 int policy; char policy_[PAD_(int)];
1692 const struct sched_param * param; char param_[PAD_(const struct sched_param *)];
1693};
1694struct sched_getscheduler_args {
245e4f17 1695#ifdef _KERNEL
df2244e3 1696 struct sysmsg sysmsg;
245e4f17
MD
1697#endif
1698 union usrmsg usrmsg;
984263bc
MD
1699 pid_t pid; char pid_[PAD_(pid_t)];
1700};
1701struct sched_yield_args {
245e4f17 1702#ifdef _KERNEL
df2244e3 1703 struct sysmsg sysmsg;
245e4f17
MD
1704#endif
1705 union usrmsg usrmsg;
984263bc
MD
1706 register_t dummy;
1707};
1708struct sched_get_priority_max_args {
245e4f17 1709#ifdef _KERNEL
df2244e3 1710 struct sysmsg sysmsg;
245e4f17
MD
1711#endif
1712 union usrmsg usrmsg;
984263bc
MD
1713 int policy; char policy_[PAD_(int)];
1714};
1715struct sched_get_priority_min_args {
245e4f17 1716#ifdef _KERNEL
df2244e3 1717 struct sysmsg sysmsg;
245e4f17
MD
1718#endif
1719 union usrmsg usrmsg;
984263bc
MD
1720 int policy; char policy_[PAD_(int)];
1721};
1722struct sched_rr_get_interval_args {
245e4f17 1723#ifdef _KERNEL
df2244e3 1724 struct sysmsg sysmsg;
245e4f17
MD
1725#endif
1726 union usrmsg usrmsg;
984263bc
MD
1727 pid_t pid; char pid_[PAD_(pid_t)];
1728 struct timespec * interval; char interval_[PAD_(struct timespec *)];
1729};
1730struct utrace_args {
245e4f17 1731#ifdef _KERNEL
df2244e3 1732 struct sysmsg sysmsg;
245e4f17
MD
1733#endif
1734 union usrmsg usrmsg;
984263bc
MD
1735 const void * addr; char addr_[PAD_(const void *)];
1736 size_t len; char len_[PAD_(size_t)];
1737};
1738struct kldsym_args {
245e4f17 1739#ifdef _KERNEL
df2244e3 1740 struct sysmsg sysmsg;
245e4f17
MD
1741#endif
1742 union usrmsg usrmsg;
984263bc
MD
1743 int fileid; char fileid_[PAD_(int)];
1744 int cmd; char cmd_[PAD_(int)];
1745 void * data; char data_[PAD_(void *)];
1746};
1747struct jail_args {
245e4f17 1748#ifdef _KERNEL
df2244e3 1749 struct sysmsg sysmsg;
245e4f17
MD
1750#endif
1751 union usrmsg usrmsg;
984263bc
MD
1752 struct jail * jail; char jail_[PAD_(struct jail *)];
1753};
1754struct sigprocmask_args {
245e4f17 1755#ifdef _KERNEL
df2244e3 1756 struct sysmsg sysmsg;
245e4f17
MD
1757#endif
1758 union usrmsg usrmsg;
984263bc
MD
1759 int how; char how_[PAD_(int)];
1760 const sigset_t * set; char set_[PAD_(const sigset_t *)];
1761 sigset_t * oset; char oset_[PAD_(sigset_t *)];
1762};
1763struct sigsuspend_args {
245e4f17 1764#ifdef _KERNEL
df2244e3 1765 struct sysmsg sysmsg;
245e4f17
MD
1766#endif
1767 union usrmsg usrmsg;
984263bc
MD
1768 const sigset_t * sigmask; char sigmask_[PAD_(const sigset_t *)];
1769};
1770struct sigaction_args {
245e4f17 1771#ifdef _KERNEL
df2244e3 1772 struct sysmsg sysmsg;
245e4f17
MD
1773#endif
1774 union usrmsg usrmsg;
984263bc
MD
1775 int sig; char sig_[PAD_(int)];
1776 const struct sigaction * act; char act_[PAD_(const struct sigaction *)];
1777 struct sigaction * oact; char oact_[PAD_(struct sigaction *)];
1778};
1779struct sigpending_args {
245e4f17 1780#ifdef _KERNEL
df2244e3 1781 struct sysmsg sysmsg;
245e4f17
MD
1782#endif
1783 union usrmsg usrmsg;
984263bc
MD
1784 sigset_t * set; char set_[PAD_(sigset_t *)];
1785};
1786struct sigreturn_args {
245e4f17 1787#ifdef _KERNEL
df2244e3 1788 struct sysmsg sysmsg;
245e4f17
MD
1789#endif
1790 union usrmsg usrmsg;
984263bc
MD
1791 ucontext_t * sigcntxp; char sigcntxp_[PAD_(ucontext_t *)];
1792};
3a59f0f7
DX
1793struct sigtimedwait_args {
1794#ifdef _KERNEL
1795 struct sysmsg sysmsg;
1796#endif
1797 union usrmsg usrmsg;
1798 const sigset_t * set; char set_[PAD_(const sigset_t *)];
1799 siginfo_t * info; char info_[PAD_(siginfo_t *)];
1800 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1801};
1802struct sigwaitinfo_args {
1803#ifdef _KERNEL
1804 struct sysmsg sysmsg;
1805#endif
1806 union usrmsg usrmsg;
1807 const sigset_t * set; char set_[PAD_(const sigset_t *)];
1808 siginfo_t * info; char info_[PAD_(siginfo_t *)];
1809};
984263bc 1810struct __acl_get_file_args {
245e4f17 1811#ifdef _KERNEL
df2244e3 1812 struct sysmsg sysmsg;
245e4f17
MD
1813#endif
1814 union usrmsg usrmsg;
984263bc
MD
1815 const char * path; char path_[PAD_(const char *)];
1816 acl_type_t type; char type_[PAD_(acl_type_t)];
1817 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1818};
1819struct __acl_set_file_args {
245e4f17 1820#ifdef _KERNEL
df2244e3 1821 struct sysmsg sysmsg;
245e4f17
MD
1822#endif
1823 union usrmsg usrmsg;
984263bc
MD
1824 const char * path; char path_[PAD_(const char *)];
1825 acl_type_t type; char type_[PAD_(acl_type_t)];
1826 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1827};
1828struct __acl_get_fd_args {
245e4f17 1829#ifdef _KERNEL
df2244e3 1830 struct sysmsg sysmsg;
245e4f17
MD
1831#endif
1832 union usrmsg usrmsg;
984263bc
MD
1833 int filedes; char filedes_[PAD_(int)];
1834 acl_type_t type; char type_[PAD_(acl_type_t)];
1835 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1836};
1837struct __acl_set_fd_args {
245e4f17 1838#ifdef _KERNEL
df2244e3 1839 struct sysmsg sysmsg;
245e4f17
MD
1840#endif
1841 union usrmsg usrmsg;
984263bc
MD
1842 int filedes; char filedes_[PAD_(int)];
1843 acl_type_t type; char type_[PAD_(acl_type_t)];
1844 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1845};
1846struct __acl_delete_file_args {
245e4f17 1847#ifdef _KERNEL
df2244e3 1848 struct sysmsg sysmsg;
245e4f17
MD
1849#endif
1850 union usrmsg usrmsg;
984263bc
MD
1851 const char * path; char path_[PAD_(const char *)];
1852 acl_type_t type; char type_[PAD_(acl_type_t)];
1853};
1854struct __acl_delete_fd_args {
245e4f17 1855#ifdef _KERNEL
df2244e3 1856 struct sysmsg sysmsg;
245e4f17
MD
1857#endif
1858 union usrmsg usrmsg;
984263bc
MD
1859 int filedes; char filedes_[PAD_(int)];
1860 acl_type_t type; char type_[PAD_(acl_type_t)];
1861};
1862struct __acl_aclcheck_file_args {
245e4f17 1863#ifdef _KERNEL
df2244e3 1864 struct sysmsg sysmsg;
245e4f17
MD
1865#endif
1866 union usrmsg usrmsg;
984263bc
MD
1867 const char * path; char path_[PAD_(const char *)];
1868 acl_type_t type; char type_[PAD_(acl_type_t)];
1869 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1870};
1871struct __acl_aclcheck_fd_args {
245e4f17 1872#ifdef _KERNEL
df2244e3 1873 struct sysmsg sysmsg;
245e4f17
MD
1874#endif
1875 union usrmsg usrmsg;
984263bc
MD
1876 int filedes; char filedes_[PAD_(int)];
1877 acl_type_t type; char type_[PAD_(acl_type_t)];
1878 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1879};
1880struct extattrctl_args {
245e4f17 1881#ifdef _KERNEL
df2244e3 1882 struct sysmsg sysmsg;
245e4f17
MD
1883#endif
1884 union usrmsg usrmsg;
984263bc
MD
1885 const char * path; char path_[PAD_(const char *)];
1886 int cmd; char cmd_[PAD_(int)];
1887 const char * attrname; char attrname_[PAD_(const char *)];
1888 char * arg; char arg_[PAD_(char *)];
1889};
1890struct extattr_set_file_args {
245e4f17 1891#ifdef _KERNEL
df2244e3 1892 struct sysmsg sysmsg;
245e4f17
MD
1893#endif
1894 union usrmsg usrmsg;
984263bc
MD
1895 const char * path; char path_[PAD_(const char *)];
1896 const char * attrname; char attrname_[PAD_(const char *)];
1897 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
1898 unsigned iovcnt; char iovcnt_[PAD_(unsigned)];
1899};
1900struct extattr_get_file_args {
245e4f17 1901#ifdef _KERNEL
df2244e3 1902 struct sysmsg sysmsg;
245e4f17
MD
1903#endif
1904 union usrmsg usrmsg;
984263bc
MD
1905 const char * path; char path_[PAD_(const char *)];
1906 const char * attrname; char attrname_[PAD_(const char *)];
1907 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
1908 unsigned iovcnt; char iovcnt_[PAD_(unsigned)];
1909};
1910struct extattr_delete_file_args {
245e4f17 1911#ifdef _KERNEL
df2244e3 1912 struct sysmsg sysmsg;
245e4f17
MD
1913#endif
1914 union usrmsg usrmsg;
984263bc
MD
1915 const char * path; char path_[PAD_(const char *)];
1916 const char * attrname; char attrname_[PAD_(const char *)];
1917};
1918struct aio_waitcomplete_args {
245e4f17 1919#ifdef _KERNEL
df2244e3 1920 struct sysmsg sysmsg;
245e4f17
MD
1921#endif
1922 union usrmsg usrmsg;
984263bc
MD
1923 struct aiocb ** aiocbp; char aiocbp_[PAD_(struct aiocb **)];
1924 struct timespec * timeout; char timeout_[PAD_(struct timespec *)];
1925};
1926struct getresuid_args {
245e4f17 1927#ifdef _KERNEL
df2244e3 1928 struct sysmsg sysmsg;
245e4f17
MD
1929#endif
1930 union usrmsg usrmsg;
984263bc
MD
1931 uid_t * ruid; char ruid_[PAD_(uid_t *)];
1932 uid_t * euid; char euid_[PAD_(uid_t *)];
1933 uid_t * suid; char suid_[PAD_(uid_t *)];
1934};
1935struct getresgid_args {
245e4f17 1936#ifdef _KERNEL
df2244e3 1937 struct sysmsg sysmsg;
245e4f17
MD
1938#endif
1939 union usrmsg usrmsg;
984263bc
MD
1940 gid_t * rgid; char rgid_[PAD_(gid_t *)];
1941 gid_t * egid; char egid_[PAD_(gid_t *)];
1942 gid_t * sgid; char sgid_[PAD_(gid_t *)];
1943};
1944struct kqueue_args {
245e4f17 1945#ifdef _KERNEL
df2244e3 1946 struct sysmsg sysmsg;
245e4f17
MD
1947#endif
1948 union usrmsg usrmsg;
984263bc
MD
1949 register_t dummy;
1950};
1951struct kevent_args {
245e4f17 1952#ifdef _KERNEL
df2244e3 1953 struct sysmsg sysmsg;
245e4f17
MD
1954#endif
1955 union usrmsg usrmsg;
984263bc
MD
1956 int fd; char fd_[PAD_(int)];
1957 const struct kevent * changelist; char changelist_[PAD_(const struct kevent *)];
1958 int nchanges; char nchanges_[PAD_(int)];
1959 struct kevent * eventlist; char eventlist_[PAD_(struct kevent *)];
1960 int nevents; char nevents_[PAD_(int)];
1961 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1962};
1963struct sendfile_args {
245e4f17 1964#ifdef _KERNEL
df2244e3 1965 struct sysmsg sysmsg;
245e4f17
MD
1966#endif
1967 union usrmsg usrmsg;
984263bc
MD
1968 int fd; char fd_[PAD_(int)];
1969 int s; char s_[PAD_(int)];
1970 off_t offset; char offset_[PAD_(off_t)];
1971 size_t nbytes; char nbytes_[PAD_(size_t)];
1972 struct sf_hdtr * hdtr; char hdtr_[PAD_(struct sf_hdtr *)];
1973 off_t * sbytes; char sbytes_[PAD_(off_t *)];
1974 int flags; char flags_[PAD_(int)];
1975};
98a7f915
MD
1976struct varsym_set_args {
1977#ifdef _KERNEL
df2244e3 1978 struct sysmsg sysmsg;
98a7f915
MD
1979#endif
1980 union usrmsg usrmsg;
1981 int level; char level_[PAD_(int)];
1982 const char * name; char name_[PAD_(const char *)];
1983 const char * data; char data_[PAD_(const char *)];
1984};
1985struct varsym_get_args {
1986#ifdef _KERNEL
df2244e3 1987 struct sysmsg sysmsg;
98a7f915
MD
1988#endif
1989 union usrmsg usrmsg;
1990 int mask; char mask_[PAD_(int)];
1991 const char * wild; char wild_[PAD_(const char *)];
1992 char * buf; char buf_[PAD_(char *)];
1993 int bufsize; char bufsize_[PAD_(int)];
1994};
0a004aa2
MD
1995struct varsym_list_args {
1996#ifdef _KERNEL
df2244e3 1997 struct sysmsg sysmsg;
0a004aa2
MD
1998#endif
1999 union usrmsg usrmsg;
2000 int level; char level_[PAD_(int)];
2001 char * buf; char buf_[PAD_(char *)];
2002 int maxsize; char maxsize_[PAD_(int)];
2003 int * marker; char marker_[PAD_(int *)];
2004};
a722be49
MD
2005struct upc_register_args {
2006#ifdef _KERNEL
2007 struct sysmsg sysmsg;
2008#endif
2009 union usrmsg usrmsg;
2010 struct upcall * upc; char upc_[PAD_(struct upcall *)];
2011 void * ctxfunc; char ctxfunc_[PAD_(void *)];
2012 void * func; char func_[PAD_(void *)];
2013 void * data; char data_[PAD_(void *)];
2014};
2015struct upc_control_args {
2016#ifdef _KERNEL
2017 struct sysmsg sysmsg;
2018#endif
2019 union usrmsg usrmsg;
2020 int cmd; char cmd_[PAD_(int)];
2021 int upcid; char upcid_[PAD_(int)];
2022 void * data; char data_[PAD_(void *)];
2023};
1bc8e992
MD
2024struct caps_sys_service_args {
2025#ifdef _KERNEL
2026 struct sysmsg sysmsg;
2027#endif
2028 union usrmsg usrmsg;
2029 const char * name; char name_[PAD_(const char *)];
2030 uid_t uid; char uid_[PAD_(uid_t)];
2031 gid_t gid; char gid_[PAD_(gid_t)];
2032 int upcid; char upcid_[PAD_(int)];
2033 int flags; char flags_[PAD_(int)];
2034};
2035struct caps_sys_client_args {
2036#ifdef _KERNEL
2037 struct sysmsg sysmsg;
2038#endif
2039 union usrmsg usrmsg;
2040 const char * name; char name_[PAD_(const char *)];
2041 uid_t uid; char uid_[PAD_(uid_t)];
2042 gid_t gid; char gid_[PAD_(gid_t)];
2043 int upcid; char upcid_[PAD_(int)];
2044 int flags; char flags_[PAD_(int)];
2045};
2046struct caps_sys_close_args {
2047#ifdef _KERNEL
2048 struct sysmsg sysmsg;
2049#endif
2050 union usrmsg usrmsg;
2051 int portid; char portid_[PAD_(int)];
2052};
2053struct caps_sys_put_args {
2054#ifdef _KERNEL
2055 struct sysmsg sysmsg;
2056#endif
2057 union usrmsg usrmsg;
2058 int portid; char portid_[PAD_(int)];
2059 void * msg; char msg_[PAD_(void *)];
2060 int msgsize; char msgsize_[PAD_(int)];
2061};
2062struct caps_sys_reply_args {
2063#ifdef _KERNEL
2064 struct sysmsg sysmsg;
2065#endif
2066 union usrmsg usrmsg;
2067 int portid; char portid_[PAD_(int)];
2068 void * msg; char msg_[PAD_(void *)];
2069 int msgsize; char msgsize_[PAD_(int)];
2070 off_t msgcid; char msgcid_[PAD_(off_t)];
2071};
2072struct caps_sys_get_args {
2073#ifdef _KERNEL
2074 struct sysmsg sysmsg;
2075#endif
2076 union usrmsg usrmsg;
2077 int portid; char portid_[PAD_(int)];
2078 void * msg; char msg_[PAD_(void *)];
2079 int maxsize; char maxsize_[PAD_(int)];
2080 struct caps_msgid * msgid; char msgid_[PAD_(struct caps_msgid *)];
2081 struct caps_cred * ccr; char ccr_[PAD_(struct caps_cred *)];
2082};
2083struct caps_sys_wait_args {
2084#ifdef _KERNEL
2085 struct sysmsg sysmsg;
2086#endif
2087 union usrmsg usrmsg;
2088 int portid; char portid_[PAD_(int)];
2089 void * msg; char msg_[PAD_(void *)];
2090 int maxsize; char maxsize_[PAD_(int)];
2091 struct caps_msgid * msgid; char msgid_[PAD_(struct caps_msgid *)];
2092 struct caps_cred * ccr; char ccr_[PAD_(struct caps_cred *)];
2093};
2094struct caps_sys_abort_args {
2095#ifdef _KERNEL
2096 struct sysmsg sysmsg;
2097#endif
2098 union usrmsg usrmsg;
2099 int portid; char portid_[PAD_(int)];
2100 off_t msgcid; char msgcid_[PAD_(off_t)];
2101 int flags; char flags_[PAD_(int)];
2102};
e30f9e2c
MD
2103struct caps_sys_getgen_args {
2104#ifdef _KERNEL
2105 struct sysmsg sysmsg;
2106#endif
2107 union usrmsg usrmsg;
2108 int portid; char portid_[PAD_(int)];
2109};
2110struct caps_sys_setgen_args {
2111#ifdef _KERNEL
2112 struct sysmsg sysmsg;
2113#endif
2114 union usrmsg usrmsg;
2115 int portid; char portid_[PAD_(int)];
2116 off_t gen; char gen_[PAD_(off_t)];
2117};
29802dbb
MD
2118struct exec_sys_register_args {
2119#ifdef _KERNEL
2120 struct sysmsg sysmsg;
2121#endif
2122 union usrmsg usrmsg;
2123 void * entry; char entry_[PAD_(void *)];
2124};
2125struct exec_sys_unregister_args {
2126#ifdef _KERNEL
2127 struct sysmsg sysmsg;
2128#endif
2129 union usrmsg usrmsg;
2130 int id; char id_[PAD_(int)];
2131};
0ba6fbbf
MD
2132struct sys_checkpoint_args {
2133#ifdef _KERNEL
2134 struct sysmsg sysmsg;
2135#endif
2136 union usrmsg usrmsg;
2137 int type; char type_[PAD_(int)];
2138 int fd; char fd_[PAD_(int)];
2139 pid_t pid; char pid_[PAD_(pid_t)];
2140 int retval; char retval_[PAD_(int)];
2141};
949ecb9b
MD
2142struct mountctl_args {
2143#ifdef _KERNEL
2144 struct sysmsg sysmsg;
2145#endif
2146 union usrmsg usrmsg;
da5fb9ef 2147 const char * path; char path_[PAD_(const char *)];
949ecb9b 2148 int op; char op_[PAD_(int)];
2281065e 2149 int fd; char fd_[PAD_(int)];
949ecb9b
MD
2150 const void * ctl; char ctl_[PAD_(const void *)];
2151 int ctllen; char ctllen_[PAD_(int)];
2152 void * buf; char buf_[PAD_(void *)];
2153 int buflen; char buflen_[PAD_(int)];
2154};
da5fb9ef
MD
2155struct umtx_sleep_args {
2156#ifdef _KERNEL
2157 struct sysmsg sysmsg;
2158#endif
2159 union usrmsg usrmsg;
76798859 2160 volatile const int * ptr; char ptr_[PAD_(volatile const int *)];
da5fb9ef
MD
2161 int value; char value_[PAD_(int)];
2162 int timeout; char timeout_[PAD_(int)];
2163};
2164struct umtx_wakeup_args {
2165#ifdef _KERNEL
2166 struct sysmsg sysmsg;
2167#endif
2168 union usrmsg usrmsg;
76798859 2169 volatile const int * ptr; char ptr_[PAD_(volatile const int *)];
da5fb9ef
MD
2170 int count; char count_[PAD_(int)];
2171};
b9fca94d
JS
2172struct jail_attach_args {
2173#ifdef _KERNEL
2174 struct sysmsg sysmsg;
2175#endif
2176 union usrmsg usrmsg;
2177 int jid; char jid_[PAD_(int)];
2178};
806bf111
MD
2179struct sys_set_tls_area_args {
2180#ifdef _KERNEL
2181 struct sysmsg sysmsg;
2182#endif
2183 union usrmsg usrmsg;
2184 int which; char which_[PAD_(int)];
2185 struct tls_info * info; char info_[PAD_(struct tls_info *)];
8383d6cf 2186 size_t infosize; char infosize_[PAD_(size_t)];
806bf111
MD
2187};
2188struct sys_get_tls_area_args {
2189#ifdef _KERNEL
2190 struct sysmsg sysmsg;
2191#endif
2192 union usrmsg usrmsg;
2193 int which; char which_[PAD_(int)];
2194 struct tls_info * info; char info_[PAD_(struct tls_info *)];
8383d6cf 2195 size_t infosize; char infosize_[PAD_(size_t)];
806bf111 2196};
ae5995b9
JS
2197struct closefrom_args {
2198#ifdef _KERNEL
2199 struct sysmsg sysmsg;
2200#endif
2201 union usrmsg usrmsg;
2202 int fd; char fd_[PAD_(int)];
2203};
4fd10eb6
MD
2204
2205#ifdef _KERNEL
2206
b153f746
RG
2207int nosys (struct nosys_args *);
2208void sys_exit (struct sys_exit_args *);
2209int fork (struct fork_args *);
2210int read (struct read_args *);
2211int write (struct write_args *);
2212int open (struct open_args *);
2213int close (struct close_args *);
2214int wait4 (struct wait_args *);
2215int link (struct link_args *);
2216int unlink (struct unlink_args *);
2217int chdir (struct chdir_args *);
2218int fchdir (struct fchdir_args *);
2219int mknod (struct mknod_args *);
2220int chmod (struct chmod_args *);
2221int chown (struct chown_args *);
2222int obreak (struct obreak_args *);
2223int getfsstat (struct getfsstat_args *);
2224int getpid (struct getpid_args *);
2225int mount (struct mount_args *);
2226int unmount (struct unmount_args *);
2227int setuid (struct setuid_args *);
2228int getuid (struct getuid_args *);
2229int geteuid (struct geteuid_args *);
2230int ptrace (struct ptrace_args *);
2231int recvmsg (struct recvmsg_args *);
2232int sendmsg (struct sendmsg_args *);
2233int recvfrom (struct recvfrom_args *);
2234int accept (struct accept_args *);
2235int getpeername (struct getpeername_args *);
2236int getsockname (struct getsockname_args *);
2237int access (struct access_args *);
2238int chflags (struct chflags_args *);
2239int fchflags (struct fchflags_args *);
2240int sync (struct sync_args *);
2241int kill (struct kill_args *);
2242int getppid (struct getppid_args *);
2243int dup (struct dup_args *);
2244int pipe (struct pipe_args *);
2245int getegid (struct getegid_args *);
2246int profil (struct profil_args *);
2247int ktrace (struct ktrace_args *);
2248int getgid (struct getgid_args *);
2249int getlogin (struct getlogin_args *);
2250int setlogin (struct setlogin_args *);
2251int acct (struct acct_args *);
2252int sigaltstack (struct sigaltstack_args *);
2253int ioctl (struct ioctl_args *);
2254int reboot (struct reboot_args *);
2255int revoke (struct revoke_args *);
2256int symlink (struct symlink_args *);
2257int readlink (struct readlink_args *);
2258int execve (struct execve_args *);
2259int umask (struct umask_args *);
2260int chroot (struct chroot_args *);
2261int msync (struct msync_args *);
2262int vfork (struct vfork_args *);
2263int sbrk (struct sbrk_args *);
2264int sstk (struct sstk_args *);
2265int ovadvise (struct ovadvise_args *);
2266int munmap (struct munmap_args *);
2267int mprotect (struct mprotect_args *);
2268int madvise (struct madvise_args *);
2269int mincore (struct mincore_args *);
2270int getgroups (struct getgroups_args *);
2271int setgroups (struct setgroups_args *);
2272int getpgrp (struct getpgrp_args *);
2273int setpgid (struct setpgid_args *);
2274int setitimer (struct setitimer_args *);
2275int swapon (struct swapon_args *);
2276int getitimer (struct getitimer_args *);
2277int getdtablesize (struct getdtablesize_args *);
2278int dup2 (struct dup2_args *);
2279int fcntl (struct fcntl_args *);
2280int select (struct select_args *);
2281int fsync (struct fsync_args *);
2282int setpriority (struct setpriority_args *);
2283int socket (struct socket_args *);
2284int connect (struct connect_args *);
2285int getpriority (struct getpriority_args *);
2286int bind (struct bind_args *);
2287int setsockopt (struct setsockopt_args *);
2288int listen (struct listen_args *);
2289int gettimeofday (struct gettimeofday_args *);
2290int getrusage (struct getrusage_args *);
2291int getsockopt (struct getsockopt_args *);
2292int readv (struct readv_args *);
2293int writev (struct writev_args *);
2294int settimeofday (struct settimeofday_args *);
2295int fchown (struct fchown_args *);
2296int fchmod (struct fchmod_args *);
2297int setreuid (struct setreuid_args *);
2298int setregid (struct setregid_args *);
2299int rename (struct rename_args *);
2300int flock (struct flock_args *);
2301int mkfifo (struct mkfifo_args *);
2302int sendto (struct sendto_args *);
2303int shutdown (struct shutdown_args *);
2304int socketpair (struct socketpair_args *);
2305int mkdir (struct mkdir_args *);
2306int rmdir (struct rmdir_args *);
2307int utimes (struct utimes_args *);
2308int adjtime (struct adjtime_args *);
2309int setsid (struct setsid_args *);
2310int quotactl (struct quotactl_args *);
2311int nfssvc (struct nfssvc_args *);
2312int statfs (struct statfs_args *);
2313int fstatfs (struct fstatfs_args *);
2314int getfh (struct getfh_args *);
2315int getdomainname (struct getdomainname_args *);
2316int setdomainname (struct setdomainname_args *);
2317int uname (struct uname_args *);
2318int sysarch (struct sysarch_args *);
2319int rtprio (struct rtprio_args *);
2320int semsys (struct semsys_args *);
2321int msgsys (struct msgsys_args *);
2322int shmsys (struct shmsys_args *);
2323int pread (struct pread_args *);
2324int pwrite (struct pwrite_args *);
2325int ntp_adjtime (struct ntp_adjtime_args *);
2326int setgid (struct setgid_args *);
2327int setegid (struct setegid_args *);
2328int seteuid (struct seteuid_args *);
2329int stat (struct stat_args *);
2330int fstat (struct fstat_args *);
2331int lstat (struct lstat_args *);
2332int pathconf (struct pathconf_args *);
2333int fpathconf (struct fpathconf_args *);
2334int getrlimit (struct __getrlimit_args *);
2335int setrlimit (struct __setrlimit_args *);
2336int getdirentries (struct getdirentries_args *);
2337int mmap (struct mmap_args *);
2338int lseek (struct lseek_args *);
2339int truncate (struct truncate_args *);
2340int ftruncate (struct ftruncate_args *);
2341int __sysctl (struct sysctl_args *);
2342int mlock (struct mlock_args *);
2343int munlock (struct munlock_args *);
2344int undelete (struct undelete_args *);
2345int futimes (struct futimes_args *);
2346int getpgid (struct getpgid_args *);
2347int poll (struct poll_args *);
2348int lkmnosys (struct nosys_args *);
2349int __semctl (struct __semctl_args *);
2350int semget (struct semget_args *);
2351int semop (struct semop_args *);
2352int msgctl (struct msgctl_args *);
2353int msgget (struct msgget_args *);
2354int msgsnd (struct msgsnd_args *);
2355int msgrcv (struct msgrcv_args *);
2356int shmat (struct shmat_args *);
2357int shmctl (struct shmctl_args *);
2358int shmdt (struct shmdt_args *);
2359int shmget (struct shmget_args *);
2360int clock_gettime (struct clock_gettime_args *);
2361int clock_settime (struct clock_settime_args *);
2362int clock_getres (struct clock_getres_args *);
2363int nanosleep (struct nanosleep_args *);
2364int minherit (struct minherit_args *);
2365int rfork (struct rfork_args *);
2366int openbsd_poll (struct openbsd_poll_args *);
2367int issetugid (struct issetugid_args *);
2368int lchown (struct lchown_args *);
2369int getdents (struct getdents_args *);
2370int lchmod (struct lchmod_args *);
2371int lutimes (struct lutimes_args *);
2372int nstat (struct nstat_args *);
2373int nfstat (struct nfstat_args *);
2374int nlstat (struct nlstat_args *);
2375int fhstatfs (struct fhstatfs_args *);
2376int fhopen (struct fhopen_args *);
2377int fhstat (struct fhstat_args *);
2378int modnext (struct modnext_args *);
2379int modstat (struct modstat_args *);
2380int modfnext (struct modfnext_args *);
2381int modfind (struct modfind_args *);
2382int kldload (struct kldload_args *);
2383int kldunload (struct kldunload_args *);
2384int kldfind (struct kldfind_args *);
2385int kldnext (struct kldnext_args *);
2386int kldstat (struct kldstat_args *);
2387int kldfirstmod (struct kldfirstmod_args *);
2388int getsid (struct getsid_args *);
2389int setresuid (struct setresuid_args *);
2390int setresgid (struct setresgid_args *);
2391int aio_return (struct aio_return_args *);
2392int aio_suspend (struct aio_suspend_args *);
2393int aio_cancel (struct aio_cancel_args *);
2394int aio_error (struct aio_error_args *);
2395int aio_read (struct aio_read_args *);
2396int aio_write (struct aio_write_args *);
2397int lio_listio (struct lio_listio_args *);
2398int yield (struct yield_args *);
2399int thr_sleep (struct thr_sleep_args *);
2400int thr_wakeup (struct thr_wakeup_args *);
2401int mlockall (struct mlockall_args *);
2402int munlockall (struct munlockall_args *);
2403int __getcwd (struct __getcwd_args *);
2404int sched_setparam (struct sched_setparam_args *);
2405int sched_getparam (struct sched_getparam_args *);
2406int sched_setscheduler (struct sched_setscheduler_args *);
2407int sched_getscheduler (struct sched_getscheduler_args *);
2408int sched_yield (struct sched_yield_args *);
2409int sched_get_priority_max (struct sched_get_priority_max_args *);
2410int sched_get_priority_min (struct sched_get_priority_min_args *);
2411int sched_rr_get_interval (struct sched_rr_get_interval_args *);
2412int utrace (struct utrace_args *);
2413int kldsym (struct kldsym_args *);
2414int jail (struct jail_args *);
2415int sigprocmask (struct sigprocmask_args *);
2416int sigsuspend (struct sigsuspend_args *);
2417int sigaction (struct sigaction_args *);
2418int sigpending (struct sigpending_args *);
2419int sigreturn (struct sigreturn_args *);
3a59f0f7
DX
2420int sigtimedwait (struct sigtimedwait_args *);
2421int sigwaitinfo (struct sigwaitinfo_args *);
b153f746
RG
2422int __acl_get_file (struct __acl_get_file_args *);
2423int __acl_set_file (struct __acl_set_file_args *);
2424int __acl_get_fd (struct __acl_get_fd_args *);
2425int __acl_set_fd (struct __acl_set_fd_args *);
2426int __acl_delete_file (struct __acl_delete_file_args *);
2427int __acl_delete_fd (struct __acl_delete_fd_args *);
2428int __acl_aclcheck_file (struct __acl_aclcheck_file_args *);
2429int __acl_aclcheck_fd (struct __acl_aclcheck_fd_args *);
2430int extattrctl (struct extattrctl_args *);
2431int extattr_set_file (struct extattr_set_file_args *);
2432int extattr_get_file (struct extattr_get_file_args *);
2433int extattr_delete_file (struct extattr_delete_file_args *);
2434int aio_waitcomplete (struct aio_waitcomplete_args *);
2435int getresuid (struct getresuid_args *);
2436int getresgid (struct getresgid_args *);
2437int kqueue (struct kqueue_args *);
2438int kevent (struct kevent_args *);
2439int sendfile (struct sendfile_args *);
98a7f915
MD
2440int varsym_set (struct varsym_set_args *);
2441int varsym_get (struct varsym_get_args *);
0a004aa2 2442int varsym_list (struct varsym_list_args *);
a722be49
MD
2443int upc_register (struct upc_register_args *);
2444int upc_control (struct upc_control_args *);
1bc8e992
MD
2445int caps_sys_service (struct caps_sys_service_args *);
2446int caps_sys_client (struct caps_sys_client_args *);
2447int caps_sys_close (struct caps_sys_close_args *);
2448int caps_sys_put (struct caps_sys_put_args *);
2449int caps_sys_reply (struct caps_sys_reply_args *);
2450int caps_sys_get (struct caps_sys_get_args *);
2451int caps_sys_wait (struct caps_sys_wait_args *);
2452int caps_sys_abort (struct caps_sys_abort_args *);
e30f9e2c
MD
2453int caps_sys_getgen (struct caps_sys_getgen_args *);
2454int caps_sys_setgen (struct caps_sys_setgen_args *);
29802dbb
MD
2455int exec_sys_register (struct exec_sys_register_args *);
2456int exec_sys_unregister (struct exec_sys_unregister_args *);
0ba6fbbf 2457int sys_checkpoint (struct sys_checkpoint_args *);
949ecb9b 2458int mountctl (struct mountctl_args *);
da5fb9ef
MD
2459int umtx_sleep (struct umtx_sleep_args *);
2460int umtx_wakeup (struct umtx_wakeup_args *);
b9fca94d 2461int jail_attach (struct jail_attach_args *);
806bf111
MD
2462int sys_set_tls_area (struct sys_set_tls_area_args *);
2463int sys_get_tls_area (struct sys_get_tls_area_args *);
ae5995b9 2464int closefrom (struct closefrom_args *);
984263bc 2465
4fd10eb6
MD
2466#endif /* _KERNEL */
2467
984263bc
MD
2468#ifdef COMPAT_43
2469
2470struct ocreat_args {
245e4f17 2471#ifdef _KERNEL
df2244e3 2472 struct sysmsg sysmsg;
245e4f17
MD
2473#endif
2474 union usrmsg usrmsg;
984263bc
MD
2475 char * path; char path_[PAD_(char *)];
2476 int mode; char mode_[PAD_(int)];
2477};
2478struct olseek_args {
245e4f17 2479#ifdef _KERNEL
df2244e3 2480 struct sysmsg sysmsg;
245e4f17
MD
2481#endif
2482 union usrmsg usrmsg;
984263bc
MD
2483 int fd; char fd_[PAD_(int)];
2484 long offset; char offset_[PAD_(long)];
2485 int whence; char whence_[PAD_(int)];
2486};
2487struct ostat_args {
245e4f17 2488#ifdef _KERNEL
df2244e3 2489 struct sysmsg sysmsg;
245e4f17
MD
2490#endif
2491 union usrmsg usrmsg;
984263bc
MD
2492 char * path; char path_[PAD_(char *)];
2493 struct ostat * ub; char ub_[PAD_(struct ostat *)];
2494};
2495struct olstat_args {
245e4f17 2496#ifdef _KERNEL
df2244e3 2497 struct sysmsg sysmsg;
245e4f17
MD
2498#endif
2499 union usrmsg usrmsg;
984263bc
MD
2500 char * path; char path_[PAD_(char *)];
2501 struct ostat * ub; char ub_[PAD_(struct ostat *)];
2502};
984263bc 2503struct ofstat_args {
245e4f17 2504#ifdef _KERNEL
df2244e3 2505 struct sysmsg sysmsg;
245e4f17
MD
2506#endif
2507 union usrmsg usrmsg;
984263bc
MD
2508 int fd; char fd_[PAD_(int)];
2509 struct ostat * sb; char sb_[PAD_(struct ostat *)];
2510};
2511struct getkerninfo_args {
245e4f17 2512#ifdef _KERNEL
df2244e3 2513 struct sysmsg sysmsg;
245e4f17
MD
2514#endif
2515 union usrmsg usrmsg;
984263bc
MD
2516 int op; char op_[PAD_(int)];
2517 char * where; char where_[PAD_(char *)];
2518 size_t * size; char size_[PAD_(size_t *)];
2519 int arg; char arg_[PAD_(int)];
2520};
2521struct ommap_args {
245e4f17 2522#ifdef _KERNEL
df2244e3 2523 struct sysmsg sysmsg;
245e4f17
MD
2524#endif
2525 union usrmsg usrmsg;
984263bc
MD
2526 void * addr; char addr_[PAD_(void *)];
2527 int len; char len_[PAD_(int)];
2528 int prot; char prot_[PAD_(int)];
2529 int flags; char flags_[PAD_(int)];
2530 int fd; char fd_[PAD_(int)];
2531 long pos; char pos_[PAD_(long)];
2532};
2533struct gethostname_args {
245e4f17 2534#ifdef _KERNEL
df2244e3 2535 struct sysmsg sysmsg;
245e4f17
MD
2536#endif
2537 union usrmsg usrmsg;
984263bc
MD
2538 char * hostname; char hostname_[PAD_(char *)];
2539 u_int len; char len_[PAD_(u_int)];
2540};
2541struct sethostname_args {
245e4f17 2542#ifdef _KERNEL
df2244e3 2543 struct sysmsg sysmsg;
245e4f17
MD
2544#endif
2545 union usrmsg usrmsg;
984263bc
MD
2546 char * hostname; char hostname_[PAD_(char *)];
2547 u_int len; char len_[PAD_(u_int)];
2548};
2549struct osend_args {
245e4f17 2550#ifdef _KERNEL
df2244e3 2551 struct sysmsg sysmsg;
245e4f17
MD
2552#endif
2553 union usrmsg usrmsg;
984263bc
MD
2554 int s; char s_[PAD_(int)];
2555 caddr_t buf; char buf_[PAD_(caddr_t)];
2556 int len; char len_[PAD_(int)];
2557 int flags; char flags_[PAD_(int)];
2558};
2559struct orecv_args {
245e4f17 2560#ifdef _KERNEL
df2244e3 2561 struct sysmsg sysmsg;
245e4f17
MD
2562#endif
2563 union usrmsg usrmsg;
984263bc
MD
2564 int s; char s_[PAD_(int)];
2565 caddr_t buf; char buf_[PAD_(caddr_t)];
2566 int len; char len_[PAD_(int)];
2567 int flags; char flags_[PAD_(int)];
2568};
984263bc 2569struct osigvec_args {
245e4f17 2570#ifdef _KERNEL
df2244e3 2571 struct sysmsg sysmsg;
245e4f17
MD
2572#endif
2573 union usrmsg usrmsg;
984263bc
MD
2574 int signum; char signum_[PAD_(int)];
2575 struct sigvec * nsv; char nsv_[PAD_(struct sigvec *)];
2576 struct sigvec * osv; char osv_[PAD_(struct sigvec *)];
2577};
2578struct osigblock_args {
245e4f17 2579#ifdef _KERNEL
df2244e3 2580 struct sysmsg sysmsg;
245e4f17
MD
2581#endif
2582 union usrmsg usrmsg;
984263bc
MD
2583 int mask; char mask_[PAD_(int)];
2584};
2585struct osigsetmask_args {
245e4f17 2586#ifdef _KERNEL
df2244e3 2587 struct sysmsg sysmsg;
245e4f17
MD
2588#endif
2589 union usrmsg usrmsg;
984263bc
MD
2590 int mask; char mask_[PAD_(int)];
2591};
984263bc 2592struct osigstack_args {
245e4f17 2593#ifdef _KERNEL
df2244e3 2594 struct sysmsg sysmsg;
245e4f17
MD
2595#endif
2596 union usrmsg usrmsg;
984263bc
MD
2597 struct sigstack * nss; char nss_[PAD_(struct sigstack *)];
2598 struct sigstack * oss; char oss_[PAD_(struct sigstack *)];
2599};
2600struct orecvmsg_args {
245e4f17 2601#ifdef _KERNEL
df2244e3 2602 struct sysmsg sysmsg;
245e4f17
MD
2603#endif
2604 union usrmsg usrmsg;
984263bc
MD
2605 int s; char s_[PAD_(int)];
2606 struct omsghdr * msg; char msg_[PAD_(struct omsghdr *)];
2607 int flags; char flags_[PAD_(int)];
2608};
2609struct osendmsg_args {
245e4f17 2610#ifdef _KERNEL
df2244e3 2611 struct sysmsg sysmsg;
245e4f17
MD
2612#endif
2613 union usrmsg usrmsg;
984263bc
MD
2614 int s; char s_[PAD_(int)];
2615 caddr_t msg; char msg_[PAD_(caddr_t)];
2616 int flags; char flags_[PAD_(int)];
2617};
2618struct otruncate_args {
245e4f17 2619#ifdef _KERNEL
df2244e3 2620 struct sysmsg sysmsg;
245e4f17
MD
2621#endif
2622 union usrmsg usrmsg;
984263bc
MD
2623 char * path; char path_[PAD_(char *)];
2624 long length; char length_[PAD_(long)];
2625};
2626struct oftruncate_args {
245e4f17 2627#ifdef _KERNEL
df2244e3 2628 struct sysmsg sysmsg;
245e4f17
MD
2629#endif
2630 union usrmsg usrmsg;
984263bc
MD
2631 int fd; char fd_[PAD_(int)];
2632 long length; char length_[PAD_(long)];
2633};
2634struct ogetpeername_args {
245e4f17 2635#ifdef _KERNEL
df2244e3 2636 struct sysmsg sysmsg;
245e4f17
MD
2637#endif
2638 union usrmsg usrmsg;
984263bc
MD
2639 int fdes; char fdes_[PAD_(int)];
2640 caddr_t asa; char asa_[PAD_(caddr_t)];
2641 int * alen; char alen_[PAD_(int *)];
2642};
2643struct osethostid_args {
245e4f17 2644#ifdef _KERNEL
df2244e3 2645 struct sysmsg sysmsg;
245e4f17
MD
2646#endif
2647 union usrmsg usrmsg;
984263bc
MD
2648 long hostid; char hostid_[PAD_(long)];
2649};
2650struct ogetrlimit_args {
245e4f17 2651#ifdef _KERNEL
df2244e3 2652 struct sysmsg sysmsg;
245e4f17
MD
2653#endif
2654 union usrmsg usrmsg;
984263bc
MD
2655 u_int which; char which_[PAD_(u_int)];
2656 struct orlimit * rlp; char rlp_[PAD_(struct orlimit *)];
2657};
2658struct osetrlimit_args {
245e4f17 2659#ifdef _KERNEL
df2244e3 2660 struct sysmsg sysmsg;
245e4f17
MD
2661#endif
2662 union usrmsg usrmsg;
984263bc
MD
2663 u_int which; char which_[PAD_(u_int)];
2664 struct orlimit * rlp; char rlp_[PAD_(struct orlimit *)];
2665};
2666struct okillpg_args {
245e4f17 2667#ifdef _KERNEL
df2244e3 2668 struct sysmsg sysmsg;
245e4f17
MD
2669#endif
2670 union usrmsg usrmsg;
984263bc
MD
2671 int pgid; char pgid_[PAD_(int)];
2672 int signum; char signum_[PAD_(int)];
2673};
2674struct ogetdirentries_args {
245e4f17 2675#ifdef _KERNEL
df2244e3 2676 struct sysmsg sysmsg;
245e4f17
MD
2677#endif
2678 union usrmsg usrmsg;
984263bc
MD
2679 int fd; char fd_[PAD_(int)];
2680 char * buf; char buf_[PAD_(char *)];
2681 u_int count; char count_[PAD_(u_int)];
2682 long * basep; char basep_[PAD_(long *)];
2683};
4fd10eb6
MD
2684
2685#ifdef _KERNEL
2686
b153f746
RG
2687int ocreat (struct ocreat_args *);
2688int olseek (struct olseek_args *);
2689int ostat (struct ostat_args *);
2690int olstat (struct olstat_args *);
b153f746
RG
2691int ofstat (struct ofstat_args *);
2692int ogetkerninfo (struct getkerninfo_args *);
2693int ogetpagesize (struct getpagesize_args *);
2694int ommap (struct ommap_args *);
2695int owait (struct owait_args *);
2696int ogethostname (struct gethostname_args *);
2697int osethostname (struct sethostname_args *);
2698int oaccept (struct accept_args *);
2699int osend (struct osend_args *);
2700int orecv (struct orecv_args *);
b153f746
RG
2701int osigvec (struct osigvec_args *);
2702int osigblock (struct osigblock_args *);
2703int osigsetmask (struct osigsetmask_args *);
b153f746
RG
2704int osigstack (struct osigstack_args *);
2705int orecvmsg (struct orecvmsg_args *);
2706int osendmsg (struct osendmsg_args *);
2707int orecvfrom (struct recvfrom_args *);
2708int otruncate (struct otruncate_args *);
2709int oftruncate (struct oftruncate_args *);
2710int ogetpeername (struct ogetpeername_args *);
2711int ogethostid (struct ogethostid_args *);
2712int osethostid (struct osethostid_args *);
2713int ogetrlimit (struct ogetrlimit_args *);
2714int osetrlimit (struct osetrlimit_args *);
2715int okillpg (struct okillpg_args *);
2716int oquota (struct oquota_args *);
2717int ogetsockname (struct getsockname_args *);
2718int ogetdirentries (struct ogetdirentries_args *);
984263bc 2719
4fd10eb6
MD
2720#endif /* _KERNEL */
2721
984263bc
MD
2722#endif /* COMPAT_43 */
2723
2724#undef PAD_
2725
2726#endif /* !_SYS_SYSPROTO_H_ */