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