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