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