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