Add the preadv() and pwritev() systems and regenerate.
[dragonfly.git] / sys / sys / sysproto.h
CommitLineData
984263bc
MD
1/*
2 * System call prototypes.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
7f83ed38
MD
5 * $DragonFly: src/sys/sys/sysproto.h,v 1.36 2006/04/26 17:17:57 dillon Exp $
6 * created from DragonFly: src/sys/kern/syscalls.master,v 1.31 2006/03/24 06:45:04 dillon 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};
7f83ed38
MD
1385struct preadv_args {
1386#ifdef _KERNEL
1387 struct sysmsg sysmsg;
1388#endif
1389 union usrmsg usrmsg;
1390 int fd; char fd_[PAD_(int)];
1391 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
1392 u_int iovcnt; char iovcnt_[PAD_(u_int)];
1393 off_t offset; char offset_[PAD_(off_t)];
1394};
1395struct pwritev_args {
1396#ifdef _KERNEL
1397 struct sysmsg sysmsg;
1398#endif
1399 union usrmsg usrmsg;
1400 int fd; char fd_[PAD_(int)];
1401 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
1402 u_int iovcnt; char iovcnt_[PAD_(u_int)];
1403 off_t offset; char offset_[PAD_(off_t)];
1404};
984263bc 1405struct fhstatfs_args {
245e4f17 1406#ifdef _KERNEL
df2244e3 1407 struct sysmsg sysmsg;
245e4f17
MD
1408#endif
1409 union usrmsg usrmsg;
984263bc
MD
1410 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
1411 struct statfs * buf; char buf_[PAD_(struct statfs *)];
1412};
1413struct fhopen_args {
245e4f17 1414#ifdef _KERNEL
df2244e3 1415 struct sysmsg sysmsg;
245e4f17
MD
1416#endif
1417 union usrmsg usrmsg;
984263bc
MD
1418 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
1419 int flags; char flags_[PAD_(int)];
1420};
984263bc 1421struct modnext_args {
245e4f17 1422#ifdef _KERNEL
df2244e3 1423 struct sysmsg sysmsg;
245e4f17
MD
1424#endif
1425 union usrmsg usrmsg;
984263bc
MD
1426 int modid; char modid_[PAD_(int)];
1427};
1428struct modstat_args {
245e4f17 1429#ifdef _KERNEL
df2244e3 1430 struct sysmsg sysmsg;
245e4f17
MD
1431#endif
1432 union usrmsg usrmsg;
984263bc
MD
1433 int modid; char modid_[PAD_(int)];
1434 struct module_stat * stat; char stat_[PAD_(struct module_stat *)];
1435};
1436struct modfnext_args {
245e4f17 1437#ifdef _KERNEL
df2244e3 1438 struct sysmsg sysmsg;
245e4f17
MD
1439#endif
1440 union usrmsg usrmsg;
984263bc
MD
1441 int modid; char modid_[PAD_(int)];
1442};
1443struct modfind_args {
245e4f17 1444#ifdef _KERNEL
df2244e3 1445 struct sysmsg sysmsg;
245e4f17
MD
1446#endif
1447 union usrmsg usrmsg;
984263bc
MD
1448 const char * name; char name_[PAD_(const char *)];
1449};
1450struct kldload_args {
245e4f17 1451#ifdef _KERNEL
df2244e3 1452 struct sysmsg sysmsg;
245e4f17
MD
1453#endif
1454 union usrmsg usrmsg;
984263bc
MD
1455 const char * file; char file_[PAD_(const char *)];
1456};
1457struct kldunload_args {
245e4f17 1458#ifdef _KERNEL
df2244e3 1459 struct sysmsg sysmsg;
245e4f17
MD
1460#endif
1461 union usrmsg usrmsg;
984263bc
MD
1462 int fileid; char fileid_[PAD_(int)];
1463};
1464struct kldfind_args {
245e4f17 1465#ifdef _KERNEL
df2244e3 1466 struct sysmsg sysmsg;
245e4f17
MD
1467#endif
1468 union usrmsg usrmsg;
984263bc
MD
1469 const char * file; char file_[PAD_(const char *)];
1470};
1471struct kldnext_args {
245e4f17 1472#ifdef _KERNEL
df2244e3 1473 struct sysmsg sysmsg;
245e4f17
MD
1474#endif
1475 union usrmsg usrmsg;
984263bc
MD
1476 int fileid; char fileid_[PAD_(int)];
1477};
1478struct kldstat_args {
245e4f17 1479#ifdef _KERNEL
df2244e3 1480 struct sysmsg sysmsg;
245e4f17
MD
1481#endif
1482 union usrmsg usrmsg;
984263bc
MD
1483 int fileid; char fileid_[PAD_(int)];
1484 struct kld_file_stat * stat; char stat_[PAD_(struct kld_file_stat *)];
1485};
1486struct kldfirstmod_args {
245e4f17 1487#ifdef _KERNEL
df2244e3 1488 struct sysmsg sysmsg;
245e4f17
MD
1489#endif
1490 union usrmsg usrmsg;
984263bc
MD
1491 int fileid; char fileid_[PAD_(int)];
1492};
1493struct getsid_args {
245e4f17 1494#ifdef _KERNEL
df2244e3 1495 struct sysmsg sysmsg;
245e4f17
MD
1496#endif
1497 union usrmsg usrmsg;
984263bc
MD
1498 pid_t pid; char pid_[PAD_(pid_t)];
1499};
1500struct setresuid_args {
245e4f17 1501#ifdef _KERNEL
df2244e3 1502 struct sysmsg sysmsg;
245e4f17
MD
1503#endif
1504 union usrmsg usrmsg;
984263bc
MD
1505 uid_t ruid; char ruid_[PAD_(uid_t)];
1506 uid_t euid; char euid_[PAD_(uid_t)];
1507 uid_t suid; char suid_[PAD_(uid_t)];
1508};
1509struct setresgid_args {
245e4f17 1510#ifdef _KERNEL
df2244e3 1511 struct sysmsg sysmsg;
245e4f17
MD
1512#endif
1513 union usrmsg usrmsg;
984263bc
MD
1514 gid_t rgid; char rgid_[PAD_(gid_t)];
1515 gid_t egid; char egid_[PAD_(gid_t)];
1516 gid_t sgid; char sgid_[PAD_(gid_t)];
1517};
1518struct aio_return_args {
245e4f17 1519#ifdef _KERNEL
df2244e3 1520 struct sysmsg sysmsg;
245e4f17
MD
1521#endif
1522 union usrmsg usrmsg;
984263bc
MD
1523 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1524};
1525struct aio_suspend_args {
245e4f17 1526#ifdef _KERNEL
df2244e3 1527 struct sysmsg sysmsg;
245e4f17
MD
1528#endif
1529 union usrmsg usrmsg;
984263bc
MD
1530 struct aiocb *const * aiocbp; char aiocbp_[PAD_(struct aiocb *const *)];
1531 int nent; char nent_[PAD_(int)];
1532 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1533};
1534struct aio_cancel_args {
245e4f17 1535#ifdef _KERNEL
df2244e3 1536 struct sysmsg sysmsg;
245e4f17
MD
1537#endif
1538 union usrmsg usrmsg;
984263bc
MD
1539 int fd; char fd_[PAD_(int)];
1540 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1541};
1542struct aio_error_args {
245e4f17 1543#ifdef _KERNEL
df2244e3 1544 struct sysmsg sysmsg;
245e4f17
MD
1545#endif
1546 union usrmsg usrmsg;
984263bc
MD
1547 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1548};
1549struct aio_read_args {
245e4f17 1550#ifdef _KERNEL
df2244e3 1551 struct sysmsg sysmsg;
245e4f17
MD
1552#endif
1553 union usrmsg usrmsg;
984263bc
MD
1554 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1555};
1556struct aio_write_args {
245e4f17 1557#ifdef _KERNEL
df2244e3 1558 struct sysmsg sysmsg;
245e4f17
MD
1559#endif
1560 union usrmsg usrmsg;
984263bc
MD
1561 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1562};
1563struct lio_listio_args {
245e4f17 1564#ifdef _KERNEL
df2244e3 1565 struct sysmsg sysmsg;
245e4f17
MD
1566#endif
1567 union usrmsg usrmsg;
984263bc
MD
1568 int mode; char mode_[PAD_(int)];
1569 struct aiocb *const * acb_list; char acb_list_[PAD_(struct aiocb *const *)];
1570 int nent; char nent_[PAD_(int)];
1571 struct sigevent * sig; char sig_[PAD_(struct sigevent *)];
1572};
1573struct yield_args {
245e4f17 1574#ifdef _KERNEL
df2244e3 1575 struct sysmsg sysmsg;
245e4f17
MD
1576#endif
1577 union usrmsg usrmsg;
984263bc
MD
1578 register_t dummy;
1579};
1580struct thr_sleep_args {
245e4f17 1581#ifdef _KERNEL
df2244e3 1582 struct sysmsg sysmsg;
245e4f17
MD
1583#endif
1584 union usrmsg usrmsg;
984263bc
MD
1585 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1586};
1587struct thr_wakeup_args {
245e4f17 1588#ifdef _KERNEL
df2244e3 1589 struct sysmsg sysmsg;
245e4f17
MD
1590#endif
1591 union usrmsg usrmsg;
984263bc
MD
1592 pid_t pid; char pid_[PAD_(pid_t)];
1593};
1594struct mlockall_args {
245e4f17 1595#ifdef _KERNEL
df2244e3 1596 struct sysmsg sysmsg;
245e4f17
MD
1597#endif
1598 union usrmsg usrmsg;
984263bc
MD
1599 int how; char how_[PAD_(int)];
1600};
1601struct munlockall_args {
245e4f17 1602#ifdef _KERNEL
df2244e3 1603 struct sysmsg sysmsg;
245e4f17
MD
1604#endif
1605 union usrmsg usrmsg;
984263bc
MD
1606 register_t dummy;
1607};
1608struct __getcwd_args {
245e4f17 1609#ifdef _KERNEL
df2244e3 1610 struct sysmsg sysmsg;
245e4f17
MD
1611#endif
1612 union usrmsg usrmsg;
984263bc
MD
1613 u_char * buf; char buf_[PAD_(u_char *)];
1614 u_int buflen; char buflen_[PAD_(u_int)];
1615};
1616struct sched_setparam_args {
245e4f17 1617#ifdef _KERNEL
df2244e3 1618 struct sysmsg sysmsg;
245e4f17
MD
1619#endif
1620 union usrmsg usrmsg;
984263bc
MD
1621 pid_t pid; char pid_[PAD_(pid_t)];
1622 const struct sched_param * param; char param_[PAD_(const struct sched_param *)];
1623};
1624struct sched_getparam_args {
245e4f17 1625#ifdef _KERNEL
df2244e3 1626 struct sysmsg sysmsg;
245e4f17
MD
1627#endif
1628 union usrmsg usrmsg;
984263bc
MD
1629 pid_t pid; char pid_[PAD_(pid_t)];
1630 struct sched_param * param; char param_[PAD_(struct sched_param *)];
1631};
1632struct sched_setscheduler_args {
245e4f17 1633#ifdef _KERNEL
df2244e3 1634 struct sysmsg sysmsg;
245e4f17
MD
1635#endif
1636 union usrmsg usrmsg;
984263bc
MD
1637 pid_t pid; char pid_[PAD_(pid_t)];
1638 int policy; char policy_[PAD_(int)];
1639 const struct sched_param * param; char param_[PAD_(const struct sched_param *)];
1640};
1641struct sched_getscheduler_args {
245e4f17 1642#ifdef _KERNEL
df2244e3 1643 struct sysmsg sysmsg;
245e4f17
MD
1644#endif
1645 union usrmsg usrmsg;
984263bc
MD
1646 pid_t pid; char pid_[PAD_(pid_t)];
1647};
1648struct sched_yield_args {
245e4f17 1649#ifdef _KERNEL
df2244e3 1650 struct sysmsg sysmsg;
245e4f17
MD
1651#endif
1652 union usrmsg usrmsg;
984263bc
MD
1653 register_t dummy;
1654};
1655struct sched_get_priority_max_args {
245e4f17 1656#ifdef _KERNEL
df2244e3 1657 struct sysmsg sysmsg;
245e4f17
MD
1658#endif
1659 union usrmsg usrmsg;
984263bc
MD
1660 int policy; char policy_[PAD_(int)];
1661};
1662struct sched_get_priority_min_args {
245e4f17 1663#ifdef _KERNEL
df2244e3 1664 struct sysmsg sysmsg;
245e4f17
MD
1665#endif
1666 union usrmsg usrmsg;
984263bc
MD
1667 int policy; char policy_[PAD_(int)];
1668};
1669struct sched_rr_get_interval_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 struct timespec * interval; char interval_[PAD_(struct timespec *)];
1676};
1677struct utrace_args {
245e4f17 1678#ifdef _KERNEL
df2244e3 1679 struct sysmsg sysmsg;
245e4f17
MD
1680#endif
1681 union usrmsg usrmsg;
984263bc
MD
1682 const void * addr; char addr_[PAD_(const void *)];
1683 size_t len; char len_[PAD_(size_t)];
1684};
1685struct kldsym_args {
245e4f17 1686#ifdef _KERNEL
df2244e3 1687 struct sysmsg sysmsg;
245e4f17
MD
1688#endif
1689 union usrmsg usrmsg;
984263bc
MD
1690 int fileid; char fileid_[PAD_(int)];
1691 int cmd; char cmd_[PAD_(int)];
1692 void * data; char data_[PAD_(void *)];
1693};
1694struct jail_args {
245e4f17 1695#ifdef _KERNEL
df2244e3 1696 struct sysmsg sysmsg;
245e4f17
MD
1697#endif
1698 union usrmsg usrmsg;
984263bc
MD
1699 struct jail * jail; char jail_[PAD_(struct jail *)];
1700};
1701struct sigprocmask_args {
245e4f17 1702#ifdef _KERNEL
df2244e3 1703 struct sysmsg sysmsg;
245e4f17
MD
1704#endif
1705 union usrmsg usrmsg;
984263bc
MD
1706 int how; char how_[PAD_(int)];
1707 const sigset_t * set; char set_[PAD_(const sigset_t *)];
1708 sigset_t * oset; char oset_[PAD_(sigset_t *)];
1709};
1710struct sigsuspend_args {
245e4f17 1711#ifdef _KERNEL
df2244e3 1712 struct sysmsg sysmsg;
245e4f17
MD
1713#endif
1714 union usrmsg usrmsg;
984263bc
MD
1715 const sigset_t * sigmask; char sigmask_[PAD_(const sigset_t *)];
1716};
1717struct sigaction_args {
245e4f17 1718#ifdef _KERNEL
df2244e3 1719 struct sysmsg sysmsg;
245e4f17
MD
1720#endif
1721 union usrmsg usrmsg;
984263bc
MD
1722 int sig; char sig_[PAD_(int)];
1723 const struct sigaction * act; char act_[PAD_(const struct sigaction *)];
1724 struct sigaction * oact; char oact_[PAD_(struct sigaction *)];
1725};
1726struct sigpending_args {
245e4f17 1727#ifdef _KERNEL
df2244e3 1728 struct sysmsg sysmsg;
245e4f17
MD
1729#endif
1730 union usrmsg usrmsg;
984263bc
MD
1731 sigset_t * set; char set_[PAD_(sigset_t *)];
1732};
1733struct sigreturn_args {
245e4f17 1734#ifdef _KERNEL
df2244e3 1735 struct sysmsg sysmsg;
245e4f17
MD
1736#endif
1737 union usrmsg usrmsg;
984263bc
MD
1738 ucontext_t * sigcntxp; char sigcntxp_[PAD_(ucontext_t *)];
1739};
3a59f0f7
DX
1740struct sigtimedwait_args {
1741#ifdef _KERNEL
1742 struct sysmsg sysmsg;
1743#endif
1744 union usrmsg usrmsg;
1745 const sigset_t * set; char set_[PAD_(const sigset_t *)];
1746 siginfo_t * info; char info_[PAD_(siginfo_t *)];
1747 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1748};
1749struct sigwaitinfo_args {
1750#ifdef _KERNEL
1751 struct sysmsg sysmsg;
1752#endif
1753 union usrmsg usrmsg;
1754 const sigset_t * set; char set_[PAD_(const sigset_t *)];
1755 siginfo_t * info; char info_[PAD_(siginfo_t *)];
1756};
984263bc 1757struct __acl_get_file_args {
245e4f17 1758#ifdef _KERNEL
df2244e3 1759 struct sysmsg sysmsg;
245e4f17
MD
1760#endif
1761 union usrmsg usrmsg;
984263bc
MD
1762 const char * path; char path_[PAD_(const char *)];
1763 acl_type_t type; char type_[PAD_(acl_type_t)];
1764 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1765};
1766struct __acl_set_file_args {
245e4f17 1767#ifdef _KERNEL
df2244e3 1768 struct sysmsg sysmsg;
245e4f17
MD
1769#endif
1770 union usrmsg usrmsg;
984263bc
MD
1771 const char * path; char path_[PAD_(const char *)];
1772 acl_type_t type; char type_[PAD_(acl_type_t)];
1773 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1774};
1775struct __acl_get_fd_args {
245e4f17 1776#ifdef _KERNEL
df2244e3 1777 struct sysmsg sysmsg;
245e4f17
MD
1778#endif
1779 union usrmsg usrmsg;
984263bc
MD
1780 int filedes; char filedes_[PAD_(int)];
1781 acl_type_t type; char type_[PAD_(acl_type_t)];
1782 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1783};
1784struct __acl_set_fd_args {
245e4f17 1785#ifdef _KERNEL
df2244e3 1786 struct sysmsg sysmsg;
245e4f17
MD
1787#endif
1788 union usrmsg usrmsg;
984263bc
MD
1789 int filedes; char filedes_[PAD_(int)];
1790 acl_type_t type; char type_[PAD_(acl_type_t)];
1791 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1792};
1793struct __acl_delete_file_args {
245e4f17 1794#ifdef _KERNEL
df2244e3 1795 struct sysmsg sysmsg;
245e4f17
MD
1796#endif
1797 union usrmsg usrmsg;
984263bc
MD
1798 const char * path; char path_[PAD_(const char *)];
1799 acl_type_t type; char type_[PAD_(acl_type_t)];
1800};
1801struct __acl_delete_fd_args {
245e4f17 1802#ifdef _KERNEL
df2244e3 1803 struct sysmsg sysmsg;
245e4f17
MD
1804#endif
1805 union usrmsg usrmsg;
984263bc
MD
1806 int filedes; char filedes_[PAD_(int)];
1807 acl_type_t type; char type_[PAD_(acl_type_t)];
1808};
1809struct __acl_aclcheck_file_args {
245e4f17 1810#ifdef _KERNEL
df2244e3 1811 struct sysmsg sysmsg;
245e4f17
MD
1812#endif
1813 union usrmsg usrmsg;
984263bc
MD
1814 const char * path; char path_[PAD_(const char *)];
1815 acl_type_t type; char type_[PAD_(acl_type_t)];
1816 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1817};
1818struct __acl_aclcheck_fd_args {
245e4f17 1819#ifdef _KERNEL
df2244e3 1820 struct sysmsg sysmsg;
245e4f17
MD
1821#endif
1822 union usrmsg usrmsg;
984263bc
MD
1823 int filedes; char filedes_[PAD_(int)];
1824 acl_type_t type; char type_[PAD_(acl_type_t)];
1825 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1826};
1827struct extattrctl_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 int cmd; char cmd_[PAD_(int)];
1834 const char * attrname; char attrname_[PAD_(const char *)];
1835 char * arg; char arg_[PAD_(char *)];
1836};
1837struct extattr_set_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 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
1845 unsigned iovcnt; char iovcnt_[PAD_(unsigned)];
1846};
1847struct extattr_get_file_args {
245e4f17 1848#ifdef _KERNEL
df2244e3 1849 struct sysmsg sysmsg;
245e4f17
MD
1850#endif
1851 union usrmsg usrmsg;
984263bc
MD
1852 const char * path; char path_[PAD_(const char *)];
1853 const char * attrname; char attrname_[PAD_(const char *)];
1854 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
1855 unsigned iovcnt; char iovcnt_[PAD_(unsigned)];
1856};
1857struct extattr_delete_file_args {
245e4f17 1858#ifdef _KERNEL
df2244e3 1859 struct sysmsg sysmsg;
245e4f17
MD
1860#endif
1861 union usrmsg usrmsg;
984263bc
MD
1862 const char * path; char path_[PAD_(const char *)];
1863 const char * attrname; char attrname_[PAD_(const char *)];
1864};
1865struct aio_waitcomplete_args {
245e4f17 1866#ifdef _KERNEL
df2244e3 1867 struct sysmsg sysmsg;
245e4f17
MD
1868#endif
1869 union usrmsg usrmsg;
984263bc
MD
1870 struct aiocb ** aiocbp; char aiocbp_[PAD_(struct aiocb **)];
1871 struct timespec * timeout; char timeout_[PAD_(struct timespec *)];
1872};
1873struct getresuid_args {
245e4f17 1874#ifdef _KERNEL
df2244e3 1875 struct sysmsg sysmsg;
245e4f17
MD
1876#endif
1877 union usrmsg usrmsg;
984263bc
MD
1878 uid_t * ruid; char ruid_[PAD_(uid_t *)];
1879 uid_t * euid; char euid_[PAD_(uid_t *)];
1880 uid_t * suid; char suid_[PAD_(uid_t *)];
1881};
1882struct getresgid_args {
245e4f17 1883#ifdef _KERNEL
df2244e3 1884 struct sysmsg sysmsg;
245e4f17
MD
1885#endif
1886 union usrmsg usrmsg;
984263bc
MD
1887 gid_t * rgid; char rgid_[PAD_(gid_t *)];
1888 gid_t * egid; char egid_[PAD_(gid_t *)];
1889 gid_t * sgid; char sgid_[PAD_(gid_t *)];
1890};
1891struct kqueue_args {
245e4f17 1892#ifdef _KERNEL
df2244e3 1893 struct sysmsg sysmsg;
245e4f17
MD
1894#endif
1895 union usrmsg usrmsg;
984263bc
MD
1896 register_t dummy;
1897};
1898struct kevent_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 const struct kevent * changelist; char changelist_[PAD_(const struct kevent *)];
1905 int nchanges; char nchanges_[PAD_(int)];
1906 struct kevent * eventlist; char eventlist_[PAD_(struct kevent *)];
1907 int nevents; char nevents_[PAD_(int)];
1908 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1909};
78812139
EN
1910struct sctp_peeloff_args {
1911#ifdef _KERNEL
1912 struct sysmsg sysmsg;
1913#endif
1914 union usrmsg usrmsg;
1915 int sd; char sd_[PAD_(int)];
1916 caddr_t name; char name_[PAD_(caddr_t)];
1917};
984263bc 1918struct sendfile_args {
245e4f17 1919#ifdef _KERNEL
df2244e3 1920 struct sysmsg sysmsg;
245e4f17
MD
1921#endif
1922 union usrmsg usrmsg;
984263bc
MD
1923 int fd; char fd_[PAD_(int)];
1924 int s; char s_[PAD_(int)];
1925 off_t offset; char offset_[PAD_(off_t)];
1926 size_t nbytes; char nbytes_[PAD_(size_t)];
1927 struct sf_hdtr * hdtr; char hdtr_[PAD_(struct sf_hdtr *)];
1928 off_t * sbytes; char sbytes_[PAD_(off_t *)];
1929 int flags; char flags_[PAD_(int)];
1930};
98a7f915
MD
1931struct varsym_set_args {
1932#ifdef _KERNEL
df2244e3 1933 struct sysmsg sysmsg;
98a7f915
MD
1934#endif
1935 union usrmsg usrmsg;
1936 int level; char level_[PAD_(int)];
1937 const char * name; char name_[PAD_(const char *)];
1938 const char * data; char data_[PAD_(const char *)];
1939};
1940struct varsym_get_args {
1941#ifdef _KERNEL
df2244e3 1942 struct sysmsg sysmsg;
98a7f915
MD
1943#endif
1944 union usrmsg usrmsg;
1945 int mask; char mask_[PAD_(int)];
1946 const char * wild; char wild_[PAD_(const char *)];
1947 char * buf; char buf_[PAD_(char *)];
1948 int bufsize; char bufsize_[PAD_(int)];
1949};
0a004aa2
MD
1950struct varsym_list_args {
1951#ifdef _KERNEL
df2244e3 1952 struct sysmsg sysmsg;
0a004aa2
MD
1953#endif
1954 union usrmsg usrmsg;
1955 int level; char level_[PAD_(int)];
1956 char * buf; char buf_[PAD_(char *)];
1957 int maxsize; char maxsize_[PAD_(int)];
1958 int * marker; char marker_[PAD_(int *)];
1959};
a722be49
MD
1960struct upc_register_args {
1961#ifdef _KERNEL
1962 struct sysmsg sysmsg;
1963#endif
1964 union usrmsg usrmsg;
1965 struct upcall * upc; char upc_[PAD_(struct upcall *)];
1966 void * ctxfunc; char ctxfunc_[PAD_(void *)];
1967 void * func; char func_[PAD_(void *)];
1968 void * data; char data_[PAD_(void *)];
1969};
1970struct upc_control_args {
1971#ifdef _KERNEL
1972 struct sysmsg sysmsg;
1973#endif
1974 union usrmsg usrmsg;
1975 int cmd; char cmd_[PAD_(int)];
1976 int upcid; char upcid_[PAD_(int)];
1977 void * data; char data_[PAD_(void *)];
1978};
1bc8e992
MD
1979struct caps_sys_service_args {
1980#ifdef _KERNEL
1981 struct sysmsg sysmsg;
1982#endif
1983 union usrmsg usrmsg;
1984 const char * name; char name_[PAD_(const char *)];
1985 uid_t uid; char uid_[PAD_(uid_t)];
1986 gid_t gid; char gid_[PAD_(gid_t)];
1987 int upcid; char upcid_[PAD_(int)];
1988 int flags; char flags_[PAD_(int)];
1989};
1990struct caps_sys_client_args {
1991#ifdef _KERNEL
1992 struct sysmsg sysmsg;
1993#endif
1994 union usrmsg usrmsg;
1995 const char * name; char name_[PAD_(const char *)];
1996 uid_t uid; char uid_[PAD_(uid_t)];
1997 gid_t gid; char gid_[PAD_(gid_t)];
1998 int upcid; char upcid_[PAD_(int)];
1999 int flags; char flags_[PAD_(int)];
2000};
2001struct caps_sys_close_args {
2002#ifdef _KERNEL
2003 struct sysmsg sysmsg;
2004#endif
2005 union usrmsg usrmsg;
2006 int portid; char portid_[PAD_(int)];
2007};
2008struct caps_sys_put_args {
2009#ifdef _KERNEL
2010 struct sysmsg sysmsg;
2011#endif
2012 union usrmsg usrmsg;
2013 int portid; char portid_[PAD_(int)];
2014 void * msg; char msg_[PAD_(void *)];
2015 int msgsize; char msgsize_[PAD_(int)];
2016};
2017struct caps_sys_reply_args {
2018#ifdef _KERNEL
2019 struct sysmsg sysmsg;
2020#endif
2021 union usrmsg usrmsg;
2022 int portid; char portid_[PAD_(int)];
2023 void * msg; char msg_[PAD_(void *)];
2024 int msgsize; char msgsize_[PAD_(int)];
2025 off_t msgcid; char msgcid_[PAD_(off_t)];
2026};
2027struct caps_sys_get_args {
2028#ifdef _KERNEL
2029 struct sysmsg sysmsg;
2030#endif
2031 union usrmsg usrmsg;
2032 int portid; char portid_[PAD_(int)];
2033 void * msg; char msg_[PAD_(void *)];
2034 int maxsize; char maxsize_[PAD_(int)];
2035 struct caps_msgid * msgid; char msgid_[PAD_(struct caps_msgid *)];
2036 struct caps_cred * ccr; char ccr_[PAD_(struct caps_cred *)];
2037};
2038struct caps_sys_wait_args {
2039#ifdef _KERNEL
2040 struct sysmsg sysmsg;
2041#endif
2042 union usrmsg usrmsg;
2043 int portid; char portid_[PAD_(int)];
2044 void * msg; char msg_[PAD_(void *)];
2045 int maxsize; char maxsize_[PAD_(int)];
2046 struct caps_msgid * msgid; char msgid_[PAD_(struct caps_msgid *)];
2047 struct caps_cred * ccr; char ccr_[PAD_(struct caps_cred *)];
2048};
2049struct caps_sys_abort_args {
2050#ifdef _KERNEL
2051 struct sysmsg sysmsg;
2052#endif
2053 union usrmsg usrmsg;
2054 int portid; char portid_[PAD_(int)];
2055 off_t msgcid; char msgcid_[PAD_(off_t)];
2056 int flags; char flags_[PAD_(int)];
2057};
e30f9e2c
MD
2058struct caps_sys_getgen_args {
2059#ifdef _KERNEL
2060 struct sysmsg sysmsg;
2061#endif
2062 union usrmsg usrmsg;
2063 int portid; char portid_[PAD_(int)];
2064};
2065struct caps_sys_setgen_args {
2066#ifdef _KERNEL
2067 struct sysmsg sysmsg;
2068#endif
2069 union usrmsg usrmsg;
2070 int portid; char portid_[PAD_(int)];
2071 off_t gen; char gen_[PAD_(off_t)];
2072};
29802dbb
MD
2073struct exec_sys_register_args {
2074#ifdef _KERNEL
2075 struct sysmsg sysmsg;
2076#endif
2077 union usrmsg usrmsg;
2078 void * entry; char entry_[PAD_(void *)];
2079};
2080struct exec_sys_unregister_args {
2081#ifdef _KERNEL
2082 struct sysmsg sysmsg;
2083#endif
2084 union usrmsg usrmsg;
2085 int id; char id_[PAD_(int)];
2086};
0ba6fbbf
MD
2087struct sys_checkpoint_args {
2088#ifdef _KERNEL
2089 struct sysmsg sysmsg;
2090#endif
2091 union usrmsg usrmsg;
2092 int type; char type_[PAD_(int)];
2093 int fd; char fd_[PAD_(int)];
2094 pid_t pid; char pid_[PAD_(pid_t)];
2095 int retval; char retval_[PAD_(int)];
2096};
949ecb9b
MD
2097struct mountctl_args {
2098#ifdef _KERNEL
2099 struct sysmsg sysmsg;
2100#endif
2101 union usrmsg usrmsg;
da5fb9ef 2102 const char * path; char path_[PAD_(const char *)];
949ecb9b 2103 int op; char op_[PAD_(int)];
2281065e 2104 int fd; char fd_[PAD_(int)];
949ecb9b
MD
2105 const void * ctl; char ctl_[PAD_(const void *)];
2106 int ctllen; char ctllen_[PAD_(int)];
2107 void * buf; char buf_[PAD_(void *)];
2108 int buflen; char buflen_[PAD_(int)];
2109};
da5fb9ef
MD
2110struct umtx_sleep_args {
2111#ifdef _KERNEL
2112 struct sysmsg sysmsg;
2113#endif
2114 union usrmsg usrmsg;
76798859 2115 volatile const int * ptr; char ptr_[PAD_(volatile const int *)];
da5fb9ef
MD
2116 int value; char value_[PAD_(int)];
2117 int timeout; char timeout_[PAD_(int)];
2118};
2119struct umtx_wakeup_args {
2120#ifdef _KERNEL
2121 struct sysmsg sysmsg;
2122#endif
2123 union usrmsg usrmsg;
76798859 2124 volatile const int * ptr; char ptr_[PAD_(volatile const int *)];
da5fb9ef
MD
2125 int count; char count_[PAD_(int)];
2126};
b9fca94d
JS
2127struct jail_attach_args {
2128#ifdef _KERNEL
2129 struct sysmsg sysmsg;
2130#endif
2131 union usrmsg usrmsg;
2132 int jid; char jid_[PAD_(int)];
2133};
806bf111
MD
2134struct sys_set_tls_area_args {
2135#ifdef _KERNEL
2136 struct sysmsg sysmsg;
2137#endif
2138 union usrmsg usrmsg;
2139 int which; char which_[PAD_(int)];
2140 struct tls_info * info; char info_[PAD_(struct tls_info *)];
8383d6cf 2141 size_t infosize; char infosize_[PAD_(size_t)];
806bf111
MD
2142};
2143struct sys_get_tls_area_args {
2144#ifdef _KERNEL
2145 struct sysmsg sysmsg;
2146#endif
2147 union usrmsg usrmsg;
2148 int which; char which_[PAD_(int)];
2149 struct tls_info * info; char info_[PAD_(struct tls_info *)];
8383d6cf 2150 size_t infosize; char infosize_[PAD_(size_t)];
806bf111 2151};
ae5995b9
JS
2152struct closefrom_args {
2153#ifdef _KERNEL
2154 struct sysmsg sysmsg;
2155#endif
2156 union usrmsg usrmsg;
2157 int fd; char fd_[PAD_(int)];
2158};
f1787048
JS
2159struct stat_args {
2160#ifdef _KERNEL
2161 struct sysmsg sysmsg;
2162#endif
2163 union usrmsg usrmsg;
2164 const char * path; char path_[PAD_(const char *)];
2165 struct stat * ub; char ub_[PAD_(struct stat *)];
2166};
2167struct fstat_args {
2168#ifdef _KERNEL
2169 struct sysmsg sysmsg;
2170#endif
2171 union usrmsg usrmsg;
2172 int fd; char fd_[PAD_(int)];
2173 struct stat * sb; char sb_[PAD_(struct stat *)];
2174};
2175struct lstat_args {
2176#ifdef _KERNEL
2177 struct sysmsg sysmsg;
2178#endif
2179 union usrmsg usrmsg;
2180 const char * path; char path_[PAD_(const char *)];
2181 struct stat * ub; char ub_[PAD_(struct stat *)];
2182};
2183struct fhstat_args {
4fd10eb6 2184#ifdef _KERNEL
f1787048
JS
2185 struct sysmsg sysmsg;
2186#endif
2187 union usrmsg usrmsg;
2188 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
2189 struct stat * sb; char sb_[PAD_(struct stat *)];
2190};
01f31ab3
JS
2191struct getdirentries_args {
2192#ifdef _KERNEL
2193 struct sysmsg sysmsg;
2194#endif
2195 union usrmsg usrmsg;
2196 int fd; char fd_[PAD_(int)];
2197 char * buf; char buf_[PAD_(char *)];
2198 u_int count; char count_[PAD_(u_int)];
2199 long * basep; char basep_[PAD_(long *)];
2200};
2201struct getdents_args {
2202#ifdef _KERNEL
2203 struct sysmsg sysmsg;
2204#endif
2205 union usrmsg usrmsg;
2206 int fd; char fd_[PAD_(int)];
2207 char * buf; char buf_[PAD_(char *)];
2208 size_t count; char count_[PAD_(size_t)];
2209};
cb7f4ab1
MD
2210struct usched_set_args {
2211#ifdef _KERNEL
2212 struct sysmsg sysmsg;
2213#endif
2214 union usrmsg usrmsg;
2215 const char * name; char name_[PAD_(const char *)];
2216 int flags; char flags_[PAD_(int)];
2217};
f1787048
JS
2218
2219#ifdef COMPAT_43
4fd10eb6 2220
17e1a2b5 2221#ifdef COMPAT_43
17e1a2b5 2222#endif
984263bc 2223struct ocreat_args {
245e4f17 2224#ifdef _KERNEL
df2244e3 2225 struct sysmsg sysmsg;
245e4f17
MD
2226#endif
2227 union usrmsg usrmsg;
984263bc
MD
2228 char * path; char path_[PAD_(char *)];
2229 int mode; char mode_[PAD_(int)];
2230};
2231struct olseek_args {
245e4f17 2232#ifdef _KERNEL
df2244e3 2233 struct sysmsg sysmsg;
245e4f17
MD
2234#endif
2235 union usrmsg usrmsg;
984263bc
MD
2236 int fd; char fd_[PAD_(int)];
2237 long offset; char offset_[PAD_(long)];
2238 int whence; char whence_[PAD_(int)];
2239};
2240struct ostat_args {
245e4f17 2241#ifdef _KERNEL
df2244e3 2242 struct sysmsg sysmsg;
245e4f17
MD
2243#endif
2244 union usrmsg usrmsg;
984263bc
MD
2245 char * path; char path_[PAD_(char *)];
2246 struct ostat * ub; char ub_[PAD_(struct ostat *)];
2247};
2248struct olstat_args {
245e4f17 2249#ifdef _KERNEL
df2244e3 2250 struct sysmsg sysmsg;
245e4f17
MD
2251#endif
2252 union usrmsg usrmsg;
984263bc
MD
2253 char * path; char path_[PAD_(char *)];
2254 struct ostat * ub; char ub_[PAD_(struct ostat *)];
2255};
984263bc 2256struct ofstat_args {
245e4f17 2257#ifdef _KERNEL
df2244e3 2258 struct sysmsg sysmsg;
245e4f17
MD
2259#endif
2260 union usrmsg usrmsg;
984263bc
MD
2261 int fd; char fd_[PAD_(int)];
2262 struct ostat * sb; char sb_[PAD_(struct ostat *)];
2263};
2264struct getkerninfo_args {
245e4f17 2265#ifdef _KERNEL
df2244e3 2266 struct sysmsg sysmsg;
245e4f17
MD
2267#endif
2268 union usrmsg usrmsg;
984263bc
MD
2269 int op; char op_[PAD_(int)];
2270 char * where; char where_[PAD_(char *)];
2271 size_t * size; char size_[PAD_(size_t *)];
2272 int arg; char arg_[PAD_(int)];
2273};
2274struct ommap_args {
245e4f17 2275#ifdef _KERNEL
df2244e3 2276 struct sysmsg sysmsg;
245e4f17
MD
2277#endif
2278 union usrmsg usrmsg;
984263bc
MD
2279 void * addr; char addr_[PAD_(void *)];
2280 int len; char len_[PAD_(int)];
2281 int prot; char prot_[PAD_(int)];
2282 int flags; char flags_[PAD_(int)];
2283 int fd; char fd_[PAD_(int)];
2284 long pos; char pos_[PAD_(long)];
2285};
2286struct gethostname_args {
245e4f17 2287#ifdef _KERNEL
df2244e3 2288 struct sysmsg sysmsg;
245e4f17
MD
2289#endif
2290 union usrmsg usrmsg;
984263bc
MD
2291 char * hostname; char hostname_[PAD_(char *)];
2292 u_int len; char len_[PAD_(u_int)];
2293};
2294struct sethostname_args {
245e4f17 2295#ifdef _KERNEL
df2244e3 2296 struct sysmsg sysmsg;
245e4f17
MD
2297#endif
2298 union usrmsg usrmsg;
984263bc
MD
2299 char * hostname; char hostname_[PAD_(char *)];
2300 u_int len; char len_[PAD_(u_int)];
2301};
2302struct osend_args {
245e4f17 2303#ifdef _KERNEL
df2244e3 2304 struct sysmsg sysmsg;
245e4f17
MD
2305#endif
2306 union usrmsg usrmsg;
984263bc
MD
2307 int s; char s_[PAD_(int)];
2308 caddr_t buf; char buf_[PAD_(caddr_t)];
2309 int len; char len_[PAD_(int)];
2310 int flags; char flags_[PAD_(int)];
2311};
2312struct orecv_args {
245e4f17 2313#ifdef _KERNEL
df2244e3 2314 struct sysmsg sysmsg;
245e4f17
MD
2315#endif
2316 union usrmsg usrmsg;
984263bc
MD
2317 int s; char s_[PAD_(int)];
2318 caddr_t buf; char buf_[PAD_(caddr_t)];
2319 int len; char len_[PAD_(int)];
2320 int flags; char flags_[PAD_(int)];
2321};
984263bc 2322struct osigvec_args {
245e4f17 2323#ifdef _KERNEL
df2244e3 2324 struct sysmsg sysmsg;
245e4f17
MD
2325#endif
2326 union usrmsg usrmsg;
984263bc
MD
2327 int signum; char signum_[PAD_(int)];
2328 struct sigvec * nsv; char nsv_[PAD_(struct sigvec *)];
2329 struct sigvec * osv; char osv_[PAD_(struct sigvec *)];
2330};
2331struct osigblock_args {
245e4f17 2332#ifdef _KERNEL
df2244e3 2333 struct sysmsg sysmsg;
245e4f17
MD
2334#endif
2335 union usrmsg usrmsg;
984263bc
MD
2336 int mask; char mask_[PAD_(int)];
2337};
2338struct osigsetmask_args {
245e4f17 2339#ifdef _KERNEL
df2244e3 2340 struct sysmsg sysmsg;
245e4f17
MD
2341#endif
2342 union usrmsg usrmsg;
984263bc
MD
2343 int mask; char mask_[PAD_(int)];
2344};
984263bc 2345struct osigstack_args {
245e4f17 2346#ifdef _KERNEL
df2244e3 2347 struct sysmsg sysmsg;
245e4f17
MD
2348#endif
2349 union usrmsg usrmsg;
984263bc
MD
2350 struct sigstack * nss; char nss_[PAD_(struct sigstack *)];
2351 struct sigstack * oss; char oss_[PAD_(struct sigstack *)];
2352};
2353struct orecvmsg_args {
245e4f17 2354#ifdef _KERNEL
df2244e3 2355 struct sysmsg sysmsg;
245e4f17
MD
2356#endif
2357 union usrmsg usrmsg;
984263bc
MD
2358 int s; char s_[PAD_(int)];
2359 struct omsghdr * msg; char msg_[PAD_(struct omsghdr *)];
2360 int flags; char flags_[PAD_(int)];
2361};
2362struct osendmsg_args {
245e4f17 2363#ifdef _KERNEL
df2244e3 2364 struct sysmsg sysmsg;
245e4f17
MD
2365#endif
2366 union usrmsg usrmsg;
984263bc
MD
2367 int s; char s_[PAD_(int)];
2368 caddr_t msg; char msg_[PAD_(caddr_t)];
2369 int flags; char flags_[PAD_(int)];
2370};
2371struct otruncate_args {
245e4f17 2372#ifdef _KERNEL
df2244e3 2373 struct sysmsg sysmsg;
245e4f17
MD
2374#endif
2375 union usrmsg usrmsg;
984263bc
MD
2376 char * path; char path_[PAD_(char *)];
2377 long length; char length_[PAD_(long)];
2378};
2379struct oftruncate_args {
245e4f17 2380#ifdef _KERNEL
df2244e3 2381 struct sysmsg sysmsg;
245e4f17
MD
2382#endif
2383 union usrmsg usrmsg;
984263bc
MD
2384 int fd; char fd_[PAD_(int)];
2385 long length; char length_[PAD_(long)];
2386};
2387struct ogetpeername_args {
245e4f17 2388#ifdef _KERNEL
df2244e3 2389 struct sysmsg sysmsg;
245e4f17
MD
2390#endif
2391 union usrmsg usrmsg;
984263bc
MD
2392 int fdes; char fdes_[PAD_(int)];
2393 caddr_t asa; char asa_[PAD_(caddr_t)];
2394 int * alen; char alen_[PAD_(int *)];
2395};
2396struct osethostid_args {
245e4f17 2397#ifdef _KERNEL
df2244e3 2398 struct sysmsg sysmsg;
245e4f17
MD
2399#endif
2400 union usrmsg usrmsg;
984263bc
MD
2401 long hostid; char hostid_[PAD_(long)];
2402};
2403struct ogetrlimit_args {
245e4f17 2404#ifdef _KERNEL
df2244e3 2405 struct sysmsg sysmsg;
245e4f17
MD
2406#endif
2407 union usrmsg usrmsg;
984263bc
MD
2408 u_int which; char which_[PAD_(u_int)];
2409 struct orlimit * rlp; char rlp_[PAD_(struct orlimit *)];
2410};
2411struct osetrlimit_args {
245e4f17 2412#ifdef _KERNEL
df2244e3 2413 struct sysmsg sysmsg;
245e4f17
MD
2414#endif
2415 union usrmsg usrmsg;
984263bc
MD
2416 u_int which; char which_[PAD_(u_int)];
2417 struct orlimit * rlp; char rlp_[PAD_(struct orlimit *)];
2418};
2419struct okillpg_args {
245e4f17 2420#ifdef _KERNEL
df2244e3 2421 struct sysmsg sysmsg;
245e4f17
MD
2422#endif
2423 union usrmsg usrmsg;
984263bc
MD
2424 int pgid; char pgid_[PAD_(int)];
2425 int signum; char signum_[PAD_(int)];
2426};
2427struct ogetdirentries_args {
245e4f17 2428#ifdef _KERNEL
df2244e3 2429 struct sysmsg sysmsg;
245e4f17
MD
2430#endif
2431 union usrmsg usrmsg;
984263bc
MD
2432 int fd; char fd_[PAD_(int)];
2433 char * buf; char buf_[PAD_(char *)];
2434 u_int count; char count_[PAD_(u_int)];
2435 long * basep; char basep_[PAD_(long *)];
2436};
4fd10eb6
MD
2437
2438#ifdef _KERNEL
2439
b153f746
RG
2440int ocreat (struct ocreat_args *);
2441int olseek (struct olseek_args *);
2442int ostat (struct ostat_args *);
2443int olstat (struct olstat_args *);
b153f746
RG
2444int ofstat (struct ofstat_args *);
2445int ogetkerninfo (struct getkerninfo_args *);
2446int ogetpagesize (struct getpagesize_args *);
2447int ommap (struct ommap_args *);
2448int owait (struct owait_args *);
2449int ogethostname (struct gethostname_args *);
2450int osethostname (struct sethostname_args *);
2451int oaccept (struct accept_args *);
2452int osend (struct osend_args *);
2453int orecv (struct orecv_args *);
b153f746
RG
2454int osigvec (struct osigvec_args *);
2455int osigblock (struct osigblock_args *);
2456int osigsetmask (struct osigsetmask_args *);
b153f746
RG
2457int osigstack (struct osigstack_args *);
2458int orecvmsg (struct orecvmsg_args *);
2459int osendmsg (struct osendmsg_args *);
2460int orecvfrom (struct recvfrom_args *);
2461int otruncate (struct otruncate_args *);
2462int oftruncate (struct oftruncate_args *);
2463int ogetpeername (struct ogetpeername_args *);
2464int ogethostid (struct ogethostid_args *);
2465int osethostid (struct osethostid_args *);
2466int ogetrlimit (struct ogetrlimit_args *);
2467int osetrlimit (struct osetrlimit_args *);
2468int okillpg (struct okillpg_args *);
2469int oquota (struct oquota_args *);
2470int ogetsockname (struct getsockname_args *);
2471int ogetdirentries (struct ogetdirentries_args *);
984263bc 2472
4fd10eb6
MD
2473#endif /* _KERNEL */
2474
984263bc
MD
2475#endif /* COMPAT_43 */
2476
f1787048
JS
2477
2478#ifdef COMPAT_DF12
2479
2480#ifdef COMPAT_43
2481#endif
2482struct dfbsd12_stat_args {
2483#ifdef _KERNEL
2484 struct sysmsg sysmsg;
2485#endif
2486 union usrmsg usrmsg;
2487 const char * path; char path_[PAD_(const char *)];
2488 struct dfbsd12_stat * ub; char ub_[PAD_(struct dfbsd12_stat *)];
2489};
2490struct dfbsd12_fstat_args {
2491#ifdef _KERNEL
2492 struct sysmsg sysmsg;
2493#endif
2494 union usrmsg usrmsg;
2495 int fd; char fd_[PAD_(int)];
2496 struct dfbsd12_stat * sb; char sb_[PAD_(struct dfbsd12_stat *)];
2497};
2498struct dfbsd12_lstat_args {
2499#ifdef _KERNEL
2500 struct sysmsg sysmsg;
2501#endif
2502 union usrmsg usrmsg;
2503 const char * path; char path_[PAD_(const char *)];
2504 struct dfbsd12_stat * ub; char ub_[PAD_(struct dfbsd12_stat *)];
2505};
01f31ab3
JS
2506struct dfbsd12_getdirentries_args {
2507#ifdef _KERNEL
2508 struct sysmsg sysmsg;
2509#endif
2510 union usrmsg usrmsg;
2511 int fd; char fd_[PAD_(int)];
2512 char * buf; char buf_[PAD_(char *)];
2513 u_int count; char count_[PAD_(u_int)];
2514 long * basep; char basep_[PAD_(long *)];
2515};
2516struct dfbsd12_getdents_args {
2517#ifdef _KERNEL
2518 struct sysmsg sysmsg;
2519#endif
2520 union usrmsg usrmsg;
2521 int fd; char fd_[PAD_(int)];
2522 char * buf; char buf_[PAD_(char *)];
2523 size_t count; char count_[PAD_(size_t)];
2524};
f1787048
JS
2525struct dfbsd12_fhstat_args {
2526#ifdef _KERNEL
2527 struct sysmsg sysmsg;
2528#endif
2529 union usrmsg usrmsg;
2530 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
2531 struct dfbsd12_stat * sb; char sb_[PAD_(struct dfbsd12_stat *)];
2532};
2533
2534#ifdef _KERNEL
2535
2536int dfbsd12_stat (struct dfbsd12_stat_args *);
2537int dfbsd12_fstat (struct dfbsd12_fstat_args *);
2538int dfbsd12_lstat (struct dfbsd12_lstat_args *);
01f31ab3
JS
2539int dfbsd12_getdirentries (struct dfbsd12_getdirentries_args *);
2540int dfbsd12_getdents (struct dfbsd12_getdents_args *);
f1787048
JS
2541int dfbsd12_fhstat (struct dfbsd12_fhstat_args *);
2542
2543#endif /* _KERNEL */
2544
2545#endif /* COMPAT_DF12 */
2546
2547
2548#ifdef _KERNEL
2549
2550#ifdef COMPAT_43
2551#endif
2552int nosys (struct nosys_args *);
2553void sys_exit (struct sys_exit_args *);
2554int fork (struct fork_args *);
2555int read (struct read_args *);
2556int write (struct write_args *);
2557int open (struct open_args *);
2558int close (struct close_args *);
2559int wait4 (struct wait_args *);
2560int link (struct link_args *);
2561int unlink (struct unlink_args *);
2562int chdir (struct chdir_args *);
2563int fchdir (struct fchdir_args *);
2564int mknod (struct mknod_args *);
2565int chmod (struct chmod_args *);
2566int chown (struct chown_args *);
2567int obreak (struct obreak_args *);
2568int getfsstat (struct getfsstat_args *);
2569int getpid (struct getpid_args *);
2570int mount (struct mount_args *);
2571int unmount (struct unmount_args *);
2572int setuid (struct setuid_args *);
2573int getuid (struct getuid_args *);
2574int geteuid (struct geteuid_args *);
2575int ptrace (struct ptrace_args *);
2576int recvmsg (struct recvmsg_args *);
2577int sendmsg (struct sendmsg_args *);
2578int recvfrom (struct recvfrom_args *);
2579int accept (struct accept_args *);
2580int getpeername (struct getpeername_args *);
2581int getsockname (struct getsockname_args *);
2582int access (struct access_args *);
2583int chflags (struct chflags_args *);
2584int fchflags (struct fchflags_args *);
2585int sync (struct sync_args *);
2586int kill (struct kill_args *);
2587int getppid (struct getppid_args *);
2588int dup (struct dup_args *);
2589int pipe (struct pipe_args *);
2590int getegid (struct getegid_args *);
2591int profil (struct profil_args *);
2592int ktrace (struct ktrace_args *);
2593int getgid (struct getgid_args *);
2594int getlogin (struct getlogin_args *);
2595int setlogin (struct setlogin_args *);
2596int acct (struct acct_args *);
2597int sigaltstack (struct sigaltstack_args *);
2598int ioctl (struct ioctl_args *);
2599int reboot (struct reboot_args *);
2600int revoke (struct revoke_args *);
2601int symlink (struct symlink_args *);
2602int readlink (struct readlink_args *);
2603int execve (struct execve_args *);
2604int umask (struct umask_args *);
2605int chroot (struct chroot_args *);
2606int msync (struct msync_args *);
2607int vfork (struct vfork_args *);
2608int sbrk (struct sbrk_args *);
2609int sstk (struct sstk_args *);
2610int ovadvise (struct ovadvise_args *);
2611int munmap (struct munmap_args *);
2612int mprotect (struct mprotect_args *);
2613int madvise (struct madvise_args *);
2614int mincore (struct mincore_args *);
2615int getgroups (struct getgroups_args *);
2616int setgroups (struct setgroups_args *);
2617int getpgrp (struct getpgrp_args *);
2618int setpgid (struct setpgid_args *);
2619int setitimer (struct setitimer_args *);
2620int swapon (struct swapon_args *);
2621int getitimer (struct getitimer_args *);
2622int getdtablesize (struct getdtablesize_args *);
2623int dup2 (struct dup2_args *);
2624int fcntl (struct fcntl_args *);
2625int select (struct select_args *);
2626int fsync (struct fsync_args *);
2627int setpriority (struct setpriority_args *);
2628int socket (struct socket_args *);
2629int connect (struct connect_args *);
2630int getpriority (struct getpriority_args *);
2631int bind (struct bind_args *);
2632int setsockopt (struct setsockopt_args *);
2633int listen (struct listen_args *);
2634int gettimeofday (struct gettimeofday_args *);
2635int getrusage (struct getrusage_args *);
2636int getsockopt (struct getsockopt_args *);
2637int readv (struct readv_args *);
2638int writev (struct writev_args *);
2639int settimeofday (struct settimeofday_args *);
2640int fchown (struct fchown_args *);
2641int fchmod (struct fchmod_args *);
2642int setreuid (struct setreuid_args *);
2643int setregid (struct setregid_args *);
2644int rename (struct rename_args *);
2645int flock (struct flock_args *);
2646int mkfifo (struct mkfifo_args *);
2647int sendto (struct sendto_args *);
2648int shutdown (struct shutdown_args *);
2649int socketpair (struct socketpair_args *);
2650int mkdir (struct mkdir_args *);
2651int rmdir (struct rmdir_args *);
2652int utimes (struct utimes_args *);
2653int adjtime (struct adjtime_args *);
2654int setsid (struct setsid_args *);
2655int quotactl (struct quotactl_args *);
2656int nfssvc (struct nfssvc_args *);
2657int statfs (struct statfs_args *);
2658int fstatfs (struct fstatfs_args *);
2659int getfh (struct getfh_args *);
2660int getdomainname (struct getdomainname_args *);
2661int setdomainname (struct setdomainname_args *);
2662int uname (struct uname_args *);
2663int sysarch (struct sysarch_args *);
2664int rtprio (struct rtprio_args *);
2665int semsys (struct semsys_args *);
2666int msgsys (struct msgsys_args *);
2667int shmsys (struct shmsys_args *);
2668int pread (struct pread_args *);
2669int pwrite (struct pwrite_args *);
2670int ntp_adjtime (struct ntp_adjtime_args *);
2671int setgid (struct setgid_args *);
2672int setegid (struct setegid_args *);
2673int seteuid (struct seteuid_args *);
2674int pathconf (struct pathconf_args *);
2675int fpathconf (struct fpathconf_args *);
2676int getrlimit (struct __getrlimit_args *);
2677int setrlimit (struct __setrlimit_args *);
f1787048
JS
2678int mmap (struct mmap_args *);
2679int lseek (struct lseek_args *);
2680int truncate (struct truncate_args *);
2681int ftruncate (struct ftruncate_args *);
2682int __sysctl (struct sysctl_args *);
2683int mlock (struct mlock_args *);
2684int munlock (struct munlock_args *);
2685int undelete (struct undelete_args *);
2686int futimes (struct futimes_args *);
2687int getpgid (struct getpgid_args *);
2688int poll (struct poll_args *);
2689int lkmnosys (struct nosys_args *);
2690int __semctl (struct __semctl_args *);
2691int semget (struct semget_args *);
2692int semop (struct semop_args *);
2693int msgctl (struct msgctl_args *);
2694int msgget (struct msgget_args *);
2695int msgsnd (struct msgsnd_args *);
2696int msgrcv (struct msgrcv_args *);
2697int shmat (struct shmat_args *);
2698int shmctl (struct shmctl_args *);
2699int shmdt (struct shmdt_args *);
2700int shmget (struct shmget_args *);
2701int clock_gettime (struct clock_gettime_args *);
2702int clock_settime (struct clock_settime_args *);
2703int clock_getres (struct clock_getres_args *);
2704int nanosleep (struct nanosleep_args *);
2705int minherit (struct minherit_args *);
2706int rfork (struct rfork_args *);
2707int openbsd_poll (struct openbsd_poll_args *);
2708int issetugid (struct issetugid_args *);
2709int lchown (struct lchown_args *);
f1787048
JS
2710int lchmod (struct lchmod_args *);
2711int lutimes (struct lutimes_args *);
7f83ed38
MD
2712int preadv (struct preadv_args *);
2713int pwritev (struct pwritev_args *);
f1787048
JS
2714int fhstatfs (struct fhstatfs_args *);
2715int fhopen (struct fhopen_args *);
2716int modnext (struct modnext_args *);
2717int modstat (struct modstat_args *);
2718int modfnext (struct modfnext_args *);
2719int modfind (struct modfind_args *);
2720int kldload (struct kldload_args *);
2721int kldunload (struct kldunload_args *);
2722int kldfind (struct kldfind_args *);
2723int kldnext (struct kldnext_args *);
2724int kldstat (struct kldstat_args *);
2725int kldfirstmod (struct kldfirstmod_args *);
2726int getsid (struct getsid_args *);
2727int setresuid (struct setresuid_args *);
2728int setresgid (struct setresgid_args *);
2729int aio_return (struct aio_return_args *);
2730int aio_suspend (struct aio_suspend_args *);
2731int aio_cancel (struct aio_cancel_args *);
2732int aio_error (struct aio_error_args *);
2733int aio_read (struct aio_read_args *);
2734int aio_write (struct aio_write_args *);
2735int lio_listio (struct lio_listio_args *);
2736int yield (struct yield_args *);
2737int thr_sleep (struct thr_sleep_args *);
2738int thr_wakeup (struct thr_wakeup_args *);
2739int mlockall (struct mlockall_args *);
2740int munlockall (struct munlockall_args *);
2741int __getcwd (struct __getcwd_args *);
2742int sched_setparam (struct sched_setparam_args *);
2743int sched_getparam (struct sched_getparam_args *);
2744int sched_setscheduler (struct sched_setscheduler_args *);
2745int sched_getscheduler (struct sched_getscheduler_args *);
2746int sched_yield (struct sched_yield_args *);
2747int sched_get_priority_max (struct sched_get_priority_max_args *);
2748int sched_get_priority_min (struct sched_get_priority_min_args *);
2749int sched_rr_get_interval (struct sched_rr_get_interval_args *);
2750int utrace (struct utrace_args *);
2751int kldsym (struct kldsym_args *);
2752int jail (struct jail_args *);
2753int sigprocmask (struct sigprocmask_args *);
2754int sigsuspend (struct sigsuspend_args *);
2755int sigaction (struct sigaction_args *);
2756int sigpending (struct sigpending_args *);
2757int sigreturn (struct sigreturn_args *);
2758int sigtimedwait (struct sigtimedwait_args *);
2759int sigwaitinfo (struct sigwaitinfo_args *);
2760int __acl_get_file (struct __acl_get_file_args *);
2761int __acl_set_file (struct __acl_set_file_args *);
2762int __acl_get_fd (struct __acl_get_fd_args *);
2763int __acl_set_fd (struct __acl_set_fd_args *);
2764int __acl_delete_file (struct __acl_delete_file_args *);
2765int __acl_delete_fd (struct __acl_delete_fd_args *);
2766int __acl_aclcheck_file (struct __acl_aclcheck_file_args *);
2767int __acl_aclcheck_fd (struct __acl_aclcheck_fd_args *);
2768int extattrctl (struct extattrctl_args *);
2769int extattr_set_file (struct extattr_set_file_args *);
2770int extattr_get_file (struct extattr_get_file_args *);
2771int extattr_delete_file (struct extattr_delete_file_args *);
2772int aio_waitcomplete (struct aio_waitcomplete_args *);
2773int getresuid (struct getresuid_args *);
2774int getresgid (struct getresgid_args *);
2775int kqueue (struct kqueue_args *);
2776int kevent (struct kevent_args *);
2777int sctp_peeloff (struct sctp_peeloff_args *);
2778int sendfile (struct sendfile_args *);
2779int varsym_set (struct varsym_set_args *);
2780int varsym_get (struct varsym_get_args *);
2781int varsym_list (struct varsym_list_args *);
2782int upc_register (struct upc_register_args *);
2783int upc_control (struct upc_control_args *);
2784int caps_sys_service (struct caps_sys_service_args *);
2785int caps_sys_client (struct caps_sys_client_args *);
2786int caps_sys_close (struct caps_sys_close_args *);
2787int caps_sys_put (struct caps_sys_put_args *);
2788int caps_sys_reply (struct caps_sys_reply_args *);
2789int caps_sys_get (struct caps_sys_get_args *);
2790int caps_sys_wait (struct caps_sys_wait_args *);
2791int caps_sys_abort (struct caps_sys_abort_args *);
2792int caps_sys_getgen (struct caps_sys_getgen_args *);
2793int caps_sys_setgen (struct caps_sys_setgen_args *);
2794int exec_sys_register (struct exec_sys_register_args *);
2795int exec_sys_unregister (struct exec_sys_unregister_args *);
2796int sys_checkpoint (struct sys_checkpoint_args *);
2797int mountctl (struct mountctl_args *);
2798int umtx_sleep (struct umtx_sleep_args *);
2799int umtx_wakeup (struct umtx_wakeup_args *);
2800int jail_attach (struct jail_attach_args *);
2801int sys_set_tls_area (struct sys_set_tls_area_args *);
2802int sys_get_tls_area (struct sys_get_tls_area_args *);
2803int closefrom (struct closefrom_args *);
2804int stat (struct stat_args *);
2805int fstat (struct fstat_args *);
2806int lstat (struct lstat_args *);
2807int fhstat (struct fhstat_args *);
01f31ab3
JS
2808int getdirentries (struct getdirentries_args *);
2809int getdents (struct getdents_args *);
cb7f4ab1 2810int usched_set (struct usched_set_args *);
984263bc
MD
2811
2812#endif /* !_SYS_SYSPROTO_H_ */
f1787048
JS
2813#undef PAD_
2814
2815#endif /* _KERNEL */