Linux needs %edx to be 0 on entry. It registers it as an atexit function if
[dragonfly.git] / sys / sys / sysproto.h
CommitLineData
984263bc
MD
1/*
2 * System call prototypes.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
245e4f17 5 * $DragonFly: src/sys/sys/sysproto.h,v 1.7 2003/08/12 02:36:15 dillon Exp $
a64ba182 6 * created from DragonFly: src/sys/kern/syscalls.master,v 1.2 2003/06/17 04:28:41 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};
388struct osigpending_args {
245e4f17 389#ifdef _KERNEL
c7114eea 390 union sysmsg sysmsg;
245e4f17
MD
391#endif
392 union usrmsg usrmsg;
984263bc
MD
393 register_t dummy;
394};
395struct sigaltstack_args {
245e4f17 396#ifdef _KERNEL
c7114eea 397 union sysmsg sysmsg;
245e4f17
MD
398#endif
399 union usrmsg usrmsg;
984263bc
MD
400 stack_t * ss; char ss_[PAD_(stack_t *)];
401 stack_t * oss; char oss_[PAD_(stack_t *)];
402};
403struct ioctl_args {
245e4f17 404#ifdef _KERNEL
c7114eea 405 union sysmsg sysmsg;
245e4f17
MD
406#endif
407 union usrmsg usrmsg;
984263bc
MD
408 int fd; char fd_[PAD_(int)];
409 u_long com; char com_[PAD_(u_long)];
410 caddr_t data; char data_[PAD_(caddr_t)];
411};
412struct reboot_args {
245e4f17 413#ifdef _KERNEL
c7114eea 414 union sysmsg sysmsg;
245e4f17
MD
415#endif
416 union usrmsg usrmsg;
984263bc
MD
417 int opt; char opt_[PAD_(int)];
418};
419struct revoke_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};
426struct symlink_args {
245e4f17 427#ifdef _KERNEL
c7114eea 428 union sysmsg sysmsg;
245e4f17
MD
429#endif
430 union usrmsg usrmsg;
984263bc
MD
431 char * path; char path_[PAD_(char *)];
432 char * link; char link_[PAD_(char *)];
433};
434struct readlink_args {
245e4f17 435#ifdef _KERNEL
c7114eea 436 union sysmsg sysmsg;
245e4f17
MD
437#endif
438 union usrmsg usrmsg;
984263bc
MD
439 char * path; char path_[PAD_(char *)];
440 char * buf; char buf_[PAD_(char *)];
441 int count; char count_[PAD_(int)];
442};
443struct execve_args {
245e4f17 444#ifdef _KERNEL
c7114eea 445 union sysmsg sysmsg;
245e4f17
MD
446#endif
447 union usrmsg usrmsg;
984263bc
MD
448 char * fname; char fname_[PAD_(char *)];
449 char ** argv; char argv_[PAD_(char **)];
450 char ** envv; char envv_[PAD_(char **)];
451};
452struct umask_args {
245e4f17 453#ifdef _KERNEL
c7114eea 454 union sysmsg sysmsg;
245e4f17
MD
455#endif
456 union usrmsg usrmsg;
984263bc
MD
457 int newmask; char newmask_[PAD_(int)];
458};
459struct chroot_args {
245e4f17 460#ifdef _KERNEL
c7114eea 461 union sysmsg sysmsg;
245e4f17
MD
462#endif
463 union usrmsg usrmsg;
984263bc
MD
464 char * path; char path_[PAD_(char *)];
465};
466struct getpagesize_args {
245e4f17 467#ifdef _KERNEL
c7114eea 468 union sysmsg sysmsg;
245e4f17
MD
469#endif
470 union usrmsg usrmsg;
984263bc
MD
471 register_t dummy;
472};
473struct msync_args {
245e4f17 474#ifdef _KERNEL
c7114eea 475 union sysmsg sysmsg;
245e4f17
MD
476#endif
477 union usrmsg usrmsg;
984263bc
MD
478 void * addr; char addr_[PAD_(void *)];
479 size_t len; char len_[PAD_(size_t)];
480 int flags; char flags_[PAD_(int)];
481};
482struct vfork_args {
245e4f17 483#ifdef _KERNEL
c7114eea 484 union sysmsg sysmsg;
245e4f17
MD
485#endif
486 union usrmsg usrmsg;
984263bc
MD
487 register_t dummy;
488};
489struct sbrk_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 sstk_args {
245e4f17 497#ifdef _KERNEL
c7114eea 498 union sysmsg sysmsg;
245e4f17
MD
499#endif
500 union usrmsg usrmsg;
984263bc
MD
501 int incr; char incr_[PAD_(int)];
502};
503struct ovadvise_args {
245e4f17 504#ifdef _KERNEL
c7114eea 505 union sysmsg sysmsg;
245e4f17
MD
506#endif
507 union usrmsg usrmsg;
984263bc
MD
508 int anom; char anom_[PAD_(int)];
509};
510struct munmap_args {
245e4f17 511#ifdef _KERNEL
c7114eea 512 union sysmsg sysmsg;
245e4f17
MD
513#endif
514 union usrmsg usrmsg;
984263bc
MD
515 void * addr; char addr_[PAD_(void *)];
516 size_t len; char len_[PAD_(size_t)];
517};
518struct mprotect_args {
245e4f17 519#ifdef _KERNEL
c7114eea 520 union sysmsg sysmsg;
245e4f17
MD
521#endif
522 union usrmsg usrmsg;
984263bc
MD
523 const void * addr; char addr_[PAD_(const void *)];
524 size_t len; char len_[PAD_(size_t)];
525 int prot; char prot_[PAD_(int)];
526};
527struct madvise_args {
245e4f17 528#ifdef _KERNEL
c7114eea 529 union sysmsg sysmsg;
245e4f17
MD
530#endif
531 union usrmsg usrmsg;
984263bc
MD
532 void * addr; char addr_[PAD_(void *)];
533 size_t len; char len_[PAD_(size_t)];
534 int behav; char behav_[PAD_(int)];
535};
536struct mincore_args {
245e4f17 537#ifdef _KERNEL
c7114eea 538 union sysmsg sysmsg;
245e4f17
MD
539#endif
540 union usrmsg usrmsg;
984263bc
MD
541 const void * addr; char addr_[PAD_(const void *)];
542 size_t len; char len_[PAD_(size_t)];
543 char * vec; char vec_[PAD_(char *)];
544};
545struct getgroups_args {
245e4f17 546#ifdef _KERNEL
c7114eea 547 union sysmsg sysmsg;
245e4f17
MD
548#endif
549 union usrmsg usrmsg;
984263bc
MD
550 u_int gidsetsize; char gidsetsize_[PAD_(u_int)];
551 gid_t * gidset; char gidset_[PAD_(gid_t *)];
552};
553struct setgroups_args {
245e4f17 554#ifdef _KERNEL
c7114eea 555 union sysmsg sysmsg;
245e4f17
MD
556#endif
557 union usrmsg usrmsg;
984263bc
MD
558 u_int gidsetsize; char gidsetsize_[PAD_(u_int)];
559 gid_t * gidset; char gidset_[PAD_(gid_t *)];
560};
561struct getpgrp_args {
245e4f17 562#ifdef _KERNEL
c7114eea 563 union sysmsg sysmsg;
245e4f17
MD
564#endif
565 union usrmsg usrmsg;
984263bc
MD
566 register_t dummy;
567};
568struct setpgid_args {
245e4f17 569#ifdef _KERNEL
c7114eea 570 union sysmsg sysmsg;
245e4f17
MD
571#endif
572 union usrmsg usrmsg;
984263bc
MD
573 int pid; char pid_[PAD_(int)];
574 int pgid; char pgid_[PAD_(int)];
575};
576struct setitimer_args {
245e4f17 577#ifdef _KERNEL
c7114eea 578 union sysmsg sysmsg;
245e4f17
MD
579#endif
580 union usrmsg usrmsg;
984263bc
MD
581 u_int which; char which_[PAD_(u_int)];
582 struct itimerval * itv; char itv_[PAD_(struct itimerval *)];
583 struct itimerval * oitv; char oitv_[PAD_(struct itimerval *)];
584};
585struct owait_args {
245e4f17 586#ifdef _KERNEL
c7114eea 587 union sysmsg sysmsg;
245e4f17
MD
588#endif
589 union usrmsg usrmsg;
984263bc
MD
590 register_t dummy;
591};
592struct swapon_args {
245e4f17 593#ifdef _KERNEL
c7114eea 594 union sysmsg sysmsg;
245e4f17
MD
595#endif
596 union usrmsg usrmsg;
984263bc
MD
597 char * name; char name_[PAD_(char *)];
598};
599struct getitimer_args {
245e4f17 600#ifdef _KERNEL
c7114eea 601 union sysmsg sysmsg;
245e4f17
MD
602#endif
603 union usrmsg usrmsg;
984263bc
MD
604 u_int which; char which_[PAD_(u_int)];
605 struct itimerval * itv; char itv_[PAD_(struct itimerval *)];
606};
607struct getdtablesize_args {
245e4f17 608#ifdef _KERNEL
c7114eea 609 union sysmsg sysmsg;
245e4f17
MD
610#endif
611 union usrmsg usrmsg;
984263bc
MD
612 register_t dummy;
613};
614struct dup2_args {
245e4f17 615#ifdef _KERNEL
c7114eea 616 union sysmsg sysmsg;
245e4f17
MD
617#endif
618 union usrmsg usrmsg;
984263bc
MD
619 u_int from; char from_[PAD_(u_int)];
620 u_int to; char to_[PAD_(u_int)];
621};
622struct fcntl_args {
245e4f17 623#ifdef _KERNEL
c7114eea 624 union sysmsg sysmsg;
245e4f17
MD
625#endif
626 union usrmsg usrmsg;
984263bc
MD
627 int fd; char fd_[PAD_(int)];
628 int cmd; char cmd_[PAD_(int)];
629 long arg; char arg_[PAD_(long)];
630};
631struct select_args {
245e4f17 632#ifdef _KERNEL
c7114eea 633 union sysmsg sysmsg;
245e4f17
MD
634#endif
635 union usrmsg usrmsg;
984263bc
MD
636 int nd; char nd_[PAD_(int)];
637 fd_set * in; char in_[PAD_(fd_set *)];
638 fd_set * ou; char ou_[PAD_(fd_set *)];
639 fd_set * ex; char ex_[PAD_(fd_set *)];
640 struct timeval * tv; char tv_[PAD_(struct timeval *)];
641};
642struct fsync_args {
245e4f17 643#ifdef _KERNEL
c7114eea 644 union sysmsg sysmsg;
245e4f17
MD
645#endif
646 union usrmsg usrmsg;
984263bc
MD
647 int fd; char fd_[PAD_(int)];
648};
649struct setpriority_args {
245e4f17 650#ifdef _KERNEL
c7114eea 651 union sysmsg sysmsg;
245e4f17
MD
652#endif
653 union usrmsg usrmsg;
984263bc
MD
654 int which; char which_[PAD_(int)];
655 int who; char who_[PAD_(int)];
656 int prio; char prio_[PAD_(int)];
657};
658struct socket_args {
245e4f17 659#ifdef _KERNEL
c7114eea 660 union sysmsg sysmsg;
245e4f17
MD
661#endif
662 union usrmsg usrmsg;
984263bc
MD
663 int domain; char domain_[PAD_(int)];
664 int type; char type_[PAD_(int)];
665 int protocol; char protocol_[PAD_(int)];
666};
667struct connect_args {
245e4f17 668#ifdef _KERNEL
c7114eea 669 union sysmsg sysmsg;
245e4f17
MD
670#endif
671 union usrmsg usrmsg;
984263bc
MD
672 int s; char s_[PAD_(int)];
673 caddr_t name; char name_[PAD_(caddr_t)];
674 int namelen; char namelen_[PAD_(int)];
675};
676struct getpriority_args {
245e4f17 677#ifdef _KERNEL
c7114eea 678 union sysmsg sysmsg;
245e4f17
MD
679#endif
680 union usrmsg usrmsg;
984263bc
MD
681 int which; char which_[PAD_(int)];
682 int who; char who_[PAD_(int)];
683};
684struct bind_args {
245e4f17 685#ifdef _KERNEL
c7114eea 686 union sysmsg sysmsg;
245e4f17
MD
687#endif
688 union usrmsg usrmsg;
984263bc
MD
689 int s; char s_[PAD_(int)];
690 caddr_t name; char name_[PAD_(caddr_t)];
691 int namelen; char namelen_[PAD_(int)];
692};
693struct setsockopt_args {
245e4f17 694#ifdef _KERNEL
c7114eea 695 union sysmsg sysmsg;
245e4f17
MD
696#endif
697 union usrmsg usrmsg;
984263bc
MD
698 int s; char s_[PAD_(int)];
699 int level; char level_[PAD_(int)];
700 int name; char name_[PAD_(int)];
701 caddr_t val; char val_[PAD_(caddr_t)];
702 int valsize; char valsize_[PAD_(int)];
703};
704struct listen_args {
245e4f17 705#ifdef _KERNEL
c7114eea 706 union sysmsg sysmsg;
245e4f17
MD
707#endif
708 union usrmsg usrmsg;
984263bc
MD
709 int s; char s_[PAD_(int)];
710 int backlog; char backlog_[PAD_(int)];
711};
712struct gettimeofday_args {
245e4f17 713#ifdef _KERNEL
c7114eea 714 union sysmsg sysmsg;
245e4f17
MD
715#endif
716 union usrmsg usrmsg;
984263bc
MD
717 struct timeval * tp; char tp_[PAD_(struct timeval *)];
718 struct timezone * tzp; char tzp_[PAD_(struct timezone *)];
719};
720struct getrusage_args {
245e4f17 721#ifdef _KERNEL
c7114eea 722 union sysmsg sysmsg;
245e4f17
MD
723#endif
724 union usrmsg usrmsg;
984263bc
MD
725 int who; char who_[PAD_(int)];
726 struct rusage * rusage; char rusage_[PAD_(struct rusage *)];
727};
728struct getsockopt_args {
245e4f17 729#ifdef _KERNEL
c7114eea 730 union sysmsg sysmsg;
245e4f17
MD
731#endif
732 union usrmsg usrmsg;
984263bc
MD
733 int s; char s_[PAD_(int)];
734 int level; char level_[PAD_(int)];
735 int name; char name_[PAD_(int)];
736 caddr_t val; char val_[PAD_(caddr_t)];
737 int * avalsize; char avalsize_[PAD_(int *)];
738};
739struct readv_args {
245e4f17 740#ifdef _KERNEL
c7114eea 741 union sysmsg sysmsg;
245e4f17
MD
742#endif
743 union usrmsg usrmsg;
984263bc
MD
744 int fd; char fd_[PAD_(int)];
745 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
746 u_int iovcnt; char iovcnt_[PAD_(u_int)];
747};
748struct writev_args {
245e4f17 749#ifdef _KERNEL
c7114eea 750 union sysmsg sysmsg;
245e4f17
MD
751#endif
752 union usrmsg usrmsg;
984263bc
MD
753 int fd; char fd_[PAD_(int)];
754 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
755 u_int iovcnt; char iovcnt_[PAD_(u_int)];
756};
757struct settimeofday_args {
245e4f17 758#ifdef _KERNEL
c7114eea 759 union sysmsg sysmsg;
245e4f17
MD
760#endif
761 union usrmsg usrmsg;
984263bc
MD
762 struct timeval * tv; char tv_[PAD_(struct timeval *)];
763 struct timezone * tzp; char tzp_[PAD_(struct timezone *)];
764};
765struct fchown_args {
245e4f17 766#ifdef _KERNEL
c7114eea 767 union sysmsg sysmsg;
245e4f17
MD
768#endif
769 union usrmsg usrmsg;
984263bc
MD
770 int fd; char fd_[PAD_(int)];
771 int uid; char uid_[PAD_(int)];
772 int gid; char gid_[PAD_(int)];
773};
774struct fchmod_args {
245e4f17 775#ifdef _KERNEL
c7114eea 776 union sysmsg sysmsg;
245e4f17
MD
777#endif
778 union usrmsg usrmsg;
984263bc
MD
779 int fd; char fd_[PAD_(int)];
780 int mode; char mode_[PAD_(int)];
781};
782struct setreuid_args {
245e4f17 783#ifdef _KERNEL
c7114eea 784 union sysmsg sysmsg;
245e4f17
MD
785#endif
786 union usrmsg usrmsg;
984263bc
MD
787 int ruid; char ruid_[PAD_(int)];
788 int euid; char euid_[PAD_(int)];
789};
790struct setregid_args {
245e4f17 791#ifdef _KERNEL
c7114eea 792 union sysmsg sysmsg;
245e4f17
MD
793#endif
794 union usrmsg usrmsg;
984263bc
MD
795 int rgid; char rgid_[PAD_(int)];
796 int egid; char egid_[PAD_(int)];
797};
798struct rename_args {
245e4f17 799#ifdef _KERNEL
c7114eea 800 union sysmsg sysmsg;
245e4f17
MD
801#endif
802 union usrmsg usrmsg;
984263bc
MD
803 char * from; char from_[PAD_(char *)];
804 char * to; char to_[PAD_(char *)];
805};
806struct flock_args {
245e4f17 807#ifdef _KERNEL
c7114eea 808 union sysmsg sysmsg;
245e4f17
MD
809#endif
810 union usrmsg usrmsg;
984263bc
MD
811 int fd; char fd_[PAD_(int)];
812 int how; char how_[PAD_(int)];
813};
814struct mkfifo_args {
245e4f17 815#ifdef _KERNEL
c7114eea 816 union sysmsg sysmsg;
245e4f17
MD
817#endif
818 union usrmsg usrmsg;
984263bc
MD
819 char * path; char path_[PAD_(char *)];
820 int mode; char mode_[PAD_(int)];
821};
822struct sendto_args {
245e4f17 823#ifdef _KERNEL
c7114eea 824 union sysmsg sysmsg;
245e4f17
MD
825#endif
826 union usrmsg usrmsg;
984263bc
MD
827 int s; char s_[PAD_(int)];
828 caddr_t buf; char buf_[PAD_(caddr_t)];
829 size_t len; char len_[PAD_(size_t)];
830 int flags; char flags_[PAD_(int)];
831 caddr_t to; char to_[PAD_(caddr_t)];
832 int tolen; char tolen_[PAD_(int)];
833};
834struct shutdown_args {
245e4f17 835#ifdef _KERNEL
c7114eea 836 union sysmsg sysmsg;
245e4f17
MD
837#endif
838 union usrmsg usrmsg;
984263bc
MD
839 int s; char s_[PAD_(int)];
840 int how; char how_[PAD_(int)];
841};
842struct socketpair_args {
245e4f17 843#ifdef _KERNEL
c7114eea 844 union sysmsg sysmsg;
245e4f17
MD
845#endif
846 union usrmsg usrmsg;
984263bc
MD
847 int domain; char domain_[PAD_(int)];
848 int type; char type_[PAD_(int)];
849 int protocol; char protocol_[PAD_(int)];
850 int * rsv; char rsv_[PAD_(int *)];
851};
852struct mkdir_args {
245e4f17 853#ifdef _KERNEL
c7114eea 854 union sysmsg sysmsg;
245e4f17
MD
855#endif
856 union usrmsg usrmsg;
984263bc
MD
857 char * path; char path_[PAD_(char *)];
858 int mode; char mode_[PAD_(int)];
859};
860struct rmdir_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};
867struct utimes_args {
245e4f17 868#ifdef _KERNEL
c7114eea 869 union sysmsg sysmsg;
245e4f17
MD
870#endif
871 union usrmsg usrmsg;
984263bc
MD
872 char * path; char path_[PAD_(char *)];
873 struct timeval * tptr; char tptr_[PAD_(struct timeval *)];
874};
875struct adjtime_args {
245e4f17 876#ifdef _KERNEL
c7114eea 877 union sysmsg sysmsg;
245e4f17
MD
878#endif
879 union usrmsg usrmsg;
984263bc
MD
880 struct timeval * delta; char delta_[PAD_(struct timeval *)];
881 struct timeval * olddelta; char olddelta_[PAD_(struct timeval *)];
882};
883struct ogethostid_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 setsid_args {
245e4f17 891#ifdef _KERNEL
c7114eea 892 union sysmsg sysmsg;
245e4f17
MD
893#endif
894 union usrmsg usrmsg;
984263bc
MD
895 register_t dummy;
896};
897struct quotactl_args {
245e4f17 898#ifdef _KERNEL
c7114eea 899 union sysmsg sysmsg;
245e4f17
MD
900#endif
901 union usrmsg usrmsg;
984263bc
MD
902 char * path; char path_[PAD_(char *)];
903 int cmd; char cmd_[PAD_(int)];
904 int uid; char uid_[PAD_(int)];
905 caddr_t arg; char arg_[PAD_(caddr_t)];
906};
907struct oquota_args {
245e4f17 908#ifdef _KERNEL
c7114eea 909 union sysmsg sysmsg;
245e4f17
MD
910#endif
911 union usrmsg usrmsg;
984263bc
MD
912 register_t dummy;
913};
914struct nfssvc_args {
245e4f17 915#ifdef _KERNEL
c7114eea 916 union sysmsg sysmsg;
245e4f17
MD
917#endif
918 union usrmsg usrmsg;
984263bc
MD
919 int flag; char flag_[PAD_(int)];
920 caddr_t argp; char argp_[PAD_(caddr_t)];
921};
922struct statfs_args {
245e4f17 923#ifdef _KERNEL
c7114eea 924 union sysmsg sysmsg;
245e4f17
MD
925#endif
926 union usrmsg usrmsg;
984263bc
MD
927 char * path; char path_[PAD_(char *)];
928 struct statfs * buf; char buf_[PAD_(struct statfs *)];
929};
930struct fstatfs_args {
245e4f17 931#ifdef _KERNEL
c7114eea 932 union sysmsg sysmsg;
245e4f17
MD
933#endif
934 union usrmsg usrmsg;
984263bc
MD
935 int fd; char fd_[PAD_(int)];
936 struct statfs * buf; char buf_[PAD_(struct statfs *)];
937};
938struct getfh_args {
245e4f17 939#ifdef _KERNEL
c7114eea 940 union sysmsg sysmsg;
245e4f17
MD
941#endif
942 union usrmsg usrmsg;
984263bc
MD
943 char * fname; char fname_[PAD_(char *)];
944 struct fhandle * fhp; char fhp_[PAD_(struct fhandle *)];
945};
946struct getdomainname_args {
245e4f17 947#ifdef _KERNEL
c7114eea 948 union sysmsg sysmsg;
245e4f17
MD
949#endif
950 union usrmsg usrmsg;
984263bc
MD
951 char * domainname; char domainname_[PAD_(char *)];
952 int len; char len_[PAD_(int)];
953};
954struct setdomainname_args {
245e4f17 955#ifdef _KERNEL
c7114eea 956 union sysmsg sysmsg;
245e4f17
MD
957#endif
958 union usrmsg usrmsg;
984263bc
MD
959 char * domainname; char domainname_[PAD_(char *)];
960 int len; char len_[PAD_(int)];
961};
962struct uname_args {
245e4f17 963#ifdef _KERNEL
c7114eea 964 union sysmsg sysmsg;
245e4f17
MD
965#endif
966 union usrmsg usrmsg;
984263bc
MD
967 struct utsname * name; char name_[PAD_(struct utsname *)];
968};
969struct sysarch_args {
245e4f17 970#ifdef _KERNEL
c7114eea 971 union sysmsg sysmsg;
245e4f17
MD
972#endif
973 union usrmsg usrmsg;
984263bc
MD
974 int op; char op_[PAD_(int)];
975 char * parms; char parms_[PAD_(char *)];
976};
977struct rtprio_args {
245e4f17 978#ifdef _KERNEL
c7114eea 979 union sysmsg sysmsg;
245e4f17
MD
980#endif
981 union usrmsg usrmsg;
984263bc
MD
982 int function; char function_[PAD_(int)];
983 pid_t pid; char pid_[PAD_(pid_t)];
984 struct rtprio * rtp; char rtp_[PAD_(struct rtprio *)];
985};
986struct semsys_args {
245e4f17 987#ifdef _KERNEL
c7114eea 988 union sysmsg sysmsg;
245e4f17
MD
989#endif
990 union usrmsg usrmsg;
984263bc
MD
991 int which; char which_[PAD_(int)];
992 int a2; char a2_[PAD_(int)];
993 int a3; char a3_[PAD_(int)];
994 int a4; char a4_[PAD_(int)];
995 int a5; char a5_[PAD_(int)];
996};
997struct msgsys_args {
245e4f17 998#ifdef _KERNEL
c7114eea 999 union sysmsg sysmsg;
245e4f17
MD
1000#endif
1001 union usrmsg usrmsg;
984263bc
MD
1002 int which; char which_[PAD_(int)];
1003 int a2; char a2_[PAD_(int)];
1004 int a3; char a3_[PAD_(int)];
1005 int a4; char a4_[PAD_(int)];
1006 int a5; char a5_[PAD_(int)];
1007 int a6; char a6_[PAD_(int)];
1008};
1009struct shmsys_args {
245e4f17 1010#ifdef _KERNEL
c7114eea 1011 union sysmsg sysmsg;
245e4f17
MD
1012#endif
1013 union usrmsg usrmsg;
984263bc
MD
1014 int which; char which_[PAD_(int)];
1015 int a2; char a2_[PAD_(int)];
1016 int a3; char a3_[PAD_(int)];
1017 int a4; char a4_[PAD_(int)];
1018};
1019struct pread_args {
245e4f17 1020#ifdef _KERNEL
c7114eea 1021 union sysmsg sysmsg;
245e4f17
MD
1022#endif
1023 union usrmsg usrmsg;
984263bc
MD
1024 int fd; char fd_[PAD_(int)];
1025 void * buf; char buf_[PAD_(void *)];
1026 size_t nbyte; char nbyte_[PAD_(size_t)];
1027 int pad; char pad_[PAD_(int)];
1028 off_t offset; char offset_[PAD_(off_t)];
1029};
1030struct pwrite_args {
245e4f17 1031#ifdef _KERNEL
c7114eea 1032 union sysmsg sysmsg;
245e4f17
MD
1033#endif
1034 union usrmsg usrmsg;
984263bc
MD
1035 int fd; char fd_[PAD_(int)];
1036 const void * buf; char buf_[PAD_(const void *)];
1037 size_t nbyte; char nbyte_[PAD_(size_t)];
1038 int pad; char pad_[PAD_(int)];
1039 off_t offset; char offset_[PAD_(off_t)];
1040};
1041struct ntp_adjtime_args {
245e4f17 1042#ifdef _KERNEL
c7114eea 1043 union sysmsg sysmsg;
245e4f17
MD
1044#endif
1045 union usrmsg usrmsg;
984263bc
MD
1046 struct timex * tp; char tp_[PAD_(struct timex *)];
1047};
1048struct setgid_args {
245e4f17 1049#ifdef _KERNEL
c7114eea 1050 union sysmsg sysmsg;
245e4f17
MD
1051#endif
1052 union usrmsg usrmsg;
984263bc
MD
1053 gid_t gid; char gid_[PAD_(gid_t)];
1054};
1055struct setegid_args {
245e4f17 1056#ifdef _KERNEL
c7114eea 1057 union sysmsg sysmsg;
245e4f17
MD
1058#endif
1059 union usrmsg usrmsg;
984263bc
MD
1060 gid_t egid; char egid_[PAD_(gid_t)];
1061};
1062struct seteuid_args {
245e4f17 1063#ifdef _KERNEL
c7114eea 1064 union sysmsg sysmsg;
245e4f17
MD
1065#endif
1066 union usrmsg usrmsg;
984263bc
MD
1067 uid_t euid; char euid_[PAD_(uid_t)];
1068};
1069struct stat_args {
245e4f17 1070#ifdef _KERNEL
c7114eea 1071 union sysmsg sysmsg;
245e4f17
MD
1072#endif
1073 union usrmsg usrmsg;
984263bc
MD
1074 char * path; char path_[PAD_(char *)];
1075 struct stat * ub; char ub_[PAD_(struct stat *)];
1076};
1077struct fstat_args {
245e4f17 1078#ifdef _KERNEL
c7114eea 1079 union sysmsg sysmsg;
245e4f17
MD
1080#endif
1081 union usrmsg usrmsg;
984263bc
MD
1082 int fd; char fd_[PAD_(int)];
1083 struct stat * sb; char sb_[PAD_(struct stat *)];
1084};
1085struct lstat_args {
245e4f17 1086#ifdef _KERNEL
c7114eea 1087 union sysmsg sysmsg;
245e4f17
MD
1088#endif
1089 union usrmsg usrmsg;
984263bc
MD
1090 char * path; char path_[PAD_(char *)];
1091 struct stat * ub; char ub_[PAD_(struct stat *)];
1092};
1093struct pathconf_args {
245e4f17 1094#ifdef _KERNEL
c7114eea 1095 union sysmsg sysmsg;
245e4f17
MD
1096#endif
1097 union usrmsg usrmsg;
984263bc
MD
1098 char * path; char path_[PAD_(char *)];
1099 int name; char name_[PAD_(int)];
1100};
1101struct fpathconf_args {
245e4f17 1102#ifdef _KERNEL
c7114eea 1103 union sysmsg sysmsg;
245e4f17
MD
1104#endif
1105 union usrmsg usrmsg;
984263bc
MD
1106 int fd; char fd_[PAD_(int)];
1107 int name; char name_[PAD_(int)];
1108};
1109struct __getrlimit_args {
245e4f17 1110#ifdef _KERNEL
c7114eea 1111 union sysmsg sysmsg;
245e4f17
MD
1112#endif
1113 union usrmsg usrmsg;
984263bc
MD
1114 u_int which; char which_[PAD_(u_int)];
1115 struct rlimit * rlp; char rlp_[PAD_(struct rlimit *)];
1116};
1117struct __setrlimit_args {
245e4f17 1118#ifdef _KERNEL
c7114eea 1119 union sysmsg sysmsg;
245e4f17
MD
1120#endif
1121 union usrmsg usrmsg;
984263bc
MD
1122 u_int which; char which_[PAD_(u_int)];
1123 struct rlimit * rlp; char rlp_[PAD_(struct rlimit *)];
1124};
1125struct getdirentries_args {
245e4f17 1126#ifdef _KERNEL
c7114eea 1127 union sysmsg sysmsg;
245e4f17
MD
1128#endif
1129 union usrmsg usrmsg;
984263bc
MD
1130 int fd; char fd_[PAD_(int)];
1131 char * buf; char buf_[PAD_(char *)];
1132 u_int count; char count_[PAD_(u_int)];
1133 long * basep; char basep_[PAD_(long *)];
1134};
1135struct mmap_args {
245e4f17 1136#ifdef _KERNEL
c7114eea 1137 union sysmsg sysmsg;
245e4f17
MD
1138#endif
1139 union usrmsg usrmsg;
984263bc
MD
1140 caddr_t addr; char addr_[PAD_(caddr_t)];
1141 size_t len; char len_[PAD_(size_t)];
1142 int prot; char prot_[PAD_(int)];
1143 int flags; char flags_[PAD_(int)];
1144 int fd; char fd_[PAD_(int)];
1145 int pad; char pad_[PAD_(int)];
1146 off_t pos; char pos_[PAD_(off_t)];
1147};
1148struct lseek_args {
245e4f17 1149#ifdef _KERNEL
c7114eea 1150 union sysmsg sysmsg;
245e4f17
MD
1151#endif
1152 union usrmsg usrmsg;
984263bc
MD
1153 int fd; char fd_[PAD_(int)];
1154 int pad; char pad_[PAD_(int)];
1155 off_t offset; char offset_[PAD_(off_t)];
1156 int whence; char whence_[PAD_(int)];
1157};
1158struct truncate_args {
245e4f17 1159#ifdef _KERNEL
c7114eea 1160 union sysmsg sysmsg;
245e4f17
MD
1161#endif
1162 union usrmsg usrmsg;
984263bc
MD
1163 char * path; char path_[PAD_(char *)];
1164 int pad; char pad_[PAD_(int)];
1165 off_t length; char length_[PAD_(off_t)];
1166};
1167struct ftruncate_args {
245e4f17 1168#ifdef _KERNEL
c7114eea 1169 union sysmsg sysmsg;
245e4f17
MD
1170#endif
1171 union usrmsg usrmsg;
984263bc
MD
1172 int fd; char fd_[PAD_(int)];
1173 int pad; char pad_[PAD_(int)];
1174 off_t length; char length_[PAD_(off_t)];
1175};
1176struct sysctl_args {
245e4f17 1177#ifdef _KERNEL
c7114eea 1178 union sysmsg sysmsg;
245e4f17
MD
1179#endif
1180 union usrmsg usrmsg;
984263bc
MD
1181 int * name; char name_[PAD_(int *)];
1182 u_int namelen; char namelen_[PAD_(u_int)];
1183 void * old; char old_[PAD_(void *)];
1184 size_t * oldlenp; char oldlenp_[PAD_(size_t *)];
1185 void * new; char new_[PAD_(void *)];
1186 size_t newlen; char newlen_[PAD_(size_t)];
1187};
1188struct mlock_args {
245e4f17 1189#ifdef _KERNEL
c7114eea 1190 union sysmsg sysmsg;
245e4f17
MD
1191#endif
1192 union usrmsg usrmsg;
984263bc
MD
1193 const void * addr; char addr_[PAD_(const void *)];
1194 size_t len; char len_[PAD_(size_t)];
1195};
1196struct munlock_args {
245e4f17 1197#ifdef _KERNEL
c7114eea 1198 union sysmsg sysmsg;
245e4f17
MD
1199#endif
1200 union usrmsg usrmsg;
984263bc
MD
1201 const void * addr; char addr_[PAD_(const void *)];
1202 size_t len; char len_[PAD_(size_t)];
1203};
1204struct undelete_args {
245e4f17 1205#ifdef _KERNEL
c7114eea 1206 union sysmsg sysmsg;
245e4f17
MD
1207#endif
1208 union usrmsg usrmsg;
984263bc
MD
1209 char * path; char path_[PAD_(char *)];
1210};
1211struct futimes_args {
245e4f17 1212#ifdef _KERNEL
c7114eea 1213 union sysmsg sysmsg;
245e4f17
MD
1214#endif
1215 union usrmsg usrmsg;
984263bc
MD
1216 int fd; char fd_[PAD_(int)];
1217 struct timeval * tptr; char tptr_[PAD_(struct timeval *)];
1218};
1219struct getpgid_args {
245e4f17 1220#ifdef _KERNEL
c7114eea 1221 union sysmsg sysmsg;
245e4f17
MD
1222#endif
1223 union usrmsg usrmsg;
984263bc
MD
1224 pid_t pid; char pid_[PAD_(pid_t)];
1225};
1226struct poll_args {
245e4f17 1227#ifdef _KERNEL
c7114eea 1228 union sysmsg sysmsg;
245e4f17
MD
1229#endif
1230 union usrmsg usrmsg;
984263bc
MD
1231 struct pollfd * fds; char fds_[PAD_(struct pollfd *)];
1232 u_int nfds; char nfds_[PAD_(u_int)];
1233 int timeout; char timeout_[PAD_(int)];
1234};
1235struct __semctl_args {
245e4f17 1236#ifdef _KERNEL
c7114eea 1237 union sysmsg sysmsg;
245e4f17
MD
1238#endif
1239 union usrmsg usrmsg;
984263bc
MD
1240 int semid; char semid_[PAD_(int)];
1241 int semnum; char semnum_[PAD_(int)];
1242 int cmd; char cmd_[PAD_(int)];
1243 union semun * arg; char arg_[PAD_(union semun *)];
1244};
1245struct semget_args {
245e4f17 1246#ifdef _KERNEL
c7114eea 1247 union sysmsg sysmsg;
245e4f17
MD
1248#endif
1249 union usrmsg usrmsg;
984263bc
MD
1250 key_t key; char key_[PAD_(key_t)];
1251 int nsems; char nsems_[PAD_(int)];
1252 int semflg; char semflg_[PAD_(int)];
1253};
1254struct semop_args {
245e4f17 1255#ifdef _KERNEL
c7114eea 1256 union sysmsg sysmsg;
245e4f17
MD
1257#endif
1258 union usrmsg usrmsg;
984263bc
MD
1259 int semid; char semid_[PAD_(int)];
1260 struct sembuf * sops; char sops_[PAD_(struct sembuf *)];
1261 u_int nsops; char nsops_[PAD_(u_int)];
1262};
1263struct msgctl_args {
245e4f17 1264#ifdef _KERNEL
c7114eea 1265 union sysmsg sysmsg;
245e4f17
MD
1266#endif
1267 union usrmsg usrmsg;
984263bc
MD
1268 int msqid; char msqid_[PAD_(int)];
1269 int cmd; char cmd_[PAD_(int)];
1270 struct msqid_ds * buf; char buf_[PAD_(struct msqid_ds *)];
1271};
1272struct msgget_args {
245e4f17 1273#ifdef _KERNEL
c7114eea 1274 union sysmsg sysmsg;
245e4f17
MD
1275#endif
1276 union usrmsg usrmsg;
984263bc
MD
1277 key_t key; char key_[PAD_(key_t)];
1278 int msgflg; char msgflg_[PAD_(int)];
1279};
1280struct msgsnd_args {
245e4f17 1281#ifdef _KERNEL
c7114eea 1282 union sysmsg sysmsg;
245e4f17
MD
1283#endif
1284 union usrmsg usrmsg;
984263bc
MD
1285 int msqid; char msqid_[PAD_(int)];
1286 void * msgp; char msgp_[PAD_(void *)];
1287 size_t msgsz; char msgsz_[PAD_(size_t)];
1288 int msgflg; char msgflg_[PAD_(int)];
1289};
1290struct msgrcv_args {
245e4f17 1291#ifdef _KERNEL
c7114eea 1292 union sysmsg sysmsg;
245e4f17
MD
1293#endif
1294 union usrmsg usrmsg;
984263bc
MD
1295 int msqid; char msqid_[PAD_(int)];
1296 void * msgp; char msgp_[PAD_(void *)];
1297 size_t msgsz; char msgsz_[PAD_(size_t)];
1298 long msgtyp; char msgtyp_[PAD_(long)];
1299 int msgflg; char msgflg_[PAD_(int)];
1300};
1301struct shmat_args {
245e4f17 1302#ifdef _KERNEL
c7114eea 1303 union sysmsg sysmsg;
245e4f17
MD
1304#endif
1305 union usrmsg usrmsg;
984263bc
MD
1306 int shmid; char shmid_[PAD_(int)];
1307 void * shmaddr; char shmaddr_[PAD_(void *)];
1308 int shmflg; char shmflg_[PAD_(int)];
1309};
1310struct shmctl_args {
245e4f17 1311#ifdef _KERNEL
c7114eea 1312 union sysmsg sysmsg;
245e4f17
MD
1313#endif
1314 union usrmsg usrmsg;
984263bc
MD
1315 int shmid; char shmid_[PAD_(int)];
1316 int cmd; char cmd_[PAD_(int)];
1317 struct shmid_ds * buf; char buf_[PAD_(struct shmid_ds *)];
1318};
1319struct shmdt_args {
245e4f17 1320#ifdef _KERNEL
c7114eea 1321 union sysmsg sysmsg;
245e4f17
MD
1322#endif
1323 union usrmsg usrmsg;
984263bc
MD
1324 void * shmaddr; char shmaddr_[PAD_(void *)];
1325};
1326struct shmget_args {
245e4f17 1327#ifdef _KERNEL
c7114eea 1328 union sysmsg sysmsg;
245e4f17
MD
1329#endif
1330 union usrmsg usrmsg;
984263bc
MD
1331 key_t key; char key_[PAD_(key_t)];
1332 int size; char size_[PAD_(int)];
1333 int shmflg; char shmflg_[PAD_(int)];
1334};
1335struct clock_gettime_args {
245e4f17 1336#ifdef _KERNEL
c7114eea 1337 union sysmsg sysmsg;
245e4f17
MD
1338#endif
1339 union usrmsg usrmsg;
984263bc
MD
1340 clockid_t clock_id; char clock_id_[PAD_(clockid_t)];
1341 struct timespec * tp; char tp_[PAD_(struct timespec *)];
1342};
1343struct clock_settime_args {
245e4f17 1344#ifdef _KERNEL
c7114eea 1345 union sysmsg sysmsg;
245e4f17
MD
1346#endif
1347 union usrmsg usrmsg;
984263bc
MD
1348 clockid_t clock_id; char clock_id_[PAD_(clockid_t)];
1349 const struct timespec * tp; char tp_[PAD_(const struct timespec *)];
1350};
1351struct clock_getres_args {
245e4f17 1352#ifdef _KERNEL
c7114eea 1353 union sysmsg sysmsg;
245e4f17
MD
1354#endif
1355 union usrmsg usrmsg;
984263bc
MD
1356 clockid_t clock_id; char clock_id_[PAD_(clockid_t)];
1357 struct timespec * tp; char tp_[PAD_(struct timespec *)];
1358};
1359struct nanosleep_args {
245e4f17 1360#ifdef _KERNEL
c7114eea 1361 union sysmsg sysmsg;
245e4f17
MD
1362#endif
1363 union usrmsg usrmsg;
984263bc
MD
1364 const struct timespec * rqtp; char rqtp_[PAD_(const struct timespec *)];
1365 struct timespec * rmtp; char rmtp_[PAD_(struct timespec *)];
1366};
1367struct minherit_args {
245e4f17 1368#ifdef _KERNEL
c7114eea 1369 union sysmsg sysmsg;
245e4f17
MD
1370#endif
1371 union usrmsg usrmsg;
984263bc
MD
1372 void * addr; char addr_[PAD_(void *)];
1373 size_t len; char len_[PAD_(size_t)];
1374 int inherit; char inherit_[PAD_(int)];
1375};
1376struct rfork_args {
245e4f17 1377#ifdef _KERNEL
c7114eea 1378 union sysmsg sysmsg;
245e4f17
MD
1379#endif
1380 union usrmsg usrmsg;
984263bc
MD
1381 int flags; char flags_[PAD_(int)];
1382};
1383struct openbsd_poll_args {
245e4f17 1384#ifdef _KERNEL
c7114eea 1385 union sysmsg sysmsg;
245e4f17
MD
1386#endif
1387 union usrmsg usrmsg;
984263bc
MD
1388 struct pollfd * fds; char fds_[PAD_(struct pollfd *)];
1389 u_int nfds; char nfds_[PAD_(u_int)];
1390 int timeout; char timeout_[PAD_(int)];
1391};
1392struct issetugid_args {
245e4f17 1393#ifdef _KERNEL
c7114eea 1394 union sysmsg sysmsg;
245e4f17
MD
1395#endif
1396 union usrmsg usrmsg;
984263bc
MD
1397 register_t dummy;
1398};
1399struct lchown_args {
245e4f17 1400#ifdef _KERNEL
c7114eea 1401 union sysmsg sysmsg;
245e4f17
MD
1402#endif
1403 union usrmsg usrmsg;
984263bc
MD
1404 char * path; char path_[PAD_(char *)];
1405 int uid; char uid_[PAD_(int)];
1406 int gid; char gid_[PAD_(int)];
1407};
1408struct getdents_args {
245e4f17 1409#ifdef _KERNEL
c7114eea 1410 union sysmsg sysmsg;
245e4f17
MD
1411#endif
1412 union usrmsg usrmsg;
984263bc
MD
1413 int fd; char fd_[PAD_(int)];
1414 char * buf; char buf_[PAD_(char *)];
1415 size_t count; char count_[PAD_(size_t)];
1416};
1417struct lchmod_args {
245e4f17 1418#ifdef _KERNEL
c7114eea 1419 union sysmsg sysmsg;
245e4f17
MD
1420#endif
1421 union usrmsg usrmsg;
984263bc
MD
1422 char * path; char path_[PAD_(char *)];
1423 mode_t mode; char mode_[PAD_(mode_t)];
1424};
1425struct lutimes_args {
245e4f17 1426#ifdef _KERNEL
c7114eea 1427 union sysmsg sysmsg;
245e4f17
MD
1428#endif
1429 union usrmsg usrmsg;
984263bc
MD
1430 char * path; char path_[PAD_(char *)];
1431 struct timeval * tptr; char tptr_[PAD_(struct timeval *)];
1432};
1433struct nstat_args {
245e4f17 1434#ifdef _KERNEL
c7114eea 1435 union sysmsg sysmsg;
245e4f17
MD
1436#endif
1437 union usrmsg usrmsg;
984263bc
MD
1438 char * path; char path_[PAD_(char *)];
1439 struct nstat * ub; char ub_[PAD_(struct nstat *)];
1440};
1441struct nfstat_args {
245e4f17 1442#ifdef _KERNEL
c7114eea 1443 union sysmsg sysmsg;
245e4f17
MD
1444#endif
1445 union usrmsg usrmsg;
984263bc
MD
1446 int fd; char fd_[PAD_(int)];
1447 struct nstat * sb; char sb_[PAD_(struct nstat *)];
1448};
1449struct nlstat_args {
245e4f17 1450#ifdef _KERNEL
c7114eea 1451 union sysmsg sysmsg;
245e4f17
MD
1452#endif
1453 union usrmsg usrmsg;
984263bc
MD
1454 char * path; char path_[PAD_(char *)];
1455 struct nstat * ub; char ub_[PAD_(struct nstat *)];
1456};
1457struct fhstatfs_args {
245e4f17 1458#ifdef _KERNEL
c7114eea 1459 union sysmsg sysmsg;
245e4f17
MD
1460#endif
1461 union usrmsg usrmsg;
984263bc
MD
1462 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
1463 struct statfs * buf; char buf_[PAD_(struct statfs *)];
1464};
1465struct fhopen_args {
245e4f17 1466#ifdef _KERNEL
c7114eea 1467 union sysmsg sysmsg;
245e4f17
MD
1468#endif
1469 union usrmsg usrmsg;
984263bc
MD
1470 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
1471 int flags; char flags_[PAD_(int)];
1472};
1473struct fhstat_args {
245e4f17 1474#ifdef _KERNEL
c7114eea 1475 union sysmsg sysmsg;
245e4f17
MD
1476#endif
1477 union usrmsg usrmsg;
984263bc
MD
1478 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
1479 struct stat * sb; char sb_[PAD_(struct stat *)];
1480};
1481struct modnext_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};
1488struct modstat_args {
245e4f17 1489#ifdef _KERNEL
c7114eea 1490 union sysmsg sysmsg;
245e4f17
MD
1491#endif
1492 union usrmsg usrmsg;
984263bc
MD
1493 int modid; char modid_[PAD_(int)];
1494 struct module_stat * stat; char stat_[PAD_(struct module_stat *)];
1495};
1496struct modfnext_args {
245e4f17 1497#ifdef _KERNEL
c7114eea 1498 union sysmsg sysmsg;
245e4f17
MD
1499#endif
1500 union usrmsg usrmsg;
984263bc
MD
1501 int modid; char modid_[PAD_(int)];
1502};
1503struct modfind_args {
245e4f17 1504#ifdef _KERNEL
c7114eea 1505 union sysmsg sysmsg;
245e4f17
MD
1506#endif
1507 union usrmsg usrmsg;
984263bc
MD
1508 const char * name; char name_[PAD_(const char *)];
1509};
1510struct kldload_args {
245e4f17 1511#ifdef _KERNEL
c7114eea 1512 union sysmsg sysmsg;
245e4f17
MD
1513#endif
1514 union usrmsg usrmsg;
984263bc
MD
1515 const char * file; char file_[PAD_(const char *)];
1516};
1517struct kldunload_args {
245e4f17 1518#ifdef _KERNEL
c7114eea 1519 union sysmsg sysmsg;
245e4f17
MD
1520#endif
1521 union usrmsg usrmsg;
984263bc
MD
1522 int fileid; char fileid_[PAD_(int)];
1523};
1524struct kldfind_args {
245e4f17 1525#ifdef _KERNEL
c7114eea 1526 union sysmsg sysmsg;
245e4f17
MD
1527#endif
1528 union usrmsg usrmsg;
984263bc
MD
1529 const char * file; char file_[PAD_(const char *)];
1530};
1531struct kldnext_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};
1538struct kldstat_args {
245e4f17 1539#ifdef _KERNEL
c7114eea 1540 union sysmsg sysmsg;
245e4f17
MD
1541#endif
1542 union usrmsg usrmsg;
984263bc
MD
1543 int fileid; char fileid_[PAD_(int)];
1544 struct kld_file_stat * stat; char stat_[PAD_(struct kld_file_stat *)];
1545};
1546struct kldfirstmod_args {
245e4f17 1547#ifdef _KERNEL
c7114eea 1548 union sysmsg sysmsg;
245e4f17
MD
1549#endif
1550 union usrmsg usrmsg;
984263bc
MD
1551 int fileid; char fileid_[PAD_(int)];
1552};
1553struct getsid_args {
245e4f17 1554#ifdef _KERNEL
c7114eea 1555 union sysmsg sysmsg;
245e4f17
MD
1556#endif
1557 union usrmsg usrmsg;
984263bc
MD
1558 pid_t pid; char pid_[PAD_(pid_t)];
1559};
1560struct setresuid_args {
245e4f17 1561#ifdef _KERNEL
c7114eea 1562 union sysmsg sysmsg;
245e4f17
MD
1563#endif
1564 union usrmsg usrmsg;
984263bc
MD
1565 uid_t ruid; char ruid_[PAD_(uid_t)];
1566 uid_t euid; char euid_[PAD_(uid_t)];
1567 uid_t suid; char suid_[PAD_(uid_t)];
1568};
1569struct setresgid_args {
245e4f17 1570#ifdef _KERNEL
c7114eea 1571 union sysmsg sysmsg;
245e4f17
MD
1572#endif
1573 union usrmsg usrmsg;
984263bc
MD
1574 gid_t rgid; char rgid_[PAD_(gid_t)];
1575 gid_t egid; char egid_[PAD_(gid_t)];
1576 gid_t sgid; char sgid_[PAD_(gid_t)];
1577};
1578struct aio_return_args {
245e4f17 1579#ifdef _KERNEL
c7114eea 1580 union sysmsg sysmsg;
245e4f17
MD
1581#endif
1582 union usrmsg usrmsg;
984263bc
MD
1583 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1584};
1585struct aio_suspend_args {
245e4f17 1586#ifdef _KERNEL
c7114eea 1587 union sysmsg sysmsg;
245e4f17
MD
1588#endif
1589 union usrmsg usrmsg;
984263bc
MD
1590 struct aiocb *const * aiocbp; char aiocbp_[PAD_(struct aiocb *const *)];
1591 int nent; char nent_[PAD_(int)];
1592 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1593};
1594struct aio_cancel_args {
245e4f17 1595#ifdef _KERNEL
c7114eea 1596 union sysmsg sysmsg;
245e4f17
MD
1597#endif
1598 union usrmsg usrmsg;
984263bc
MD
1599 int fd; char fd_[PAD_(int)];
1600 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1601};
1602struct aio_error_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_read_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 aio_write_args {
245e4f17 1617#ifdef _KERNEL
c7114eea 1618 union sysmsg sysmsg;
245e4f17
MD
1619#endif
1620 union usrmsg usrmsg;
984263bc
MD
1621 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1622};
1623struct lio_listio_args {
245e4f17 1624#ifdef _KERNEL
c7114eea 1625 union sysmsg sysmsg;
245e4f17
MD
1626#endif
1627 union usrmsg usrmsg;
984263bc
MD
1628 int mode; char mode_[PAD_(int)];
1629 struct aiocb *const * acb_list; char acb_list_[PAD_(struct aiocb *const *)];
1630 int nent; char nent_[PAD_(int)];
1631 struct sigevent * sig; char sig_[PAD_(struct sigevent *)];
1632};
1633struct yield_args {
245e4f17 1634#ifdef _KERNEL
c7114eea 1635 union sysmsg sysmsg;
245e4f17
MD
1636#endif
1637 union usrmsg usrmsg;
984263bc
MD
1638 register_t dummy;
1639};
1640struct thr_sleep_args {
245e4f17 1641#ifdef _KERNEL
c7114eea 1642 union sysmsg sysmsg;
245e4f17
MD
1643#endif
1644 union usrmsg usrmsg;
984263bc
MD
1645 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1646};
1647struct thr_wakeup_args {
245e4f17 1648#ifdef _KERNEL
c7114eea 1649 union sysmsg sysmsg;
245e4f17
MD
1650#endif
1651 union usrmsg usrmsg;
984263bc
MD
1652 pid_t pid; char pid_[PAD_(pid_t)];
1653};
1654struct mlockall_args {
245e4f17 1655#ifdef _KERNEL
c7114eea 1656 union sysmsg sysmsg;
245e4f17
MD
1657#endif
1658 union usrmsg usrmsg;
984263bc
MD
1659 int how; char how_[PAD_(int)];
1660};
1661struct munlockall_args {
245e4f17 1662#ifdef _KERNEL
c7114eea 1663 union sysmsg sysmsg;
245e4f17
MD
1664#endif
1665 union usrmsg usrmsg;
984263bc
MD
1666 register_t dummy;
1667};
1668struct __getcwd_args {
245e4f17 1669#ifdef _KERNEL
c7114eea 1670 union sysmsg sysmsg;
245e4f17
MD
1671#endif
1672 union usrmsg usrmsg;
984263bc
MD
1673 u_char * buf; char buf_[PAD_(u_char *)];
1674 u_int buflen; char buflen_[PAD_(u_int)];
1675};
1676struct sched_setparam_args {
245e4f17 1677#ifdef _KERNEL
c7114eea 1678 union sysmsg sysmsg;
245e4f17
MD
1679#endif
1680 union usrmsg usrmsg;
984263bc
MD
1681 pid_t pid; char pid_[PAD_(pid_t)];
1682 const struct sched_param * param; char param_[PAD_(const struct sched_param *)];
1683};
1684struct sched_getparam_args {
245e4f17 1685#ifdef _KERNEL
c7114eea 1686 union sysmsg sysmsg;
245e4f17
MD
1687#endif
1688 union usrmsg usrmsg;
984263bc
MD
1689 pid_t pid; char pid_[PAD_(pid_t)];
1690 struct sched_param * param; char param_[PAD_(struct sched_param *)];
1691};
1692struct sched_setscheduler_args {
245e4f17 1693#ifdef _KERNEL
c7114eea 1694 union sysmsg sysmsg;
245e4f17
MD
1695#endif
1696 union usrmsg usrmsg;
984263bc
MD
1697 pid_t pid; char pid_[PAD_(pid_t)];
1698 int policy; char policy_[PAD_(int)];
1699 const struct sched_param * param; char param_[PAD_(const struct sched_param *)];
1700};
1701struct sched_getscheduler_args {
245e4f17 1702#ifdef _KERNEL
c7114eea 1703 union sysmsg sysmsg;
245e4f17
MD
1704#endif
1705 union usrmsg usrmsg;
984263bc
MD
1706 pid_t pid; char pid_[PAD_(pid_t)];
1707};
1708struct sched_yield_args {
245e4f17 1709#ifdef _KERNEL
c7114eea 1710 union sysmsg sysmsg;
245e4f17
MD
1711#endif
1712 union usrmsg usrmsg;
984263bc
MD
1713 register_t dummy;
1714};
1715struct sched_get_priority_max_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_get_priority_min_args {
245e4f17 1723#ifdef _KERNEL
c7114eea 1724 union sysmsg sysmsg;
245e4f17
MD
1725#endif
1726 union usrmsg usrmsg;
984263bc
MD
1727 int policy; char policy_[PAD_(int)];
1728};
1729struct sched_rr_get_interval_args {
245e4f17 1730#ifdef _KERNEL
c7114eea 1731 union sysmsg sysmsg;
245e4f17
MD
1732#endif
1733 union usrmsg usrmsg;
984263bc
MD
1734 pid_t pid; char pid_[PAD_(pid_t)];
1735 struct timespec * interval; char interval_[PAD_(struct timespec *)];
1736};
1737struct utrace_args {
245e4f17 1738#ifdef _KERNEL
c7114eea 1739 union sysmsg sysmsg;
245e4f17
MD
1740#endif
1741 union usrmsg usrmsg;
984263bc
MD
1742 const void * addr; char addr_[PAD_(const void *)];
1743 size_t len; char len_[PAD_(size_t)];
1744};
1745struct kldsym_args {
245e4f17 1746#ifdef _KERNEL
c7114eea 1747 union sysmsg sysmsg;
245e4f17
MD
1748#endif
1749 union usrmsg usrmsg;
984263bc
MD
1750 int fileid; char fileid_[PAD_(int)];
1751 int cmd; char cmd_[PAD_(int)];
1752 void * data; char data_[PAD_(void *)];
1753};
1754struct jail_args {
245e4f17 1755#ifdef _KERNEL
c7114eea 1756 union sysmsg sysmsg;
245e4f17
MD
1757#endif
1758 union usrmsg usrmsg;
984263bc
MD
1759 struct jail * jail; char jail_[PAD_(struct jail *)];
1760};
1761struct sigprocmask_args {
245e4f17 1762#ifdef _KERNEL
c7114eea 1763 union sysmsg sysmsg;
245e4f17
MD
1764#endif
1765 union usrmsg usrmsg;
984263bc
MD
1766 int how; char how_[PAD_(int)];
1767 const sigset_t * set; char set_[PAD_(const sigset_t *)];
1768 sigset_t * oset; char oset_[PAD_(sigset_t *)];
1769};
1770struct sigsuspend_args {
245e4f17 1771#ifdef _KERNEL
c7114eea 1772 union sysmsg sysmsg;
245e4f17
MD
1773#endif
1774 union usrmsg usrmsg;
984263bc
MD
1775 const sigset_t * sigmask; char sigmask_[PAD_(const sigset_t *)];
1776};
1777struct sigaction_args {
245e4f17 1778#ifdef _KERNEL
c7114eea 1779 union sysmsg sysmsg;
245e4f17
MD
1780#endif
1781 union usrmsg usrmsg;
984263bc
MD
1782 int sig; char sig_[PAD_(int)];
1783 const struct sigaction * act; char act_[PAD_(const struct sigaction *)];
1784 struct sigaction * oact; char oact_[PAD_(struct sigaction *)];
1785};
1786struct sigpending_args {
245e4f17 1787#ifdef _KERNEL
c7114eea 1788 union sysmsg sysmsg;
245e4f17
MD
1789#endif
1790 union usrmsg usrmsg;
984263bc
MD
1791 sigset_t * set; char set_[PAD_(sigset_t *)];
1792};
1793struct sigreturn_args {
245e4f17 1794#ifdef _KERNEL
c7114eea 1795 union sysmsg sysmsg;
245e4f17
MD
1796#endif
1797 union usrmsg usrmsg;
984263bc
MD
1798 ucontext_t * sigcntxp; char sigcntxp_[PAD_(ucontext_t *)];
1799};
1800struct __acl_get_file_args {
245e4f17 1801#ifdef _KERNEL
c7114eea 1802 union sysmsg sysmsg;
245e4f17
MD
1803#endif
1804 union usrmsg usrmsg;
984263bc
MD
1805 const char * path; char path_[PAD_(const char *)];
1806 acl_type_t type; char type_[PAD_(acl_type_t)];
1807 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1808};
1809struct __acl_set_file_args {
245e4f17 1810#ifdef _KERNEL
c7114eea 1811 union sysmsg sysmsg;
245e4f17
MD
1812#endif
1813 union usrmsg usrmsg;
984263bc
MD
1814 const char * path; char path_[PAD_(const char *)];
1815 acl_type_t type; char type_[PAD_(acl_type_t)];
1816 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1817};
1818struct __acl_get_fd_args {
245e4f17 1819#ifdef _KERNEL
c7114eea 1820 union sysmsg sysmsg;
245e4f17
MD
1821#endif
1822 union usrmsg usrmsg;
984263bc
MD
1823 int filedes; char filedes_[PAD_(int)];
1824 acl_type_t type; char type_[PAD_(acl_type_t)];
1825 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1826};
1827struct __acl_set_fd_args {
245e4f17 1828#ifdef _KERNEL
c7114eea 1829 union sysmsg sysmsg;
245e4f17
MD
1830#endif
1831 union usrmsg usrmsg;
984263bc
MD
1832 int filedes; char filedes_[PAD_(int)];
1833 acl_type_t type; char type_[PAD_(acl_type_t)];
1834 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1835};
1836struct __acl_delete_file_args {
245e4f17 1837#ifdef _KERNEL
c7114eea 1838 union sysmsg sysmsg;
245e4f17
MD
1839#endif
1840 union usrmsg usrmsg;
984263bc
MD
1841 const char * path; char path_[PAD_(const char *)];
1842 acl_type_t type; char type_[PAD_(acl_type_t)];
1843};
1844struct __acl_delete_fd_args {
245e4f17 1845#ifdef _KERNEL
c7114eea 1846 union sysmsg sysmsg;
245e4f17
MD
1847#endif
1848 union usrmsg usrmsg;
984263bc
MD
1849 int filedes; char filedes_[PAD_(int)];
1850 acl_type_t type; char type_[PAD_(acl_type_t)];
1851};
1852struct __acl_aclcheck_file_args {
245e4f17 1853#ifdef _KERNEL
c7114eea 1854 union sysmsg sysmsg;
245e4f17
MD
1855#endif
1856 union usrmsg usrmsg;
984263bc
MD
1857 const char * path; char path_[PAD_(const char *)];
1858 acl_type_t type; char type_[PAD_(acl_type_t)];
1859 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1860};
1861struct __acl_aclcheck_fd_args {
245e4f17 1862#ifdef _KERNEL
c7114eea 1863 union sysmsg sysmsg;
245e4f17
MD
1864#endif
1865 union usrmsg usrmsg;
984263bc
MD
1866 int filedes; char filedes_[PAD_(int)];
1867 acl_type_t type; char type_[PAD_(acl_type_t)];
1868 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1869};
1870struct extattrctl_args {
245e4f17 1871#ifdef _KERNEL
c7114eea 1872 union sysmsg sysmsg;
245e4f17
MD
1873#endif
1874 union usrmsg usrmsg;
984263bc
MD
1875 const char * path; char path_[PAD_(const char *)];
1876 int cmd; char cmd_[PAD_(int)];
1877 const char * attrname; char attrname_[PAD_(const char *)];
1878 char * arg; char arg_[PAD_(char *)];
1879};
1880struct extattr_set_file_args {
245e4f17 1881#ifdef _KERNEL
c7114eea 1882 union sysmsg sysmsg;
245e4f17
MD
1883#endif
1884 union usrmsg usrmsg;
984263bc
MD
1885 const char * path; char path_[PAD_(const char *)];
1886 const char * attrname; char attrname_[PAD_(const char *)];
1887 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
1888 unsigned iovcnt; char iovcnt_[PAD_(unsigned)];
1889};
1890struct extattr_get_file_args {
245e4f17 1891#ifdef _KERNEL
c7114eea 1892 union sysmsg sysmsg;
245e4f17
MD
1893#endif
1894 union usrmsg usrmsg;
984263bc
MD
1895 const char * path; char path_[PAD_(const char *)];
1896 const char * attrname; char attrname_[PAD_(const char *)];
1897 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
1898 unsigned iovcnt; char iovcnt_[PAD_(unsigned)];
1899};
1900struct extattr_delete_file_args {
245e4f17 1901#ifdef _KERNEL
c7114eea 1902 union sysmsg sysmsg;
245e4f17
MD
1903#endif
1904 union usrmsg usrmsg;
984263bc
MD
1905 const char * path; char path_[PAD_(const char *)];
1906 const char * attrname; char attrname_[PAD_(const char *)];
1907};
1908struct aio_waitcomplete_args {
245e4f17 1909#ifdef _KERNEL
c7114eea 1910 union sysmsg sysmsg;
245e4f17
MD
1911#endif
1912 union usrmsg usrmsg;
984263bc
MD
1913 struct aiocb ** aiocbp; char aiocbp_[PAD_(struct aiocb **)];
1914 struct timespec * timeout; char timeout_[PAD_(struct timespec *)];
1915};
1916struct getresuid_args {
245e4f17 1917#ifdef _KERNEL
c7114eea 1918 union sysmsg sysmsg;
245e4f17
MD
1919#endif
1920 union usrmsg usrmsg;
984263bc
MD
1921 uid_t * ruid; char ruid_[PAD_(uid_t *)];
1922 uid_t * euid; char euid_[PAD_(uid_t *)];
1923 uid_t * suid; char suid_[PAD_(uid_t *)];
1924};
1925struct getresgid_args {
245e4f17 1926#ifdef _KERNEL
c7114eea 1927 union sysmsg sysmsg;
245e4f17
MD
1928#endif
1929 union usrmsg usrmsg;
984263bc
MD
1930 gid_t * rgid; char rgid_[PAD_(gid_t *)];
1931 gid_t * egid; char egid_[PAD_(gid_t *)];
1932 gid_t * sgid; char sgid_[PAD_(gid_t *)];
1933};
1934struct kqueue_args {
245e4f17 1935#ifdef _KERNEL
c7114eea 1936 union sysmsg sysmsg;
245e4f17
MD
1937#endif
1938 union usrmsg usrmsg;
984263bc
MD
1939 register_t dummy;
1940};
1941struct kevent_args {
245e4f17 1942#ifdef _KERNEL
c7114eea 1943 union sysmsg sysmsg;
245e4f17
MD
1944#endif
1945 union usrmsg usrmsg;
984263bc
MD
1946 int fd; char fd_[PAD_(int)];
1947 const struct kevent * changelist; char changelist_[PAD_(const struct kevent *)];
1948 int nchanges; char nchanges_[PAD_(int)];
1949 struct kevent * eventlist; char eventlist_[PAD_(struct kevent *)];
1950 int nevents; char nevents_[PAD_(int)];
1951 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1952};
1953struct sendfile_args {
245e4f17 1954#ifdef _KERNEL
c7114eea 1955 union sysmsg sysmsg;
245e4f17
MD
1956#endif
1957 union usrmsg usrmsg;
984263bc
MD
1958 int fd; char fd_[PAD_(int)];
1959 int s; char s_[PAD_(int)];
1960 off_t offset; char offset_[PAD_(off_t)];
1961 size_t nbytes; char nbytes_[PAD_(size_t)];
1962 struct sf_hdtr * hdtr; char hdtr_[PAD_(struct sf_hdtr *)];
1963 off_t * sbytes; char sbytes_[PAD_(off_t *)];
1964 int flags; char flags_[PAD_(int)];
1965};
4fd10eb6
MD
1966
1967#ifdef _KERNEL
1968
41c20dac
MD
1969int nosys __P((struct nosys_args *));
1970void sys_exit __P((struct sys_exit_args *));
1971int fork __P((struct fork_args *));
1972int read __P((struct read_args *));
1973int write __P((struct write_args *));
1974int open __P((struct open_args *));
1975int close __P((struct close_args *));
1976int wait4 __P((struct wait_args *));
1977int link __P((struct link_args *));
1978int unlink __P((struct unlink_args *));
1979int chdir __P((struct chdir_args *));
1980int fchdir __P((struct fchdir_args *));
1981int mknod __P((struct mknod_args *));
1982int chmod __P((struct chmod_args *));
1983int chown __P((struct chown_args *));
1984int obreak __P((struct obreak_args *));
1985int getfsstat __P((struct getfsstat_args *));
1986int getpid __P((struct getpid_args *));
1987int mount __P((struct mount_args *));
1988int unmount __P((struct unmount_args *));
1989int setuid __P((struct setuid_args *));
1990int getuid __P((struct getuid_args *));
1991int geteuid __P((struct geteuid_args *));
1992int ptrace __P((struct ptrace_args *));
1993int recvmsg __P((struct recvmsg_args *));
1994int sendmsg __P((struct sendmsg_args *));
1995int recvfrom __P((struct recvfrom_args *));
1996int accept __P((struct accept_args *));
1997int getpeername __P((struct getpeername_args *));
1998int getsockname __P((struct getsockname_args *));
1999int access __P((struct access_args *));
2000int chflags __P((struct chflags_args *));
2001int fchflags __P((struct fchflags_args *));
2002int sync __P((struct sync_args *));
2003int kill __P((struct kill_args *));
2004int getppid __P((struct getppid_args *));
2005int dup __P((struct dup_args *));
2006int pipe __P((struct pipe_args *));
2007int getegid __P((struct getegid_args *));
2008int profil __P((struct profil_args *));
2009int ktrace __P((struct ktrace_args *));
2010int getgid __P((struct getgid_args *));
2011int getlogin __P((struct getlogin_args *));
2012int setlogin __P((struct setlogin_args *));
2013int acct __P((struct acct_args *));
2014int sigaltstack __P((struct sigaltstack_args *));
2015int ioctl __P((struct ioctl_args *));
2016int reboot __P((struct reboot_args *));
2017int revoke __P((struct revoke_args *));
2018int symlink __P((struct symlink_args *));
2019int readlink __P((struct readlink_args *));
2020int execve __P((struct execve_args *));
2021int umask __P((struct umask_args *));
2022int chroot __P((struct chroot_args *));
2023int msync __P((struct msync_args *));
2024int vfork __P((struct vfork_args *));
2025int sbrk __P((struct sbrk_args *));
2026int sstk __P((struct sstk_args *));
2027int ovadvise __P((struct ovadvise_args *));
2028int munmap __P((struct munmap_args *));
2029int mprotect __P((struct mprotect_args *));
2030int madvise __P((struct madvise_args *));
2031int mincore __P((struct mincore_args *));
2032int getgroups __P((struct getgroups_args *));
2033int setgroups __P((struct setgroups_args *));
2034int getpgrp __P((struct getpgrp_args *));
2035int setpgid __P((struct setpgid_args *));
2036int setitimer __P((struct setitimer_args *));
2037int swapon __P((struct swapon_args *));
2038int getitimer __P((struct getitimer_args *));
2039int getdtablesize __P((struct getdtablesize_args *));
2040int dup2 __P((struct dup2_args *));
2041int fcntl __P((struct fcntl_args *));
2042int select __P((struct select_args *));
2043int fsync __P((struct fsync_args *));
2044int setpriority __P((struct setpriority_args *));
2045int socket __P((struct socket_args *));
2046int connect __P((struct connect_args *));
2047int getpriority __P((struct getpriority_args *));
2048int bind __P((struct bind_args *));
2049int setsockopt __P((struct setsockopt_args *));
2050int listen __P((struct listen_args *));
2051int gettimeofday __P((struct gettimeofday_args *));
2052int getrusage __P((struct getrusage_args *));
2053int getsockopt __P((struct getsockopt_args *));
2054int readv __P((struct readv_args *));
2055int writev __P((struct writev_args *));
2056int settimeofday __P((struct settimeofday_args *));
2057int fchown __P((struct fchown_args *));
2058int fchmod __P((struct fchmod_args *));
2059int setreuid __P((struct setreuid_args *));
2060int setregid __P((struct setregid_args *));
2061int rename __P((struct rename_args *));
2062int flock __P((struct flock_args *));
2063int mkfifo __P((struct mkfifo_args *));
2064int sendto __P((struct sendto_args *));
2065int shutdown __P((struct shutdown_args *));
2066int socketpair __P((struct socketpair_args *));
2067int mkdir __P((struct mkdir_args *));
2068int rmdir __P((struct rmdir_args *));
2069int utimes __P((struct utimes_args *));
2070int adjtime __P((struct adjtime_args *));
2071int setsid __P((struct setsid_args *));
2072int quotactl __P((struct quotactl_args *));
2073int nfssvc __P((struct nfssvc_args *));
2074int statfs __P((struct statfs_args *));
2075int fstatfs __P((struct fstatfs_args *));
2076int getfh __P((struct getfh_args *));
2077int getdomainname __P((struct getdomainname_args *));
2078int setdomainname __P((struct setdomainname_args *));
2079int uname __P((struct uname_args *));
2080int sysarch __P((struct sysarch_args *));
2081int rtprio __P((struct rtprio_args *));
2082int semsys __P((struct semsys_args *));
2083int msgsys __P((struct msgsys_args *));
2084int shmsys __P((struct shmsys_args *));
2085int pread __P((struct pread_args *));
2086int pwrite __P((struct pwrite_args *));
2087int ntp_adjtime __P((struct ntp_adjtime_args *));
2088int setgid __P((struct setgid_args *));
2089int setegid __P((struct setegid_args *));
2090int seteuid __P((struct seteuid_args *));
2091int stat __P((struct stat_args *));
2092int fstat __P((struct fstat_args *));
2093int lstat __P((struct lstat_args *));
2094int pathconf __P((struct pathconf_args *));
2095int fpathconf __P((struct fpathconf_args *));
2096int getrlimit __P((struct __getrlimit_args *));
2097int setrlimit __P((struct __setrlimit_args *));
2098int getdirentries __P((struct getdirentries_args *));
2099int mmap __P((struct mmap_args *));
2100int lseek __P((struct lseek_args *));
2101int truncate __P((struct truncate_args *));
2102int ftruncate __P((struct ftruncate_args *));
2103int __sysctl __P((struct sysctl_args *));
2104int mlock __P((struct mlock_args *));
2105int munlock __P((struct munlock_args *));
2106int undelete __P((struct undelete_args *));
2107int futimes __P((struct futimes_args *));
2108int getpgid __P((struct getpgid_args *));
2109int poll __P((struct poll_args *));
2110int lkmnosys __P((struct nosys_args *));
2111int __semctl __P((struct __semctl_args *));
2112int semget __P((struct semget_args *));
2113int semop __P((struct semop_args *));
2114int msgctl __P((struct msgctl_args *));
2115int msgget __P((struct msgget_args *));
2116int msgsnd __P((struct msgsnd_args *));
2117int msgrcv __P((struct msgrcv_args *));
2118int shmat __P((struct shmat_args *));
2119int shmctl __P((struct shmctl_args *));
2120int shmdt __P((struct shmdt_args *));
2121int shmget __P((struct shmget_args *));
2122int clock_gettime __P((struct clock_gettime_args *));
2123int clock_settime __P((struct clock_settime_args *));
2124int clock_getres __P((struct clock_getres_args *));
2125int nanosleep __P((struct nanosleep_args *));
2126int minherit __P((struct minherit_args *));
2127int rfork __P((struct rfork_args *));
2128int openbsd_poll __P((struct openbsd_poll_args *));
2129int issetugid __P((struct issetugid_args *));
2130int lchown __P((struct lchown_args *));
2131int getdents __P((struct getdents_args *));
2132int lchmod __P((struct lchmod_args *));
2133int lutimes __P((struct lutimes_args *));
2134int nstat __P((struct nstat_args *));
2135int nfstat __P((struct nfstat_args *));
2136int nlstat __P((struct nlstat_args *));
2137int fhstatfs __P((struct fhstatfs_args *));
2138int fhopen __P((struct fhopen_args *));
2139int fhstat __P((struct fhstat_args *));
2140int modnext __P((struct modnext_args *));
2141int modstat __P((struct modstat_args *));
2142int modfnext __P((struct modfnext_args *));
2143int modfind __P((struct modfind_args *));
2144int kldload __P((struct kldload_args *));
2145int kldunload __P((struct kldunload_args *));
2146int kldfind __P((struct kldfind_args *));
2147int kldnext __P((struct kldnext_args *));
2148int kldstat __P((struct kldstat_args *));
2149int kldfirstmod __P((struct kldfirstmod_args *));
2150int getsid __P((struct getsid_args *));
2151int setresuid __P((struct setresuid_args *));
2152int setresgid __P((struct setresgid_args *));
2153int aio_return __P((struct aio_return_args *));
2154int aio_suspend __P((struct aio_suspend_args *));
2155int aio_cancel __P((struct aio_cancel_args *));
2156int aio_error __P((struct aio_error_args *));
2157int aio_read __P((struct aio_read_args *));
2158int aio_write __P((struct aio_write_args *));
2159int lio_listio __P((struct lio_listio_args *));
2160int yield __P((struct yield_args *));
2161int thr_sleep __P((struct thr_sleep_args *));
2162int thr_wakeup __P((struct thr_wakeup_args *));
2163int mlockall __P((struct mlockall_args *));
2164int munlockall __P((struct munlockall_args *));
2165int __getcwd __P((struct __getcwd_args *));
2166int sched_setparam __P((struct sched_setparam_args *));
2167int sched_getparam __P((struct sched_getparam_args *));
2168int sched_setscheduler __P((struct sched_setscheduler_args *));
2169int sched_getscheduler __P((struct sched_getscheduler_args *));
2170int sched_yield __P((struct sched_yield_args *));
2171int sched_get_priority_max __P((struct sched_get_priority_max_args *));
2172int sched_get_priority_min __P((struct sched_get_priority_min_args *));
2173int sched_rr_get_interval __P((struct sched_rr_get_interval_args *));
2174int utrace __P((struct utrace_args *));
2175int kldsym __P((struct kldsym_args *));
2176int jail __P((struct jail_args *));
2177int sigprocmask __P((struct sigprocmask_args *));
2178int sigsuspend __P((struct sigsuspend_args *));
2179int sigaction __P((struct sigaction_args *));
2180int sigpending __P((struct sigpending_args *));
2181int sigreturn __P((struct sigreturn_args *));
2182int __acl_get_file __P((struct __acl_get_file_args *));
2183int __acl_set_file __P((struct __acl_set_file_args *));
2184int __acl_get_fd __P((struct __acl_get_fd_args *));
2185int __acl_set_fd __P((struct __acl_set_fd_args *));
2186int __acl_delete_file __P((struct __acl_delete_file_args *));
2187int __acl_delete_fd __P((struct __acl_delete_fd_args *));
2188int __acl_aclcheck_file __P((struct __acl_aclcheck_file_args *));
2189int __acl_aclcheck_fd __P((struct __acl_aclcheck_fd_args *));
2190int extattrctl __P((struct extattrctl_args *));
2191int extattr_set_file __P((struct extattr_set_file_args *));
2192int extattr_get_file __P((struct extattr_get_file_args *));
2193int extattr_delete_file __P((struct extattr_delete_file_args *));
2194int aio_waitcomplete __P((struct aio_waitcomplete_args *));
2195int getresuid __P((struct getresuid_args *));
2196int getresgid __P((struct getresgid_args *));
2197int kqueue __P((struct kqueue_args *));
2198int kevent __P((struct kevent_args *));
2199int sendfile __P((struct sendfile_args *));
984263bc 2200
4fd10eb6
MD
2201#endif /* _KERNEL */
2202
984263bc
MD
2203#ifdef COMPAT_43
2204
2205struct ocreat_args {
245e4f17 2206#ifdef _KERNEL
c7114eea 2207 union sysmsg sysmsg;
245e4f17
MD
2208#endif
2209 union usrmsg usrmsg;
984263bc
MD
2210 char * path; char path_[PAD_(char *)];
2211 int mode; char mode_[PAD_(int)];
2212};
2213struct olseek_args {
245e4f17 2214#ifdef _KERNEL
c7114eea 2215 union sysmsg sysmsg;
245e4f17
MD
2216#endif
2217 union usrmsg usrmsg;
984263bc
MD
2218 int fd; char fd_[PAD_(int)];
2219 long offset; char offset_[PAD_(long)];
2220 int whence; char whence_[PAD_(int)];
2221};
2222struct ostat_args {
245e4f17 2223#ifdef _KERNEL
c7114eea 2224 union sysmsg sysmsg;
245e4f17
MD
2225#endif
2226 union usrmsg usrmsg;
984263bc
MD
2227 char * path; char path_[PAD_(char *)];
2228 struct ostat * ub; char ub_[PAD_(struct ostat *)];
2229};
2230struct olstat_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 struct ostat * ub; char ub_[PAD_(struct ostat *)];
2237};
2238struct osigaction_args {
245e4f17 2239#ifdef _KERNEL
c7114eea 2240 union sysmsg sysmsg;
245e4f17
MD
2241#endif
2242 union usrmsg usrmsg;
984263bc
MD
2243 int signum; char signum_[PAD_(int)];
2244 struct osigaction * nsa; char nsa_[PAD_(struct osigaction *)];
2245 struct osigaction * osa; char osa_[PAD_(struct osigaction *)];
2246};
2247struct osigprocmask_args {
245e4f17 2248#ifdef _KERNEL
c7114eea 2249 union sysmsg sysmsg;
245e4f17
MD
2250#endif
2251 union usrmsg usrmsg;
984263bc
MD
2252 int how; char how_[PAD_(int)];
2253 osigset_t mask; char mask_[PAD_(osigset_t)];
2254};
2255struct ofstat_args {
245e4f17 2256#ifdef _KERNEL
c7114eea 2257 union sysmsg sysmsg;
245e4f17
MD
2258#endif
2259 union usrmsg usrmsg;
984263bc
MD
2260 int fd; char fd_[PAD_(int)];
2261 struct ostat * sb; char sb_[PAD_(struct ostat *)];
2262};
2263struct getkerninfo_args {
245e4f17 2264#ifdef _KERNEL
c7114eea 2265 union sysmsg sysmsg;
245e4f17
MD
2266#endif
2267 union usrmsg usrmsg;
984263bc
MD
2268 int op; char op_[PAD_(int)];
2269 char * where; char where_[PAD_(char *)];
2270 size_t * size; char size_[PAD_(size_t *)];
2271 int arg; char arg_[PAD_(int)];
2272};
2273struct ommap_args {
245e4f17 2274#ifdef _KERNEL
c7114eea 2275 union sysmsg sysmsg;
245e4f17
MD
2276#endif
2277 union usrmsg usrmsg;
984263bc
MD
2278 void * addr; char addr_[PAD_(void *)];
2279 int len; char len_[PAD_(int)];
2280 int prot; char prot_[PAD_(int)];
2281 int flags; char flags_[PAD_(int)];
2282 int fd; char fd_[PAD_(int)];
2283 long pos; char pos_[PAD_(long)];
2284};
2285struct gethostname_args {
245e4f17 2286#ifdef _KERNEL
c7114eea 2287 union sysmsg sysmsg;
245e4f17
MD
2288#endif
2289 union usrmsg usrmsg;
984263bc
MD
2290 char * hostname; char hostname_[PAD_(char *)];
2291 u_int len; char len_[PAD_(u_int)];
2292};
2293struct sethostname_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 osend_args {
245e4f17 2302#ifdef _KERNEL
c7114eea 2303 union sysmsg sysmsg;
245e4f17
MD
2304#endif
2305 union usrmsg usrmsg;
984263bc
MD
2306 int s; char s_[PAD_(int)];
2307 caddr_t buf; char buf_[PAD_(caddr_t)];
2308 int len; char len_[PAD_(int)];
2309 int flags; char flags_[PAD_(int)];
2310};
2311struct orecv_args {
245e4f17 2312#ifdef _KERNEL
c7114eea 2313 union sysmsg sysmsg;
245e4f17
MD
2314#endif
2315 union usrmsg usrmsg;
984263bc
MD
2316 int s; char s_[PAD_(int)];
2317 caddr_t buf; char buf_[PAD_(caddr_t)];
2318 int len; char len_[PAD_(int)];
2319 int flags; char flags_[PAD_(int)];
2320};
2321struct osigreturn_args {
245e4f17 2322#ifdef _KERNEL
c7114eea 2323 union sysmsg sysmsg;
245e4f17
MD
2324#endif
2325 union usrmsg usrmsg;
984263bc
MD
2326 struct osigcontext * sigcntxp; char sigcntxp_[PAD_(struct osigcontext *)];
2327};
2328struct osigvec_args {
245e4f17 2329#ifdef _KERNEL
c7114eea 2330 union sysmsg sysmsg;
245e4f17
MD
2331#endif
2332 union usrmsg usrmsg;
984263bc
MD
2333 int signum; char signum_[PAD_(int)];
2334 struct sigvec * nsv; char nsv_[PAD_(struct sigvec *)];
2335 struct sigvec * osv; char osv_[PAD_(struct sigvec *)];
2336};
2337struct osigblock_args {
245e4f17 2338#ifdef _KERNEL
c7114eea 2339 union sysmsg sysmsg;
245e4f17
MD
2340#endif
2341 union usrmsg usrmsg;
984263bc
MD
2342 int mask; char mask_[PAD_(int)];
2343};
2344struct osigsetmask_args {
245e4f17 2345#ifdef _KERNEL
c7114eea 2346 union sysmsg sysmsg;
245e4f17
MD
2347#endif
2348 union usrmsg usrmsg;
984263bc
MD
2349 int mask; char mask_[PAD_(int)];
2350};
2351struct osigsuspend_args {
245e4f17 2352#ifdef _KERNEL
c7114eea 2353 union sysmsg sysmsg;
245e4f17
MD
2354#endif
2355 union usrmsg usrmsg;
984263bc
MD
2356 osigset_t mask; char mask_[PAD_(osigset_t)];
2357};
2358struct osigstack_args {
245e4f17 2359#ifdef _KERNEL
c7114eea 2360 union sysmsg sysmsg;
245e4f17
MD
2361#endif
2362 union usrmsg usrmsg;
984263bc
MD
2363 struct sigstack * nss; char nss_[PAD_(struct sigstack *)];
2364 struct sigstack * oss; char oss_[PAD_(struct sigstack *)];
2365};
2366struct orecvmsg_args {
245e4f17 2367#ifdef _KERNEL
c7114eea 2368 union sysmsg sysmsg;
245e4f17
MD
2369#endif
2370 union usrmsg usrmsg;
984263bc
MD
2371 int s; char s_[PAD_(int)];
2372 struct omsghdr * msg; char msg_[PAD_(struct omsghdr *)];
2373 int flags; char flags_[PAD_(int)];
2374};
2375struct osendmsg_args {
245e4f17 2376#ifdef _KERNEL
c7114eea 2377 union sysmsg sysmsg;
245e4f17
MD
2378#endif
2379 union usrmsg usrmsg;
984263bc
MD
2380 int s; char s_[PAD_(int)];
2381 caddr_t msg; char msg_[PAD_(caddr_t)];
2382 int flags; char flags_[PAD_(int)];
2383};
2384struct otruncate_args {
245e4f17 2385#ifdef _KERNEL
c7114eea 2386 union sysmsg sysmsg;
245e4f17
MD
2387#endif
2388 union usrmsg usrmsg;
984263bc
MD
2389 char * path; char path_[PAD_(char *)];
2390 long length; char length_[PAD_(long)];
2391};
2392struct oftruncate_args {
245e4f17 2393#ifdef _KERNEL
c7114eea 2394 union sysmsg sysmsg;
245e4f17
MD
2395#endif
2396 union usrmsg usrmsg;
984263bc
MD
2397 int fd; char fd_[PAD_(int)];
2398 long length; char length_[PAD_(long)];
2399};
2400struct ogetpeername_args {
245e4f17 2401#ifdef _KERNEL
c7114eea 2402 union sysmsg sysmsg;
245e4f17
MD
2403#endif
2404 union usrmsg usrmsg;
984263bc
MD
2405 int fdes; char fdes_[PAD_(int)];
2406 caddr_t asa; char asa_[PAD_(caddr_t)];
2407 int * alen; char alen_[PAD_(int *)];
2408};
2409struct osethostid_args {
245e4f17 2410#ifdef _KERNEL
c7114eea 2411 union sysmsg sysmsg;
245e4f17
MD
2412#endif
2413 union usrmsg usrmsg;
984263bc
MD
2414 long hostid; char hostid_[PAD_(long)];
2415};
2416struct ogetrlimit_args {
245e4f17 2417#ifdef _KERNEL
c7114eea 2418 union sysmsg sysmsg;
245e4f17
MD
2419#endif
2420 union usrmsg usrmsg;
984263bc
MD
2421 u_int which; char which_[PAD_(u_int)];
2422 struct orlimit * rlp; char rlp_[PAD_(struct orlimit *)];
2423};
2424struct osetrlimit_args {
245e4f17 2425#ifdef _KERNEL
c7114eea 2426 union sysmsg sysmsg;
245e4f17
MD
2427#endif
2428 union usrmsg usrmsg;
984263bc
MD
2429 u_int which; char which_[PAD_(u_int)];
2430 struct orlimit * rlp; char rlp_[PAD_(struct orlimit *)];
2431};
2432struct okillpg_args {
245e4f17 2433#ifdef _KERNEL
c7114eea 2434 union sysmsg sysmsg;
245e4f17
MD
2435#endif
2436 union usrmsg usrmsg;
984263bc
MD
2437 int pgid; char pgid_[PAD_(int)];
2438 int signum; char signum_[PAD_(int)];
2439};
2440struct ogetdirentries_args {
245e4f17 2441#ifdef _KERNEL
c7114eea 2442 union sysmsg sysmsg;
245e4f17
MD
2443#endif
2444 union usrmsg usrmsg;
984263bc
MD
2445 int fd; char fd_[PAD_(int)];
2446 char * buf; char buf_[PAD_(char *)];
2447 u_int count; char count_[PAD_(u_int)];
2448 long * basep; char basep_[PAD_(long *)];
2449};
2450struct osendfile_args {
245e4f17 2451#ifdef _KERNEL
c7114eea 2452 union sysmsg sysmsg;
245e4f17
MD
2453#endif
2454 union usrmsg usrmsg;
984263bc
MD
2455 int fd; char fd_[PAD_(int)];
2456 int s; char s_[PAD_(int)];
2457 off_t offset; char offset_[PAD_(off_t)];
2458 size_t nbytes; char nbytes_[PAD_(size_t)];
2459 struct sf_hdtr * hdtr; char hdtr_[PAD_(struct sf_hdtr *)];
2460 off_t * sbytes; char sbytes_[PAD_(off_t *)];
2461 int flags; char flags_[PAD_(int)];
2462};
4fd10eb6
MD
2463
2464#ifdef _KERNEL
2465
41c20dac
MD
2466int ocreat __P((struct ocreat_args *));
2467int olseek __P((struct olseek_args *));
2468int ostat __P((struct ostat_args *));
2469int olstat __P((struct olstat_args *));
2470int osigaction __P((struct osigaction_args *));
2471int osigprocmask __P((struct osigprocmask_args *));
2472int osigpending __P((struct osigpending_args *));
2473int ofstat __P((struct ofstat_args *));
2474int ogetkerninfo __P((struct getkerninfo_args *));
2475int ogetpagesize __P((struct getpagesize_args *));
2476int ommap __P((struct ommap_args *));
2477int owait __P((struct owait_args *));
2478int ogethostname __P((struct gethostname_args *));
2479int osethostname __P((struct sethostname_args *));
2480int oaccept __P((struct accept_args *));
2481int osend __P((struct osend_args *));
2482int orecv __P((struct orecv_args *));
2483int osigreturn __P((struct osigreturn_args *));
2484int osigvec __P((struct osigvec_args *));
2485int osigblock __P((struct osigblock_args *));
2486int osigsetmask __P((struct osigsetmask_args *));
2487int osigsuspend __P((struct osigsuspend_args *));
2488int osigstack __P((struct osigstack_args *));
2489int orecvmsg __P((struct orecvmsg_args *));
2490int osendmsg __P((struct osendmsg_args *));
2491int orecvfrom __P((struct recvfrom_args *));
2492int otruncate __P((struct otruncate_args *));
2493int oftruncate __P((struct oftruncate_args *));
2494int ogetpeername __P((struct ogetpeername_args *));
2495int ogethostid __P((struct ogethostid_args *));
2496int osethostid __P((struct osethostid_args *));
2497int ogetrlimit __P((struct ogetrlimit_args *));
2498int osetrlimit __P((struct osetrlimit_args *));
2499int okillpg __P((struct okillpg_args *));
2500int oquota __P((struct oquota_args *));
2501int ogetsockname __P((struct getsockname_args *));
2502int ogetdirentries __P((struct ogetdirentries_args *));
2503int osendfile __P((struct osendfile_args *));
984263bc 2504
4fd10eb6
MD
2505#endif /* _KERNEL */
2506
984263bc
MD
2507#endif /* COMPAT_43 */
2508
2509#undef PAD_
2510
2511#endif /* !_SYS_SYSPROTO_H_ */