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