Adjust nfs module loading to use nfs.ko (4.x style) rather then the
[dragonfly.git] / sys / sys / sysproto.h
CommitLineData
984263bc
MD
1/*
2 * System call prototypes.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
0a004aa2
MD
5 * $DragonFly: src/sys/sys/sysproto.h,v 1.12 2003/11/10 23:58:58 dillon Exp $
6 * created from DragonFly: src/sys/kern/syscalls.master,v 1.7 2003/11/05 23:26:20 dillon Exp
984263bc
MD
7 */
8
9#ifndef _SYS_SYSPROTO_H_
10#define _SYS_SYSPROTO_H_
11
12#include <sys/signal.h>
13
14#include <sys/acl.h>
15
a64ba182
MD
16#include <sys/msgport.h>
17
c7114eea
MD
18#include <sys/sysmsg.h>
19
984263bc
MD
20#define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \
21 0 : sizeof(register_t) - sizeof(t))
22
23struct nosys_args {
245e4f17 24#ifdef _KERNEL
c7114eea 25 union 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
c7114eea 32 union 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
c7114eea 39 union sysmsg sysmsg;
245e4f17
MD
40#endif
41 union usrmsg usrmsg;
984263bc
MD
42 register_t dummy;
43};
44struct read_args {
245e4f17 45#ifdef _KERNEL
c7114eea 46 union 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
c7114eea 55 union 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
c7114eea 64 union 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
c7114eea 73 union 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
c7114eea 80 union 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
c7114eea 90 union 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
c7114eea 98 union 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
c7114eea 105 union 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
c7114eea 112 union 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
c7114eea 119 union 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
c7114eea 128 union 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
c7114eea 136 union 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
c7114eea 145 union 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
c7114eea 152 union 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
c7114eea 161 union sysmsg sysmsg;
245e4f17
MD
162#endif
163 union usrmsg usrmsg;
984263bc
MD
164 register_t dummy;
165};
166struct mount_args {
245e4f17 167#ifdef _KERNEL
c7114eea 168 union 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
c7114eea 178 union 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
c7114eea 186 union 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
c7114eea 193 union sysmsg sysmsg;
245e4f17
MD
194#endif
195 union usrmsg usrmsg;
984263bc
MD
196 register_t dummy;
197};
198struct geteuid_args {
245e4f17 199#ifdef _KERNEL
c7114eea 200 union sysmsg sysmsg;
245e4f17
MD
201#endif
202 union usrmsg usrmsg;
984263bc
MD
203 register_t dummy;
204};
205struct ptrace_args {
245e4f17 206#ifdef _KERNEL
c7114eea 207 union 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
c7114eea 217 union 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
c7114eea 226 union 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
c7114eea 235 union 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
c7114eea 247 union 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
c7114eea 256 union 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
c7114eea 265 union 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
c7114eea 274 union 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
c7114eea 282 union 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
c7114eea 290 union 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
c7114eea 298 union sysmsg sysmsg;
245e4f17
MD
299#endif
300 union usrmsg usrmsg;
984263bc
MD
301 register_t dummy;
302};
303struct kill_args {
245e4f17 304#ifdef _KERNEL
c7114eea 305 union 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
c7114eea 313 union sysmsg sysmsg;
245e4f17
MD
314#endif
315 union usrmsg usrmsg;
984263bc
MD
316 register_t dummy;
317};
318struct dup_args {
245e4f17 319#ifdef _KERNEL
c7114eea 320 union 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
c7114eea 327 union sysmsg sysmsg;
245e4f17
MD
328#endif
329 union usrmsg usrmsg;
984263bc
MD
330 register_t dummy;
331};
332struct getegid_args {
245e4f17 333#ifdef _KERNEL
c7114eea 334 union sysmsg sysmsg;
245e4f17
MD
335#endif
336 union usrmsg usrmsg;
984263bc
MD
337 register_t dummy;
338};
339struct profil_args {
245e4f17 340#ifdef _KERNEL
c7114eea 341 union 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
c7114eea 351 union 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
c7114eea 361 union sysmsg sysmsg;
245e4f17
MD
362#endif
363 union usrmsg usrmsg;
984263bc
MD
364 register_t dummy;
365};
366struct getlogin_args {
245e4f17 367#ifdef _KERNEL
c7114eea 368 union 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
c7114eea 376 union 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
c7114eea 383 union 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
c7114eea 390 union 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
c7114eea 398 union 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
c7114eea 407 union 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
c7114eea 414 union 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
c7114eea 421 union 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
c7114eea 429 union 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
c7114eea 438 union 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
c7114eea 447 union 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
c7114eea 454 union 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
c7114eea 461 union sysmsg sysmsg;
245e4f17
MD
462#endif
463 union usrmsg usrmsg;
984263bc
MD
464 register_t dummy;
465};
466struct msync_args {
245e4f17 467#ifdef _KERNEL
c7114eea 468 union 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
c7114eea 477 union sysmsg sysmsg;
245e4f17
MD
478#endif
479 union usrmsg usrmsg;
984263bc
MD
480 register_t dummy;
481};
482struct sbrk_args {
245e4f17 483#ifdef _KERNEL
c7114eea 484 union 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
c7114eea 491 union 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
c7114eea 498 union 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
c7114eea 505 union 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
c7114eea 513 union 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
c7114eea 522 union 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
c7114eea 531 union 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
c7114eea 540 union 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
c7114eea 548 union 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
c7114eea 556 union sysmsg sysmsg;
245e4f17
MD
557#endif
558 union usrmsg usrmsg;
984263bc
MD
559 register_t dummy;
560};
561struct setpgid_args {
245e4f17 562#ifdef _KERNEL
c7114eea 563 union 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
c7114eea 571 union 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
c7114eea 580 union sysmsg sysmsg;
245e4f17
MD
581#endif
582 union usrmsg usrmsg;
984263bc
MD
583 register_t dummy;
584};
585struct swapon_args {
245e4f17 586#ifdef _KERNEL
c7114eea 587 union 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
c7114eea 594 union 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
c7114eea 602 union sysmsg sysmsg;
245e4f17
MD
603#endif
604 union usrmsg usrmsg;
984263bc
MD
605 register_t dummy;
606};
607struct dup2_args {
245e4f17 608#ifdef _KERNEL
c7114eea 609 union 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
c7114eea 617 union 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
c7114eea 626 union 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
c7114eea 637 union 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
c7114eea 644 union 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
c7114eea 653 union 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
c7114eea 662 union 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
c7114eea 671 union 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
c7114eea 679 union 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
c7114eea 688 union 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
c7114eea 699 union 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
c7114eea 707 union 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
c7114eea 715 union 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
c7114eea 723 union 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
c7114eea 734 union 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
c7114eea 743 union 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
c7114eea 752 union 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
c7114eea 760 union 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
c7114eea 769 union 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
c7114eea 777 union 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
c7114eea 785 union 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
c7114eea 793 union 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
c7114eea 801 union 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
c7114eea 809 union 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
c7114eea 817 union 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
c7114eea 829 union 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
c7114eea 837 union 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
c7114eea 847 union 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
c7114eea 855 union 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
c7114eea 862 union 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
c7114eea 870 union 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
c7114eea 878 union sysmsg sysmsg;
245e4f17
MD
879#endif
880 union usrmsg usrmsg;
984263bc
MD
881 register_t dummy;
882};
883struct setsid_args {
245e4f17 884#ifdef _KERNEL
c7114eea 885 union sysmsg sysmsg;
245e4f17
MD
886#endif
887 union usrmsg usrmsg;
984263bc
MD
888 register_t dummy;
889};
890struct quotactl_args {
245e4f17 891#ifdef _KERNEL
c7114eea 892 union 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
c7114eea 902 union sysmsg sysmsg;
245e4f17
MD
903#endif
904 union usrmsg usrmsg;
984263bc
MD
905 register_t dummy;
906};
907struct nfssvc_args {
245e4f17 908#ifdef _KERNEL
c7114eea 909 union 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
c7114eea 917 union 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
c7114eea 925 union 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
c7114eea 933 union 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
c7114eea 941 union 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
c7114eea 949 union 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
c7114eea 957 union 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
c7114eea 964 union 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
c7114eea 972 union 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
c7114eea 981 union 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
c7114eea 992 union 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
c7114eea 1004 union 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
c7114eea 1014 union 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
c7114eea 1025 union 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
c7114eea 1036 union 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
c7114eea 1043 union 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
c7114eea 1050 union 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
c7114eea 1057 union 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
c7114eea 1064 union 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
c7114eea 1072 union 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
c7114eea 1080 union 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
c7114eea 1088 union 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
c7114eea 1096 union 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
c7114eea 1104 union 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
c7114eea 1112 union 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
c7114eea 1120 union 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
c7114eea 1130 union 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
c7114eea 1143 union 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
c7114eea 1153 union 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
c7114eea 1162 union 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
c7114eea 1171 union 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
c7114eea 1183 union 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
c7114eea 1191 union 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
c7114eea 1199 union 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
c7114eea 1206 union 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
c7114eea 1214 union 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
c7114eea 1221 union 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
c7114eea 1230 union 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
c7114eea 1240 union 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
c7114eea 1249 union 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
c7114eea 1258 union 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
c7114eea 1267 union 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
c7114eea 1275 union 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
c7114eea 1285 union 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
c7114eea 1296 union 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
c7114eea 1305 union 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
c7114eea 1314 union 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
c7114eea 1321 union 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
c7114eea 1330 union 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
c7114eea 1338 union 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
c7114eea 1346 union 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
c7114eea 1354 union 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
c7114eea 1362 union 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
c7114eea 1371 union 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
c7114eea 1378 union 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
c7114eea 1387 union sysmsg sysmsg;
245e4f17
MD
1388#endif
1389 union usrmsg usrmsg;
984263bc
MD
1390 register_t dummy;
1391};
1392struct lchown_args {
245e4f17 1393#ifdef _KERNEL
c7114eea 1394 union 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
c7114eea 1403 union 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
c7114eea 1412 union 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
c7114eea 1420 union 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};
1426struct nstat_args {
245e4f17 1427#ifdef _KERNEL
c7114eea 1428 union sysmsg sysmsg;
245e4f17
MD
1429#endif
1430 union usrmsg usrmsg;
984263bc
MD
1431 char * path; char path_[PAD_(char *)];
1432 struct nstat * ub; char ub_[PAD_(struct nstat *)];
1433};
1434struct nfstat_args {
245e4f17 1435#ifdef _KERNEL
c7114eea 1436 union sysmsg sysmsg;
245e4f17
MD
1437#endif
1438 union usrmsg usrmsg;
984263bc
MD
1439 int fd; char fd_[PAD_(int)];
1440 struct nstat * sb; char sb_[PAD_(struct nstat *)];
1441};
1442struct nlstat_args {
245e4f17 1443#ifdef _KERNEL
c7114eea 1444 union sysmsg sysmsg;
245e4f17
MD
1445#endif
1446 union usrmsg usrmsg;
984263bc
MD
1447 char * path; char path_[PAD_(char *)];
1448 struct nstat * ub; char ub_[PAD_(struct nstat *)];
1449};
1450struct fhstatfs_args {
245e4f17 1451#ifdef _KERNEL
c7114eea 1452 union sysmsg sysmsg;
245e4f17
MD
1453#endif
1454 union usrmsg usrmsg;
984263bc
MD
1455 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
1456 struct statfs * buf; char buf_[PAD_(struct statfs *)];
1457};
1458struct fhopen_args {
245e4f17 1459#ifdef _KERNEL
c7114eea 1460 union sysmsg sysmsg;
245e4f17
MD
1461#endif
1462 union usrmsg usrmsg;
984263bc
MD
1463 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
1464 int flags; char flags_[PAD_(int)];
1465};
1466struct fhstat_args {
245e4f17 1467#ifdef _KERNEL
c7114eea 1468 union sysmsg sysmsg;
245e4f17
MD
1469#endif
1470 union usrmsg usrmsg;
984263bc
MD
1471 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
1472 struct stat * sb; char sb_[PAD_(struct stat *)];
1473};
1474struct modnext_args {
245e4f17 1475#ifdef _KERNEL
c7114eea 1476 union sysmsg sysmsg;
245e4f17
MD
1477#endif
1478 union usrmsg usrmsg;
984263bc
MD
1479 int modid; char modid_[PAD_(int)];
1480};
1481struct modstat_args {
245e4f17 1482#ifdef _KERNEL
c7114eea 1483 union sysmsg sysmsg;
245e4f17
MD
1484#endif
1485 union usrmsg usrmsg;
984263bc
MD
1486 int modid; char modid_[PAD_(int)];
1487 struct module_stat * stat; char stat_[PAD_(struct module_stat *)];
1488};
1489struct modfnext_args {
245e4f17 1490#ifdef _KERNEL
c7114eea 1491 union sysmsg sysmsg;
245e4f17
MD
1492#endif
1493 union usrmsg usrmsg;
984263bc
MD
1494 int modid; char modid_[PAD_(int)];
1495};
1496struct modfind_args {
245e4f17 1497#ifdef _KERNEL
c7114eea 1498 union sysmsg sysmsg;
245e4f17
MD
1499#endif
1500 union usrmsg usrmsg;
984263bc
MD
1501 const char * name; char name_[PAD_(const char *)];
1502};
1503struct kldload_args {
245e4f17 1504#ifdef _KERNEL
c7114eea 1505 union sysmsg sysmsg;
245e4f17
MD
1506#endif
1507 union usrmsg usrmsg;
984263bc
MD
1508 const char * file; char file_[PAD_(const char *)];
1509};
1510struct kldunload_args {
245e4f17 1511#ifdef _KERNEL
c7114eea 1512 union sysmsg sysmsg;
245e4f17
MD
1513#endif
1514 union usrmsg usrmsg;
984263bc
MD
1515 int fileid; char fileid_[PAD_(int)];
1516};
1517struct kldfind_args {
245e4f17 1518#ifdef _KERNEL
c7114eea 1519 union sysmsg sysmsg;
245e4f17
MD
1520#endif
1521 union usrmsg usrmsg;
984263bc
MD
1522 const char * file; char file_[PAD_(const char *)];
1523};
1524struct kldnext_args {
245e4f17 1525#ifdef _KERNEL
c7114eea 1526 union sysmsg sysmsg;
245e4f17
MD
1527#endif
1528 union usrmsg usrmsg;
984263bc
MD
1529 int fileid; char fileid_[PAD_(int)];
1530};
1531struct kldstat_args {
245e4f17 1532#ifdef _KERNEL
c7114eea 1533 union sysmsg sysmsg;
245e4f17
MD
1534#endif
1535 union usrmsg usrmsg;
984263bc
MD
1536 int fileid; char fileid_[PAD_(int)];
1537 struct kld_file_stat * stat; char stat_[PAD_(struct kld_file_stat *)];
1538};
1539struct kldfirstmod_args {
245e4f17 1540#ifdef _KERNEL
c7114eea 1541 union sysmsg sysmsg;
245e4f17
MD
1542#endif
1543 union usrmsg usrmsg;
984263bc
MD
1544 int fileid; char fileid_[PAD_(int)];
1545};
1546struct getsid_args {
245e4f17 1547#ifdef _KERNEL
c7114eea 1548 union sysmsg sysmsg;
245e4f17
MD
1549#endif
1550 union usrmsg usrmsg;
984263bc
MD
1551 pid_t pid; char pid_[PAD_(pid_t)];
1552};
1553struct setresuid_args {
245e4f17 1554#ifdef _KERNEL
c7114eea 1555 union sysmsg sysmsg;
245e4f17
MD
1556#endif
1557 union usrmsg usrmsg;
984263bc
MD
1558 uid_t ruid; char ruid_[PAD_(uid_t)];
1559 uid_t euid; char euid_[PAD_(uid_t)];
1560 uid_t suid; char suid_[PAD_(uid_t)];
1561};
1562struct setresgid_args {
245e4f17 1563#ifdef _KERNEL
c7114eea 1564 union sysmsg sysmsg;
245e4f17
MD
1565#endif
1566 union usrmsg usrmsg;
984263bc
MD
1567 gid_t rgid; char rgid_[PAD_(gid_t)];
1568 gid_t egid; char egid_[PAD_(gid_t)];
1569 gid_t sgid; char sgid_[PAD_(gid_t)];
1570};
1571struct aio_return_args {
245e4f17 1572#ifdef _KERNEL
c7114eea 1573 union sysmsg sysmsg;
245e4f17
MD
1574#endif
1575 union usrmsg usrmsg;
984263bc
MD
1576 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1577};
1578struct aio_suspend_args {
245e4f17 1579#ifdef _KERNEL
c7114eea 1580 union sysmsg sysmsg;
245e4f17
MD
1581#endif
1582 union usrmsg usrmsg;
984263bc
MD
1583 struct aiocb *const * aiocbp; char aiocbp_[PAD_(struct aiocb *const *)];
1584 int nent; char nent_[PAD_(int)];
1585 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1586};
1587struct aio_cancel_args {
245e4f17 1588#ifdef _KERNEL
c7114eea 1589 union sysmsg sysmsg;
245e4f17
MD
1590#endif
1591 union usrmsg usrmsg;
984263bc
MD
1592 int fd; char fd_[PAD_(int)];
1593 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1594};
1595struct aio_error_args {
245e4f17 1596#ifdef _KERNEL
c7114eea 1597 union sysmsg sysmsg;
245e4f17
MD
1598#endif
1599 union usrmsg usrmsg;
984263bc
MD
1600 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1601};
1602struct aio_read_args {
245e4f17 1603#ifdef _KERNEL
c7114eea 1604 union sysmsg sysmsg;
245e4f17
MD
1605#endif
1606 union usrmsg usrmsg;
984263bc
MD
1607 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1608};
1609struct aio_write_args {
245e4f17 1610#ifdef _KERNEL
c7114eea 1611 union sysmsg sysmsg;
245e4f17
MD
1612#endif
1613 union usrmsg usrmsg;
984263bc
MD
1614 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1615};
1616struct lio_listio_args {
245e4f17 1617#ifdef _KERNEL
c7114eea 1618 union sysmsg sysmsg;
245e4f17
MD
1619#endif
1620 union usrmsg usrmsg;
984263bc
MD
1621 int mode; char mode_[PAD_(int)];
1622 struct aiocb *const * acb_list; char acb_list_[PAD_(struct aiocb *const *)];
1623 int nent; char nent_[PAD_(int)];
1624 struct sigevent * sig; char sig_[PAD_(struct sigevent *)];
1625};
1626struct yield_args {
245e4f17 1627#ifdef _KERNEL
c7114eea 1628 union sysmsg sysmsg;
245e4f17
MD
1629#endif
1630 union usrmsg usrmsg;
984263bc
MD
1631 register_t dummy;
1632};
1633struct thr_sleep_args {
245e4f17 1634#ifdef _KERNEL
c7114eea 1635 union sysmsg sysmsg;
245e4f17
MD
1636#endif
1637 union usrmsg usrmsg;
984263bc
MD
1638 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1639};
1640struct thr_wakeup_args {
245e4f17 1641#ifdef _KERNEL
c7114eea 1642 union sysmsg sysmsg;
245e4f17
MD
1643#endif
1644 union usrmsg usrmsg;
984263bc
MD
1645 pid_t pid; char pid_[PAD_(pid_t)];
1646};
1647struct mlockall_args {
245e4f17 1648#ifdef _KERNEL
c7114eea 1649 union sysmsg sysmsg;
245e4f17
MD
1650#endif
1651 union usrmsg usrmsg;
984263bc
MD
1652 int how; char how_[PAD_(int)];
1653};
1654struct munlockall_args {
245e4f17 1655#ifdef _KERNEL
c7114eea 1656 union sysmsg sysmsg;
245e4f17
MD
1657#endif
1658 union usrmsg usrmsg;
984263bc
MD
1659 register_t dummy;
1660};
1661struct __getcwd_args {
245e4f17 1662#ifdef _KERNEL
c7114eea 1663 union sysmsg sysmsg;
245e4f17
MD
1664#endif
1665 union usrmsg usrmsg;
984263bc
MD
1666 u_char * buf; char buf_[PAD_(u_char *)];
1667 u_int buflen; char buflen_[PAD_(u_int)];
1668};
1669struct sched_setparam_args {
245e4f17 1670#ifdef _KERNEL
c7114eea 1671 union sysmsg sysmsg;
245e4f17
MD
1672#endif
1673 union usrmsg usrmsg;
984263bc
MD
1674 pid_t pid; char pid_[PAD_(pid_t)];
1675 const struct sched_param * param; char param_[PAD_(const struct sched_param *)];
1676};
1677struct sched_getparam_args {
245e4f17 1678#ifdef _KERNEL
c7114eea 1679 union sysmsg sysmsg;
245e4f17
MD
1680#endif
1681 union usrmsg usrmsg;
984263bc
MD
1682 pid_t pid; char pid_[PAD_(pid_t)];
1683 struct sched_param * param; char param_[PAD_(struct sched_param *)];
1684};
1685struct sched_setscheduler_args {
245e4f17 1686#ifdef _KERNEL
c7114eea 1687 union sysmsg sysmsg;
245e4f17
MD
1688#endif
1689 union usrmsg usrmsg;
984263bc
MD
1690 pid_t pid; char pid_[PAD_(pid_t)];
1691 int policy; char policy_[PAD_(int)];
1692 const struct sched_param * param; char param_[PAD_(const struct sched_param *)];
1693};
1694struct sched_getscheduler_args {
245e4f17 1695#ifdef _KERNEL
c7114eea 1696 union sysmsg sysmsg;
245e4f17
MD
1697#endif
1698 union usrmsg usrmsg;
984263bc
MD
1699 pid_t pid; char pid_[PAD_(pid_t)];
1700};
1701struct sched_yield_args {
245e4f17 1702#ifdef _KERNEL
c7114eea 1703 union sysmsg sysmsg;
245e4f17
MD
1704#endif
1705 union usrmsg usrmsg;
984263bc
MD
1706 register_t dummy;
1707};
1708struct sched_get_priority_max_args {
245e4f17 1709#ifdef _KERNEL
c7114eea 1710 union sysmsg sysmsg;
245e4f17
MD
1711#endif
1712 union usrmsg usrmsg;
984263bc
MD
1713 int policy; char policy_[PAD_(int)];
1714};
1715struct sched_get_priority_min_args {
245e4f17 1716#ifdef _KERNEL
c7114eea 1717 union sysmsg sysmsg;
245e4f17
MD
1718#endif
1719 union usrmsg usrmsg;
984263bc
MD
1720 int policy; char policy_[PAD_(int)];
1721};
1722struct sched_rr_get_interval_args {
245e4f17 1723#ifdef _KERNEL
c7114eea 1724 union sysmsg sysmsg;
245e4f17
MD
1725#endif
1726 union usrmsg usrmsg;
984263bc
MD
1727 pid_t pid; char pid_[PAD_(pid_t)];
1728 struct timespec * interval; char interval_[PAD_(struct timespec *)];
1729};
1730struct utrace_args {
245e4f17 1731#ifdef _KERNEL
c7114eea 1732 union sysmsg sysmsg;
245e4f17
MD
1733#endif
1734 union usrmsg usrmsg;
984263bc
MD
1735 const void * addr; char addr_[PAD_(const void *)];
1736 size_t len; char len_[PAD_(size_t)];
1737};
1738struct kldsym_args {
245e4f17 1739#ifdef _KERNEL
c7114eea 1740 union sysmsg sysmsg;
245e4f17
MD
1741#endif
1742 union usrmsg usrmsg;
984263bc
MD
1743 int fileid; char fileid_[PAD_(int)];
1744 int cmd; char cmd_[PAD_(int)];
1745 void * data; char data_[PAD_(void *)];
1746};
1747struct jail_args {
245e4f17 1748#ifdef _KERNEL
c7114eea 1749 union sysmsg sysmsg;
245e4f17
MD
1750#endif
1751 union usrmsg usrmsg;
984263bc
MD
1752 struct jail * jail; char jail_[PAD_(struct jail *)];
1753};
1754struct sigprocmask_args {
245e4f17 1755#ifdef _KERNEL
c7114eea 1756 union sysmsg sysmsg;
245e4f17
MD
1757#endif
1758 union usrmsg usrmsg;
984263bc
MD
1759 int how; char how_[PAD_(int)];
1760 const sigset_t * set; char set_[PAD_(const sigset_t *)];
1761 sigset_t * oset; char oset_[PAD_(sigset_t *)];
1762};
1763struct sigsuspend_args {
245e4f17 1764#ifdef _KERNEL
c7114eea 1765 union sysmsg sysmsg;
245e4f17
MD
1766#endif
1767 union usrmsg usrmsg;
984263bc
MD
1768 const sigset_t * sigmask; char sigmask_[PAD_(const sigset_t *)];
1769};
1770struct sigaction_args {
245e4f17 1771#ifdef _KERNEL
c7114eea 1772 union sysmsg sysmsg;
245e4f17
MD
1773#endif
1774 union usrmsg usrmsg;
984263bc
MD
1775 int sig; char sig_[PAD_(int)];
1776 const struct sigaction * act; char act_[PAD_(const struct sigaction *)];
1777 struct sigaction * oact; char oact_[PAD_(struct sigaction *)];
1778};
1779struct sigpending_args {
245e4f17 1780#ifdef _KERNEL
c7114eea 1781 union sysmsg sysmsg;
245e4f17
MD
1782#endif
1783 union usrmsg usrmsg;
984263bc
MD
1784 sigset_t * set; char set_[PAD_(sigset_t *)];
1785};
1786struct sigreturn_args {
245e4f17 1787#ifdef _KERNEL
c7114eea 1788 union sysmsg sysmsg;
245e4f17
MD
1789#endif
1790 union usrmsg usrmsg;
984263bc
MD
1791 ucontext_t * sigcntxp; char sigcntxp_[PAD_(ucontext_t *)];
1792};
1793struct __acl_get_file_args {
245e4f17 1794#ifdef _KERNEL
c7114eea 1795 union sysmsg sysmsg;
245e4f17
MD
1796#endif
1797 union usrmsg usrmsg;
984263bc
MD
1798 const char * path; char path_[PAD_(const char *)];
1799 acl_type_t type; char type_[PAD_(acl_type_t)];
1800 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1801};
1802struct __acl_set_file_args {
245e4f17 1803#ifdef _KERNEL
c7114eea 1804 union sysmsg sysmsg;
245e4f17
MD
1805#endif
1806 union usrmsg usrmsg;
984263bc
MD
1807 const char * path; char path_[PAD_(const char *)];
1808 acl_type_t type; char type_[PAD_(acl_type_t)];
1809 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1810};
1811struct __acl_get_fd_args {
245e4f17 1812#ifdef _KERNEL
c7114eea 1813 union sysmsg sysmsg;
245e4f17
MD
1814#endif
1815 union usrmsg usrmsg;
984263bc
MD
1816 int filedes; char filedes_[PAD_(int)];
1817 acl_type_t type; char type_[PAD_(acl_type_t)];
1818 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1819};
1820struct __acl_set_fd_args {
245e4f17 1821#ifdef _KERNEL
c7114eea 1822 union sysmsg sysmsg;
245e4f17
MD
1823#endif
1824 union usrmsg usrmsg;
984263bc
MD
1825 int filedes; char filedes_[PAD_(int)];
1826 acl_type_t type; char type_[PAD_(acl_type_t)];
1827 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1828};
1829struct __acl_delete_file_args {
245e4f17 1830#ifdef _KERNEL
c7114eea 1831 union sysmsg sysmsg;
245e4f17
MD
1832#endif
1833 union usrmsg usrmsg;
984263bc
MD
1834 const char * path; char path_[PAD_(const char *)];
1835 acl_type_t type; char type_[PAD_(acl_type_t)];
1836};
1837struct __acl_delete_fd_args {
245e4f17 1838#ifdef _KERNEL
c7114eea 1839 union sysmsg sysmsg;
245e4f17
MD
1840#endif
1841 union usrmsg usrmsg;
984263bc
MD
1842 int filedes; char filedes_[PAD_(int)];
1843 acl_type_t type; char type_[PAD_(acl_type_t)];
1844};
1845struct __acl_aclcheck_file_args {
245e4f17 1846#ifdef _KERNEL
c7114eea 1847 union sysmsg sysmsg;
245e4f17
MD
1848#endif
1849 union usrmsg usrmsg;
984263bc
MD
1850 const char * path; char path_[PAD_(const char *)];
1851 acl_type_t type; char type_[PAD_(acl_type_t)];
1852 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1853};
1854struct __acl_aclcheck_fd_args {
245e4f17 1855#ifdef _KERNEL
c7114eea 1856 union sysmsg sysmsg;
245e4f17
MD
1857#endif
1858 union usrmsg usrmsg;
984263bc
MD
1859 int filedes; char filedes_[PAD_(int)];
1860 acl_type_t type; char type_[PAD_(acl_type_t)];
1861 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1862};
1863struct extattrctl_args {
245e4f17 1864#ifdef _KERNEL
c7114eea 1865 union sysmsg sysmsg;
245e4f17
MD
1866#endif
1867 union usrmsg usrmsg;
984263bc
MD
1868 const char * path; char path_[PAD_(const char *)];
1869 int cmd; char cmd_[PAD_(int)];
1870 const char * attrname; char attrname_[PAD_(const char *)];
1871 char * arg; char arg_[PAD_(char *)];
1872};
1873struct extattr_set_file_args {
245e4f17 1874#ifdef _KERNEL
c7114eea 1875 union sysmsg sysmsg;
245e4f17
MD
1876#endif
1877 union usrmsg usrmsg;
984263bc
MD
1878 const char * path; char path_[PAD_(const char *)];
1879 const char * attrname; char attrname_[PAD_(const char *)];
1880 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
1881 unsigned iovcnt; char iovcnt_[PAD_(unsigned)];
1882};
1883struct extattr_get_file_args {
245e4f17 1884#ifdef _KERNEL
c7114eea 1885 union sysmsg sysmsg;
245e4f17
MD
1886#endif
1887 union usrmsg usrmsg;
984263bc
MD
1888 const char * path; char path_[PAD_(const char *)];
1889 const char * attrname; char attrname_[PAD_(const char *)];
1890 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
1891 unsigned iovcnt; char iovcnt_[PAD_(unsigned)];
1892};
1893struct extattr_delete_file_args {
245e4f17 1894#ifdef _KERNEL
c7114eea 1895 union sysmsg sysmsg;
245e4f17
MD
1896#endif
1897 union usrmsg usrmsg;
984263bc
MD
1898 const char * path; char path_[PAD_(const char *)];
1899 const char * attrname; char attrname_[PAD_(const char *)];
1900};
1901struct aio_waitcomplete_args {
245e4f17 1902#ifdef _KERNEL
c7114eea 1903 union sysmsg sysmsg;
245e4f17
MD
1904#endif
1905 union usrmsg usrmsg;
984263bc
MD
1906 struct aiocb ** aiocbp; char aiocbp_[PAD_(struct aiocb **)];
1907 struct timespec * timeout; char timeout_[PAD_(struct timespec *)];
1908};
1909struct getresuid_args {
245e4f17 1910#ifdef _KERNEL
c7114eea 1911 union sysmsg sysmsg;
245e4f17
MD
1912#endif
1913 union usrmsg usrmsg;
984263bc
MD
1914 uid_t * ruid; char ruid_[PAD_(uid_t *)];
1915 uid_t * euid; char euid_[PAD_(uid_t *)];
1916 uid_t * suid; char suid_[PAD_(uid_t *)];
1917};
1918struct getresgid_args {
245e4f17 1919#ifdef _KERNEL
c7114eea 1920 union sysmsg sysmsg;
245e4f17
MD
1921#endif
1922 union usrmsg usrmsg;
984263bc
MD
1923 gid_t * rgid; char rgid_[PAD_(gid_t *)];
1924 gid_t * egid; char egid_[PAD_(gid_t *)];
1925 gid_t * sgid; char sgid_[PAD_(gid_t *)];
1926};
1927struct kqueue_args {
245e4f17 1928#ifdef _KERNEL
c7114eea 1929 union sysmsg sysmsg;
245e4f17
MD
1930#endif
1931 union usrmsg usrmsg;
984263bc
MD
1932 register_t dummy;
1933};
1934struct kevent_args {
245e4f17 1935#ifdef _KERNEL
c7114eea 1936 union sysmsg sysmsg;
245e4f17
MD
1937#endif
1938 union usrmsg usrmsg;
984263bc
MD
1939 int fd; char fd_[PAD_(int)];
1940 const struct kevent * changelist; char changelist_[PAD_(const struct kevent *)];
1941 int nchanges; char nchanges_[PAD_(int)];
1942 struct kevent * eventlist; char eventlist_[PAD_(struct kevent *)];
1943 int nevents; char nevents_[PAD_(int)];
1944 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1945};
1946struct sendfile_args {
245e4f17 1947#ifdef _KERNEL
c7114eea 1948 union sysmsg sysmsg;
245e4f17
MD
1949#endif
1950 union usrmsg usrmsg;
984263bc
MD
1951 int fd; char fd_[PAD_(int)];
1952 int s; char s_[PAD_(int)];
1953 off_t offset; char offset_[PAD_(off_t)];
1954 size_t nbytes; char nbytes_[PAD_(size_t)];
1955 struct sf_hdtr * hdtr; char hdtr_[PAD_(struct sf_hdtr *)];
1956 off_t * sbytes; char sbytes_[PAD_(off_t *)];
1957 int flags; char flags_[PAD_(int)];
1958};
98a7f915
MD
1959struct varsym_set_args {
1960#ifdef _KERNEL
1961 union sysmsg sysmsg;
1962#endif
1963 union usrmsg usrmsg;
1964 int level; char level_[PAD_(int)];
1965 const char * name; char name_[PAD_(const char *)];
1966 const char * data; char data_[PAD_(const char *)];
1967};
1968struct varsym_get_args {
1969#ifdef _KERNEL
1970 union sysmsg sysmsg;
1971#endif
1972 union usrmsg usrmsg;
1973 int mask; char mask_[PAD_(int)];
1974 const char * wild; char wild_[PAD_(const char *)];
1975 char * buf; char buf_[PAD_(char *)];
1976 int bufsize; char bufsize_[PAD_(int)];
1977};
0a004aa2
MD
1978struct varsym_list_args {
1979#ifdef _KERNEL
1980 union sysmsg sysmsg;
1981#endif
1982 union usrmsg usrmsg;
1983 int level; char level_[PAD_(int)];
1984 char * buf; char buf_[PAD_(char *)];
1985 int maxsize; char maxsize_[PAD_(int)];
1986 int * marker; char marker_[PAD_(int *)];
1987};
4fd10eb6
MD
1988
1989#ifdef _KERNEL
1990
b153f746
RG
1991int nosys (struct nosys_args *);
1992void sys_exit (struct sys_exit_args *);
1993int fork (struct fork_args *);
1994int read (struct read_args *);
1995int write (struct write_args *);
1996int open (struct open_args *);
1997int close (struct close_args *);
1998int wait4 (struct wait_args *);
1999int link (struct link_args *);
2000int unlink (struct unlink_args *);
2001int chdir (struct chdir_args *);
2002int fchdir (struct fchdir_args *);
2003int mknod (struct mknod_args *);
2004int chmod (struct chmod_args *);
2005int chown (struct chown_args *);
2006int obreak (struct obreak_args *);
2007int getfsstat (struct getfsstat_args *);
2008int getpid (struct getpid_args *);
2009int mount (struct mount_args *);
2010int unmount (struct unmount_args *);
2011int setuid (struct setuid_args *);
2012int getuid (struct getuid_args *);
2013int geteuid (struct geteuid_args *);
2014int ptrace (struct ptrace_args *);
2015int recvmsg (struct recvmsg_args *);
2016int sendmsg (struct sendmsg_args *);
2017int recvfrom (struct recvfrom_args *);
2018int accept (struct accept_args *);
2019int getpeername (struct getpeername_args *);
2020int getsockname (struct getsockname_args *);
2021int access (struct access_args *);
2022int chflags (struct chflags_args *);
2023int fchflags (struct fchflags_args *);
2024int sync (struct sync_args *);
2025int kill (struct kill_args *);
2026int getppid (struct getppid_args *);
2027int dup (struct dup_args *);
2028int pipe (struct pipe_args *);
2029int getegid (struct getegid_args *);
2030int profil (struct profil_args *);
2031int ktrace (struct ktrace_args *);
2032int getgid (struct getgid_args *);
2033int getlogin (struct getlogin_args *);
2034int setlogin (struct setlogin_args *);
2035int acct (struct acct_args *);
2036int sigaltstack (struct sigaltstack_args *);
2037int ioctl (struct ioctl_args *);
2038int reboot (struct reboot_args *);
2039int revoke (struct revoke_args *);
2040int symlink (struct symlink_args *);
2041int readlink (struct readlink_args *);
2042int execve (struct execve_args *);
2043int umask (struct umask_args *);
2044int chroot (struct chroot_args *);
2045int msync (struct msync_args *);
2046int vfork (struct vfork_args *);
2047int sbrk (struct sbrk_args *);
2048int sstk (struct sstk_args *);
2049int ovadvise (struct ovadvise_args *);
2050int munmap (struct munmap_args *);
2051int mprotect (struct mprotect_args *);
2052int madvise (struct madvise_args *);
2053int mincore (struct mincore_args *);
2054int getgroups (struct getgroups_args *);
2055int setgroups (struct setgroups_args *);
2056int getpgrp (struct getpgrp_args *);
2057int setpgid (struct setpgid_args *);
2058int setitimer (struct setitimer_args *);
2059int swapon (struct swapon_args *);
2060int getitimer (struct getitimer_args *);
2061int getdtablesize (struct getdtablesize_args *);
2062int dup2 (struct dup2_args *);
2063int fcntl (struct fcntl_args *);
2064int select (struct select_args *);
2065int fsync (struct fsync_args *);
2066int setpriority (struct setpriority_args *);
2067int socket (struct socket_args *);
2068int connect (struct connect_args *);
2069int getpriority (struct getpriority_args *);
2070int bind (struct bind_args *);
2071int setsockopt (struct setsockopt_args *);
2072int listen (struct listen_args *);
2073int gettimeofday (struct gettimeofday_args *);
2074int getrusage (struct getrusage_args *);
2075int getsockopt (struct getsockopt_args *);
2076int readv (struct readv_args *);
2077int writev (struct writev_args *);
2078int settimeofday (struct settimeofday_args *);
2079int fchown (struct fchown_args *);
2080int fchmod (struct fchmod_args *);
2081int setreuid (struct setreuid_args *);
2082int setregid (struct setregid_args *);
2083int rename (struct rename_args *);
2084int flock (struct flock_args *);
2085int mkfifo (struct mkfifo_args *);
2086int sendto (struct sendto_args *);
2087int shutdown (struct shutdown_args *);
2088int socketpair (struct socketpair_args *);
2089int mkdir (struct mkdir_args *);
2090int rmdir (struct rmdir_args *);
2091int utimes (struct utimes_args *);
2092int adjtime (struct adjtime_args *);
2093int setsid (struct setsid_args *);
2094int quotactl (struct quotactl_args *);
2095int nfssvc (struct nfssvc_args *);
2096int statfs (struct statfs_args *);
2097int fstatfs (struct fstatfs_args *);
2098int getfh (struct getfh_args *);
2099int getdomainname (struct getdomainname_args *);
2100int setdomainname (struct setdomainname_args *);
2101int uname (struct uname_args *);
2102int sysarch (struct sysarch_args *);
2103int rtprio (struct rtprio_args *);
2104int semsys (struct semsys_args *);
2105int msgsys (struct msgsys_args *);
2106int shmsys (struct shmsys_args *);
2107int pread (struct pread_args *);
2108int pwrite (struct pwrite_args *);
2109int ntp_adjtime (struct ntp_adjtime_args *);
2110int setgid (struct setgid_args *);
2111int setegid (struct setegid_args *);
2112int seteuid (struct seteuid_args *);
2113int stat (struct stat_args *);
2114int fstat (struct fstat_args *);
2115int lstat (struct lstat_args *);
2116int pathconf (struct pathconf_args *);
2117int fpathconf (struct fpathconf_args *);
2118int getrlimit (struct __getrlimit_args *);
2119int setrlimit (struct __setrlimit_args *);
2120int getdirentries (struct getdirentries_args *);
2121int mmap (struct mmap_args *);
2122int lseek (struct lseek_args *);
2123int truncate (struct truncate_args *);
2124int ftruncate (struct ftruncate_args *);
2125int __sysctl (struct sysctl_args *);
2126int mlock (struct mlock_args *);
2127int munlock (struct munlock_args *);
2128int undelete (struct undelete_args *);
2129int futimes (struct futimes_args *);
2130int getpgid (struct getpgid_args *);
2131int poll (struct poll_args *);
2132int lkmnosys (struct nosys_args *);
2133int __semctl (struct __semctl_args *);
2134int semget (struct semget_args *);
2135int semop (struct semop_args *);
2136int msgctl (struct msgctl_args *);
2137int msgget (struct msgget_args *);
2138int msgsnd (struct msgsnd_args *);
2139int msgrcv (struct msgrcv_args *);
2140int shmat (struct shmat_args *);
2141int shmctl (struct shmctl_args *);
2142int shmdt (struct shmdt_args *);
2143int shmget (struct shmget_args *);
2144int clock_gettime (struct clock_gettime_args *);
2145int clock_settime (struct clock_settime_args *);
2146int clock_getres (struct clock_getres_args *);
2147int nanosleep (struct nanosleep_args *);
2148int minherit (struct minherit_args *);
2149int rfork (struct rfork_args *);
2150int openbsd_poll (struct openbsd_poll_args *);
2151int issetugid (struct issetugid_args *);
2152int lchown (struct lchown_args *);
2153int getdents (struct getdents_args *);
2154int lchmod (struct lchmod_args *);
2155int lutimes (struct lutimes_args *);
2156int nstat (struct nstat_args *);
2157int nfstat (struct nfstat_args *);
2158int nlstat (struct nlstat_args *);
2159int fhstatfs (struct fhstatfs_args *);
2160int fhopen (struct fhopen_args *);
2161int fhstat (struct fhstat_args *);
2162int modnext (struct modnext_args *);
2163int modstat (struct modstat_args *);
2164int modfnext (struct modfnext_args *);
2165int modfind (struct modfind_args *);
2166int kldload (struct kldload_args *);
2167int kldunload (struct kldunload_args *);
2168int kldfind (struct kldfind_args *);
2169int kldnext (struct kldnext_args *);
2170int kldstat (struct kldstat_args *);
2171int kldfirstmod (struct kldfirstmod_args *);
2172int getsid (struct getsid_args *);
2173int setresuid (struct setresuid_args *);
2174int setresgid (struct setresgid_args *);
2175int aio_return (struct aio_return_args *);
2176int aio_suspend (struct aio_suspend_args *);
2177int aio_cancel (struct aio_cancel_args *);
2178int aio_error (struct aio_error_args *);
2179int aio_read (struct aio_read_args *);
2180int aio_write (struct aio_write_args *);
2181int lio_listio (struct lio_listio_args *);
2182int yield (struct yield_args *);
2183int thr_sleep (struct thr_sleep_args *);
2184int thr_wakeup (struct thr_wakeup_args *);
2185int mlockall (struct mlockall_args *);
2186int munlockall (struct munlockall_args *);
2187int __getcwd (struct __getcwd_args *);
2188int sched_setparam (struct sched_setparam_args *);
2189int sched_getparam (struct sched_getparam_args *);
2190int sched_setscheduler (struct sched_setscheduler_args *);
2191int sched_getscheduler (struct sched_getscheduler_args *);
2192int sched_yield (struct sched_yield_args *);
2193int sched_get_priority_max (struct sched_get_priority_max_args *);
2194int sched_get_priority_min (struct sched_get_priority_min_args *);
2195int sched_rr_get_interval (struct sched_rr_get_interval_args *);
2196int utrace (struct utrace_args *);
2197int kldsym (struct kldsym_args *);
2198int jail (struct jail_args *);
2199int sigprocmask (struct sigprocmask_args *);
2200int sigsuspend (struct sigsuspend_args *);
2201int sigaction (struct sigaction_args *);
2202int sigpending (struct sigpending_args *);
2203int sigreturn (struct sigreturn_args *);
2204int __acl_get_file (struct __acl_get_file_args *);
2205int __acl_set_file (struct __acl_set_file_args *);
2206int __acl_get_fd (struct __acl_get_fd_args *);
2207int __acl_set_fd (struct __acl_set_fd_args *);
2208int __acl_delete_file (struct __acl_delete_file_args *);
2209int __acl_delete_fd (struct __acl_delete_fd_args *);
2210int __acl_aclcheck_file (struct __acl_aclcheck_file_args *);
2211int __acl_aclcheck_fd (struct __acl_aclcheck_fd_args *);
2212int extattrctl (struct extattrctl_args *);
2213int extattr_set_file (struct extattr_set_file_args *);
2214int extattr_get_file (struct extattr_get_file_args *);
2215int extattr_delete_file (struct extattr_delete_file_args *);
2216int aio_waitcomplete (struct aio_waitcomplete_args *);
2217int getresuid (struct getresuid_args *);
2218int getresgid (struct getresgid_args *);
2219int kqueue (struct kqueue_args *);
2220int kevent (struct kevent_args *);
2221int sendfile (struct sendfile_args *);
98a7f915
MD
2222int varsym_set (struct varsym_set_args *);
2223int varsym_get (struct varsym_get_args *);
0a004aa2 2224int varsym_list (struct varsym_list_args *);
984263bc 2225
4fd10eb6
MD
2226#endif /* _KERNEL */
2227
984263bc
MD
2228#ifdef COMPAT_43
2229
2230struct ocreat_args {
245e4f17 2231#ifdef _KERNEL
c7114eea 2232 union sysmsg sysmsg;
245e4f17
MD
2233#endif
2234 union usrmsg usrmsg;
984263bc
MD
2235 char * path; char path_[PAD_(char *)];
2236 int mode; char mode_[PAD_(int)];
2237};
2238struct olseek_args {
245e4f17 2239#ifdef _KERNEL
c7114eea 2240 union sysmsg sysmsg;
245e4f17
MD
2241#endif
2242 union usrmsg usrmsg;
984263bc
MD
2243 int fd; char fd_[PAD_(int)];
2244 long offset; char offset_[PAD_(long)];
2245 int whence; char whence_[PAD_(int)];
2246};
2247struct ostat_args {
245e4f17 2248#ifdef _KERNEL
c7114eea 2249 union sysmsg sysmsg;
245e4f17
MD
2250#endif
2251 union usrmsg usrmsg;
984263bc
MD
2252 char * path; char path_[PAD_(char *)];
2253 struct ostat * ub; char ub_[PAD_(struct ostat *)];
2254};
2255struct olstat_args {
245e4f17 2256#ifdef _KERNEL
c7114eea 2257 union sysmsg sysmsg;
245e4f17
MD
2258#endif
2259 union usrmsg usrmsg;
984263bc
MD
2260 char * path; char path_[PAD_(char *)];
2261 struct ostat * ub; char ub_[PAD_(struct ostat *)];
2262};
984263bc 2263struct ofstat_args {
245e4f17 2264#ifdef _KERNEL
c7114eea 2265 union sysmsg sysmsg;
245e4f17
MD
2266#endif
2267 union usrmsg usrmsg;
984263bc
MD
2268 int fd; char fd_[PAD_(int)];
2269 struct ostat * sb; char sb_[PAD_(struct ostat *)];
2270};
2271struct getkerninfo_args {
245e4f17 2272#ifdef _KERNEL
c7114eea 2273 union sysmsg sysmsg;
245e4f17
MD
2274#endif
2275 union usrmsg usrmsg;
984263bc
MD
2276 int op; char op_[PAD_(int)];
2277 char * where; char where_[PAD_(char *)];
2278 size_t * size; char size_[PAD_(size_t *)];
2279 int arg; char arg_[PAD_(int)];
2280};
2281struct ommap_args {
245e4f17 2282#ifdef _KERNEL
c7114eea 2283 union sysmsg sysmsg;
245e4f17
MD
2284#endif
2285 union usrmsg usrmsg;
984263bc
MD
2286 void * addr; char addr_[PAD_(void *)];
2287 int len; char len_[PAD_(int)];
2288 int prot; char prot_[PAD_(int)];
2289 int flags; char flags_[PAD_(int)];
2290 int fd; char fd_[PAD_(int)];
2291 long pos; char pos_[PAD_(long)];
2292};
2293struct gethostname_args {
245e4f17 2294#ifdef _KERNEL
c7114eea 2295 union sysmsg sysmsg;
245e4f17
MD
2296#endif
2297 union usrmsg usrmsg;
984263bc
MD
2298 char * hostname; char hostname_[PAD_(char *)];
2299 u_int len; char len_[PAD_(u_int)];
2300};
2301struct sethostname_args {
245e4f17 2302#ifdef _KERNEL
c7114eea 2303 union sysmsg sysmsg;
245e4f17
MD
2304#endif
2305 union usrmsg usrmsg;
984263bc
MD
2306 char * hostname; char hostname_[PAD_(char *)];
2307 u_int len; char len_[PAD_(u_int)];
2308};
2309struct osend_args {
245e4f17 2310#ifdef _KERNEL
c7114eea 2311 union sysmsg sysmsg;
245e4f17
MD
2312#endif
2313 union usrmsg usrmsg;
984263bc
MD
2314 int s; char s_[PAD_(int)];
2315 caddr_t buf; char buf_[PAD_(caddr_t)];
2316 int len; char len_[PAD_(int)];
2317 int flags; char flags_[PAD_(int)];
2318};
2319struct orecv_args {
245e4f17 2320#ifdef _KERNEL
c7114eea 2321 union sysmsg sysmsg;
245e4f17
MD
2322#endif
2323 union usrmsg usrmsg;
984263bc
MD
2324 int s; char s_[PAD_(int)];
2325 caddr_t buf; char buf_[PAD_(caddr_t)];
2326 int len; char len_[PAD_(int)];
2327 int flags; char flags_[PAD_(int)];
2328};
984263bc 2329struct osigvec_args {
245e4f17 2330#ifdef _KERNEL
c7114eea 2331 union sysmsg sysmsg;
245e4f17
MD
2332#endif
2333 union usrmsg usrmsg;
984263bc
MD
2334 int signum; char signum_[PAD_(int)];
2335 struct sigvec * nsv; char nsv_[PAD_(struct sigvec *)];
2336 struct sigvec * osv; char osv_[PAD_(struct sigvec *)];
2337};
2338struct osigblock_args {
245e4f17 2339#ifdef _KERNEL
c7114eea 2340 union sysmsg sysmsg;
245e4f17
MD
2341#endif
2342 union usrmsg usrmsg;
984263bc
MD
2343 int mask; char mask_[PAD_(int)];
2344};
2345struct osigsetmask_args {
245e4f17 2346#ifdef _KERNEL
c7114eea 2347 union sysmsg sysmsg;
245e4f17
MD
2348#endif
2349 union usrmsg usrmsg;
984263bc
MD
2350 int mask; char mask_[PAD_(int)];
2351};
984263bc 2352struct osigstack_args {
245e4f17 2353#ifdef _KERNEL
c7114eea 2354 union sysmsg sysmsg;
245e4f17
MD
2355#endif
2356 union usrmsg usrmsg;
984263bc
MD
2357 struct sigstack * nss; char nss_[PAD_(struct sigstack *)];
2358 struct sigstack * oss; char oss_[PAD_(struct sigstack *)];
2359};
2360struct orecvmsg_args {
245e4f17 2361#ifdef _KERNEL
c7114eea 2362 union sysmsg sysmsg;
245e4f17
MD
2363#endif
2364 union usrmsg usrmsg;
984263bc
MD
2365 int s; char s_[PAD_(int)];
2366 struct omsghdr * msg; char msg_[PAD_(struct omsghdr *)];
2367 int flags; char flags_[PAD_(int)];
2368};
2369struct osendmsg_args {
245e4f17 2370#ifdef _KERNEL
c7114eea 2371 union sysmsg sysmsg;
245e4f17
MD
2372#endif
2373 union usrmsg usrmsg;
984263bc
MD
2374 int s; char s_[PAD_(int)];
2375 caddr_t msg; char msg_[PAD_(caddr_t)];
2376 int flags; char flags_[PAD_(int)];
2377};
2378struct otruncate_args {
245e4f17 2379#ifdef _KERNEL
c7114eea 2380 union sysmsg sysmsg;
245e4f17
MD
2381#endif
2382 union usrmsg usrmsg;
984263bc
MD
2383 char * path; char path_[PAD_(char *)];
2384 long length; char length_[PAD_(long)];
2385};
2386struct oftruncate_args {
245e4f17 2387#ifdef _KERNEL
c7114eea 2388 union sysmsg sysmsg;
245e4f17
MD
2389#endif
2390 union usrmsg usrmsg;
984263bc
MD
2391 int fd; char fd_[PAD_(int)];
2392 long length; char length_[PAD_(long)];
2393};
2394struct ogetpeername_args {
245e4f17 2395#ifdef _KERNEL
c7114eea 2396 union sysmsg sysmsg;
245e4f17
MD
2397#endif
2398 union usrmsg usrmsg;
984263bc
MD
2399 int fdes; char fdes_[PAD_(int)];
2400 caddr_t asa; char asa_[PAD_(caddr_t)];
2401 int * alen; char alen_[PAD_(int *)];
2402};
2403struct osethostid_args {
245e4f17 2404#ifdef _KERNEL
c7114eea 2405 union sysmsg sysmsg;
245e4f17
MD
2406#endif
2407 union usrmsg usrmsg;
984263bc
MD
2408 long hostid; char hostid_[PAD_(long)];
2409};
2410struct ogetrlimit_args {
245e4f17 2411#ifdef _KERNEL
c7114eea 2412 union sysmsg sysmsg;
245e4f17
MD
2413#endif
2414 union usrmsg usrmsg;
984263bc
MD
2415 u_int which; char which_[PAD_(u_int)];
2416 struct orlimit * rlp; char rlp_[PAD_(struct orlimit *)];
2417};
2418struct osetrlimit_args {
245e4f17 2419#ifdef _KERNEL
c7114eea 2420 union sysmsg sysmsg;
245e4f17
MD
2421#endif
2422 union usrmsg usrmsg;
984263bc
MD
2423 u_int which; char which_[PAD_(u_int)];
2424 struct orlimit * rlp; char rlp_[PAD_(struct orlimit *)];
2425};
2426struct okillpg_args {
245e4f17 2427#ifdef _KERNEL
c7114eea 2428 union sysmsg sysmsg;
245e4f17
MD
2429#endif
2430 union usrmsg usrmsg;
984263bc
MD
2431 int pgid; char pgid_[PAD_(int)];
2432 int signum; char signum_[PAD_(int)];
2433};
2434struct ogetdirentries_args {
245e4f17 2435#ifdef _KERNEL
c7114eea 2436 union sysmsg sysmsg;
245e4f17
MD
2437#endif
2438 union usrmsg usrmsg;
984263bc
MD
2439 int fd; char fd_[PAD_(int)];
2440 char * buf; char buf_[PAD_(char *)];
2441 u_int count; char count_[PAD_(u_int)];
2442 long * basep; char basep_[PAD_(long *)];
2443};
4fd10eb6
MD
2444
2445#ifdef _KERNEL
2446
b153f746
RG
2447int ocreat (struct ocreat_args *);
2448int olseek (struct olseek_args *);
2449int ostat (struct ostat_args *);
2450int olstat (struct olstat_args *);
b153f746
RG
2451int ofstat (struct ofstat_args *);
2452int ogetkerninfo (struct getkerninfo_args *);
2453int ogetpagesize (struct getpagesize_args *);
2454int ommap (struct ommap_args *);
2455int owait (struct owait_args *);
2456int ogethostname (struct gethostname_args *);
2457int osethostname (struct sethostname_args *);
2458int oaccept (struct accept_args *);
2459int osend (struct osend_args *);
2460int orecv (struct orecv_args *);
b153f746
RG
2461int osigvec (struct osigvec_args *);
2462int osigblock (struct osigblock_args *);
2463int osigsetmask (struct osigsetmask_args *);
b153f746
RG
2464int osigstack (struct osigstack_args *);
2465int orecvmsg (struct orecvmsg_args *);
2466int osendmsg (struct osendmsg_args *);
2467int orecvfrom (struct recvfrom_args *);
2468int otruncate (struct otruncate_args *);
2469int oftruncate (struct oftruncate_args *);
2470int ogetpeername (struct ogetpeername_args *);
2471int ogethostid (struct ogethostid_args *);
2472int osethostid (struct osethostid_args *);
2473int ogetrlimit (struct ogetrlimit_args *);
2474int osetrlimit (struct osetrlimit_args *);
2475int okillpg (struct okillpg_args *);
2476int oquota (struct oquota_args *);
2477int ogetsockname (struct getsockname_args *);
2478int ogetdirentries (struct ogetdirentries_args *);
984263bc 2479
4fd10eb6
MD
2480#endif /* _KERNEL */
2481
984263bc
MD
2482#endif /* COMPAT_43 */
2483
2484#undef PAD_
2485
2486#endif /* !_SYS_SYSPROTO_H_ */