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