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