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