Add src/test and throw in some of the ad-hoc timing and testing programs
[dragonfly.git] / sys / sys / sysproto.h
CommitLineData
984263bc
MD
1/*
2 * System call prototypes.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
c7114eea 5 * $DragonFly: src/sys/sys/sysproto.h,v 1.6 2003/07/30 00:19:16 dillon Exp $
a64ba182 6 * created from DragonFly: src/sys/kern/syscalls.master,v 1.2 2003/06/17 04:28:41 dillon Exp
984263bc
MD
7 */
8
9#ifndef _SYS_SYSPROTO_H_
10#define _SYS_SYSPROTO_H_
11
12#include <sys/signal.h>
13
14#include <sys/acl.h>
15
a64ba182
MD
16#include <sys/msgport.h>
17
c7114eea
MD
18#include <sys/sysmsg.h>
19
984263bc
MD
20#define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \
21 0 : sizeof(register_t) - sizeof(t))
22
23struct nosys_args {
c7114eea 24 union sysmsg sysmsg;
984263bc
MD
25 register_t dummy;
26};
27struct sys_exit_args {
c7114eea 28 union sysmsg sysmsg;
984263bc
MD
29 int rval; char rval_[PAD_(int)];
30};
31struct fork_args {
c7114eea 32 union sysmsg sysmsg;
984263bc
MD
33 register_t dummy;
34};
35struct read_args {
c7114eea 36 union sysmsg sysmsg;
984263bc
MD
37 int fd; char fd_[PAD_(int)];
38 void * buf; char buf_[PAD_(void *)];
39 size_t nbyte; char nbyte_[PAD_(size_t)];
40};
41struct write_args {
c7114eea 42 union sysmsg sysmsg;
984263bc
MD
43 int fd; char fd_[PAD_(int)];
44 const void * buf; char buf_[PAD_(const void *)];
45 size_t nbyte; char nbyte_[PAD_(size_t)];
46};
47struct open_args {
c7114eea 48 union sysmsg sysmsg;
984263bc
MD
49 char * path; char path_[PAD_(char *)];
50 int flags; char flags_[PAD_(int)];
51 int mode; char mode_[PAD_(int)];
52};
53struct close_args {
c7114eea 54 union sysmsg sysmsg;
984263bc
MD
55 int fd; char fd_[PAD_(int)];
56};
57struct wait_args {
c7114eea 58 union sysmsg sysmsg;
984263bc
MD
59 int pid; char pid_[PAD_(int)];
60 int * status; char status_[PAD_(int *)];
61 int options; char options_[PAD_(int)];
62 struct rusage * rusage; char rusage_[PAD_(struct rusage *)];
63};
64struct link_args {
c7114eea 65 union sysmsg sysmsg;
984263bc
MD
66 char * path; char path_[PAD_(char *)];
67 char * link; char link_[PAD_(char *)];
68};
69struct unlink_args {
c7114eea 70 union sysmsg sysmsg;
984263bc
MD
71 char * path; char path_[PAD_(char *)];
72};
73struct chdir_args {
c7114eea 74 union sysmsg sysmsg;
984263bc
MD
75 char * path; char path_[PAD_(char *)];
76};
77struct fchdir_args {
c7114eea 78 union sysmsg sysmsg;
984263bc
MD
79 int fd; char fd_[PAD_(int)];
80};
81struct mknod_args {
c7114eea 82 union sysmsg sysmsg;
984263bc
MD
83 char * path; char path_[PAD_(char *)];
84 int mode; char mode_[PAD_(int)];
85 int dev; char dev_[PAD_(int)];
86};
87struct chmod_args {
c7114eea 88 union sysmsg sysmsg;
984263bc
MD
89 char * path; char path_[PAD_(char *)];
90 int mode; char mode_[PAD_(int)];
91};
92struct chown_args {
c7114eea 93 union sysmsg sysmsg;
984263bc
MD
94 char * path; char path_[PAD_(char *)];
95 int uid; char uid_[PAD_(int)];
96 int gid; char gid_[PAD_(int)];
97};
98struct obreak_args {
c7114eea 99 union sysmsg sysmsg;
984263bc
MD
100 char * nsize; char nsize_[PAD_(char *)];
101};
102struct getfsstat_args {
c7114eea 103 union sysmsg sysmsg;
984263bc
MD
104 struct statfs * buf; char buf_[PAD_(struct statfs *)];
105 long bufsize; char bufsize_[PAD_(long)];
106 int flags; char flags_[PAD_(int)];
107};
108struct getpid_args {
c7114eea 109 union sysmsg sysmsg;
984263bc
MD
110 register_t dummy;
111};
112struct mount_args {
c7114eea 113 union sysmsg sysmsg;
984263bc
MD
114 char * type; char type_[PAD_(char *)];
115 char * path; char path_[PAD_(char *)];
116 int flags; char flags_[PAD_(int)];
117 caddr_t data; char data_[PAD_(caddr_t)];
118};
119struct unmount_args {
c7114eea 120 union sysmsg sysmsg;
984263bc
MD
121 char * path; char path_[PAD_(char *)];
122 int flags; char flags_[PAD_(int)];
123};
124struct setuid_args {
c7114eea 125 union sysmsg sysmsg;
984263bc
MD
126 uid_t uid; char uid_[PAD_(uid_t)];
127};
128struct getuid_args {
c7114eea 129 union sysmsg sysmsg;
984263bc
MD
130 register_t dummy;
131};
132struct geteuid_args {
c7114eea 133 union sysmsg sysmsg;
984263bc
MD
134 register_t dummy;
135};
136struct ptrace_args {
c7114eea 137 union sysmsg sysmsg;
984263bc
MD
138 int req; char req_[PAD_(int)];
139 pid_t pid; char pid_[PAD_(pid_t)];
140 caddr_t addr; char addr_[PAD_(caddr_t)];
141 int data; char data_[PAD_(int)];
142};
143struct recvmsg_args {
c7114eea 144 union sysmsg sysmsg;
984263bc
MD
145 int s; char s_[PAD_(int)];
146 struct msghdr * msg; char msg_[PAD_(struct msghdr *)];
147 int flags; char flags_[PAD_(int)];
148};
149struct sendmsg_args {
c7114eea 150 union sysmsg sysmsg;
984263bc
MD
151 int s; char s_[PAD_(int)];
152 caddr_t msg; char msg_[PAD_(caddr_t)];
153 int flags; char flags_[PAD_(int)];
154};
155struct recvfrom_args {
c7114eea 156 union sysmsg sysmsg;
984263bc
MD
157 int s; char s_[PAD_(int)];
158 caddr_t buf; char buf_[PAD_(caddr_t)];
159 size_t len; char len_[PAD_(size_t)];
160 int flags; char flags_[PAD_(int)];
161 caddr_t from; char from_[PAD_(caddr_t)];
162 int * fromlenaddr; char fromlenaddr_[PAD_(int *)];
163};
164struct accept_args {
c7114eea 165 union sysmsg sysmsg;
984263bc
MD
166 int s; char s_[PAD_(int)];
167 caddr_t name; char name_[PAD_(caddr_t)];
168 int * anamelen; char anamelen_[PAD_(int *)];
169};
170struct getpeername_args {
c7114eea 171 union sysmsg sysmsg;
984263bc
MD
172 int fdes; char fdes_[PAD_(int)];
173 caddr_t asa; char asa_[PAD_(caddr_t)];
174 int * alen; char alen_[PAD_(int *)];
175};
176struct getsockname_args {
c7114eea 177 union sysmsg sysmsg;
984263bc
MD
178 int fdes; char fdes_[PAD_(int)];
179 caddr_t asa; char asa_[PAD_(caddr_t)];
180 int * alen; char alen_[PAD_(int *)];
181};
182struct access_args {
c7114eea 183 union sysmsg sysmsg;
984263bc
MD
184 char * path; char path_[PAD_(char *)];
185 int flags; char flags_[PAD_(int)];
186};
187struct chflags_args {
c7114eea 188 union sysmsg sysmsg;
984263bc
MD
189 char * path; char path_[PAD_(char *)];
190 int flags; char flags_[PAD_(int)];
191};
192struct fchflags_args {
c7114eea 193 union sysmsg sysmsg;
984263bc
MD
194 int fd; char fd_[PAD_(int)];
195 int flags; char flags_[PAD_(int)];
196};
197struct sync_args {
c7114eea 198 union sysmsg sysmsg;
984263bc
MD
199 register_t dummy;
200};
201struct kill_args {
c7114eea 202 union sysmsg sysmsg;
984263bc
MD
203 int pid; char pid_[PAD_(int)];
204 int signum; char signum_[PAD_(int)];
205};
206struct getppid_args {
c7114eea 207 union sysmsg sysmsg;
984263bc
MD
208 register_t dummy;
209};
210struct dup_args {
c7114eea 211 union sysmsg sysmsg;
984263bc
MD
212 u_int fd; char fd_[PAD_(u_int)];
213};
214struct pipe_args {
c7114eea 215 union sysmsg sysmsg;
984263bc
MD
216 register_t dummy;
217};
218struct getegid_args {
c7114eea 219 union sysmsg sysmsg;
984263bc
MD
220 register_t dummy;
221};
222struct profil_args {
c7114eea 223 union sysmsg sysmsg;
984263bc
MD
224 caddr_t samples; char samples_[PAD_(caddr_t)];
225 size_t size; char size_[PAD_(size_t)];
226 size_t offset; char offset_[PAD_(size_t)];
227 u_int scale; char scale_[PAD_(u_int)];
228};
229struct ktrace_args {
c7114eea 230 union sysmsg sysmsg;
984263bc
MD
231 const char * fname; char fname_[PAD_(const char *)];
232 int ops; char ops_[PAD_(int)];
233 int facs; char facs_[PAD_(int)];
234 int pid; char pid_[PAD_(int)];
235};
236struct getgid_args {
c7114eea 237 union sysmsg sysmsg;
984263bc
MD
238 register_t dummy;
239};
240struct getlogin_args {
c7114eea 241 union sysmsg sysmsg;
984263bc
MD
242 char * namebuf; char namebuf_[PAD_(char *)];
243 u_int namelen; char namelen_[PAD_(u_int)];
244};
245struct setlogin_args {
c7114eea 246 union sysmsg sysmsg;
984263bc
MD
247 char * namebuf; char namebuf_[PAD_(char *)];
248};
249struct acct_args {
c7114eea 250 union sysmsg sysmsg;
984263bc
MD
251 char * path; char path_[PAD_(char *)];
252};
253struct osigpending_args {
c7114eea 254 union sysmsg sysmsg;
984263bc
MD
255 register_t dummy;
256};
257struct sigaltstack_args {
c7114eea 258 union sysmsg sysmsg;
984263bc
MD
259 stack_t * ss; char ss_[PAD_(stack_t *)];
260 stack_t * oss; char oss_[PAD_(stack_t *)];
261};
262struct ioctl_args {
c7114eea 263 union sysmsg sysmsg;
984263bc
MD
264 int fd; char fd_[PAD_(int)];
265 u_long com; char com_[PAD_(u_long)];
266 caddr_t data; char data_[PAD_(caddr_t)];
267};
268struct reboot_args {
c7114eea 269 union sysmsg sysmsg;
984263bc
MD
270 int opt; char opt_[PAD_(int)];
271};
272struct revoke_args {
c7114eea 273 union sysmsg sysmsg;
984263bc
MD
274 char * path; char path_[PAD_(char *)];
275};
276struct symlink_args {
c7114eea 277 union sysmsg sysmsg;
984263bc
MD
278 char * path; char path_[PAD_(char *)];
279 char * link; char link_[PAD_(char *)];
280};
281struct readlink_args {
c7114eea 282 union sysmsg sysmsg;
984263bc
MD
283 char * path; char path_[PAD_(char *)];
284 char * buf; char buf_[PAD_(char *)];
285 int count; char count_[PAD_(int)];
286};
287struct execve_args {
c7114eea 288 union sysmsg sysmsg;
984263bc
MD
289 char * fname; char fname_[PAD_(char *)];
290 char ** argv; char argv_[PAD_(char **)];
291 char ** envv; char envv_[PAD_(char **)];
292};
293struct umask_args {
c7114eea 294 union sysmsg sysmsg;
984263bc
MD
295 int newmask; char newmask_[PAD_(int)];
296};
297struct chroot_args {
c7114eea 298 union sysmsg sysmsg;
984263bc
MD
299 char * path; char path_[PAD_(char *)];
300};
301struct getpagesize_args {
c7114eea 302 union sysmsg sysmsg;
984263bc
MD
303 register_t dummy;
304};
305struct msync_args {
c7114eea 306 union sysmsg sysmsg;
984263bc
MD
307 void * addr; char addr_[PAD_(void *)];
308 size_t len; char len_[PAD_(size_t)];
309 int flags; char flags_[PAD_(int)];
310};
311struct vfork_args {
c7114eea 312 union sysmsg sysmsg;
984263bc
MD
313 register_t dummy;
314};
315struct sbrk_args {
c7114eea 316 union sysmsg sysmsg;
984263bc
MD
317 int incr; char incr_[PAD_(int)];
318};
319struct sstk_args {
c7114eea 320 union sysmsg sysmsg;
984263bc
MD
321 int incr; char incr_[PAD_(int)];
322};
323struct ovadvise_args {
c7114eea 324 union sysmsg sysmsg;
984263bc
MD
325 int anom; char anom_[PAD_(int)];
326};
327struct munmap_args {
c7114eea 328 union sysmsg sysmsg;
984263bc
MD
329 void * addr; char addr_[PAD_(void *)];
330 size_t len; char len_[PAD_(size_t)];
331};
332struct mprotect_args {
c7114eea 333 union sysmsg sysmsg;
984263bc
MD
334 const void * addr; char addr_[PAD_(const void *)];
335 size_t len; char len_[PAD_(size_t)];
336 int prot; char prot_[PAD_(int)];
337};
338struct madvise_args {
c7114eea 339 union sysmsg sysmsg;
984263bc
MD
340 void * addr; char addr_[PAD_(void *)];
341 size_t len; char len_[PAD_(size_t)];
342 int behav; char behav_[PAD_(int)];
343};
344struct mincore_args {
c7114eea 345 union sysmsg sysmsg;
984263bc
MD
346 const void * addr; char addr_[PAD_(const void *)];
347 size_t len; char len_[PAD_(size_t)];
348 char * vec; char vec_[PAD_(char *)];
349};
350struct getgroups_args {
c7114eea 351 union sysmsg sysmsg;
984263bc
MD
352 u_int gidsetsize; char gidsetsize_[PAD_(u_int)];
353 gid_t * gidset; char gidset_[PAD_(gid_t *)];
354};
355struct setgroups_args {
c7114eea 356 union sysmsg sysmsg;
984263bc
MD
357 u_int gidsetsize; char gidsetsize_[PAD_(u_int)];
358 gid_t * gidset; char gidset_[PAD_(gid_t *)];
359};
360struct getpgrp_args {
c7114eea 361 union sysmsg sysmsg;
984263bc
MD
362 register_t dummy;
363};
364struct setpgid_args {
c7114eea 365 union sysmsg sysmsg;
984263bc
MD
366 int pid; char pid_[PAD_(int)];
367 int pgid; char pgid_[PAD_(int)];
368};
369struct setitimer_args {
c7114eea 370 union sysmsg sysmsg;
984263bc
MD
371 u_int which; char which_[PAD_(u_int)];
372 struct itimerval * itv; char itv_[PAD_(struct itimerval *)];
373 struct itimerval * oitv; char oitv_[PAD_(struct itimerval *)];
374};
375struct owait_args {
c7114eea 376 union sysmsg sysmsg;
984263bc
MD
377 register_t dummy;
378};
379struct swapon_args {
c7114eea 380 union sysmsg sysmsg;
984263bc
MD
381 char * name; char name_[PAD_(char *)];
382};
383struct getitimer_args {
c7114eea 384 union sysmsg sysmsg;
984263bc
MD
385 u_int which; char which_[PAD_(u_int)];
386 struct itimerval * itv; char itv_[PAD_(struct itimerval *)];
387};
388struct getdtablesize_args {
c7114eea 389 union sysmsg sysmsg;
984263bc
MD
390 register_t dummy;
391};
392struct dup2_args {
c7114eea 393 union sysmsg sysmsg;
984263bc
MD
394 u_int from; char from_[PAD_(u_int)];
395 u_int to; char to_[PAD_(u_int)];
396};
397struct fcntl_args {
c7114eea 398 union sysmsg sysmsg;
984263bc
MD
399 int fd; char fd_[PAD_(int)];
400 int cmd; char cmd_[PAD_(int)];
401 long arg; char arg_[PAD_(long)];
402};
403struct select_args {
c7114eea 404 union sysmsg sysmsg;
984263bc
MD
405 int nd; char nd_[PAD_(int)];
406 fd_set * in; char in_[PAD_(fd_set *)];
407 fd_set * ou; char ou_[PAD_(fd_set *)];
408 fd_set * ex; char ex_[PAD_(fd_set *)];
409 struct timeval * tv; char tv_[PAD_(struct timeval *)];
410};
411struct fsync_args {
c7114eea 412 union sysmsg sysmsg;
984263bc
MD
413 int fd; char fd_[PAD_(int)];
414};
415struct setpriority_args {
c7114eea 416 union sysmsg sysmsg;
984263bc
MD
417 int which; char which_[PAD_(int)];
418 int who; char who_[PAD_(int)];
419 int prio; char prio_[PAD_(int)];
420};
421struct socket_args {
c7114eea 422 union sysmsg sysmsg;
984263bc
MD
423 int domain; char domain_[PAD_(int)];
424 int type; char type_[PAD_(int)];
425 int protocol; char protocol_[PAD_(int)];
426};
427struct connect_args {
c7114eea 428 union sysmsg sysmsg;
984263bc
MD
429 int s; char s_[PAD_(int)];
430 caddr_t name; char name_[PAD_(caddr_t)];
431 int namelen; char namelen_[PAD_(int)];
432};
433struct getpriority_args {
c7114eea 434 union sysmsg sysmsg;
984263bc
MD
435 int which; char which_[PAD_(int)];
436 int who; char who_[PAD_(int)];
437};
438struct bind_args {
c7114eea 439 union sysmsg sysmsg;
984263bc
MD
440 int s; char s_[PAD_(int)];
441 caddr_t name; char name_[PAD_(caddr_t)];
442 int namelen; char namelen_[PAD_(int)];
443};
444struct setsockopt_args {
c7114eea 445 union sysmsg sysmsg;
984263bc
MD
446 int s; char s_[PAD_(int)];
447 int level; char level_[PAD_(int)];
448 int name; char name_[PAD_(int)];
449 caddr_t val; char val_[PAD_(caddr_t)];
450 int valsize; char valsize_[PAD_(int)];
451};
452struct listen_args {
c7114eea 453 union sysmsg sysmsg;
984263bc
MD
454 int s; char s_[PAD_(int)];
455 int backlog; char backlog_[PAD_(int)];
456};
457struct gettimeofday_args {
c7114eea 458 union sysmsg sysmsg;
984263bc
MD
459 struct timeval * tp; char tp_[PAD_(struct timeval *)];
460 struct timezone * tzp; char tzp_[PAD_(struct timezone *)];
461};
462struct getrusage_args {
c7114eea 463 union sysmsg sysmsg;
984263bc
MD
464 int who; char who_[PAD_(int)];
465 struct rusage * rusage; char rusage_[PAD_(struct rusage *)];
466};
467struct getsockopt_args {
c7114eea 468 union sysmsg sysmsg;
984263bc
MD
469 int s; char s_[PAD_(int)];
470 int level; char level_[PAD_(int)];
471 int name; char name_[PAD_(int)];
472 caddr_t val; char val_[PAD_(caddr_t)];
473 int * avalsize; char avalsize_[PAD_(int *)];
474};
475struct readv_args {
c7114eea 476 union sysmsg sysmsg;
984263bc
MD
477 int fd; char fd_[PAD_(int)];
478 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
479 u_int iovcnt; char iovcnt_[PAD_(u_int)];
480};
481struct writev_args {
c7114eea 482 union sysmsg sysmsg;
984263bc
MD
483 int fd; char fd_[PAD_(int)];
484 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
485 u_int iovcnt; char iovcnt_[PAD_(u_int)];
486};
487struct settimeofday_args {
c7114eea 488 union sysmsg sysmsg;
984263bc
MD
489 struct timeval * tv; char tv_[PAD_(struct timeval *)];
490 struct timezone * tzp; char tzp_[PAD_(struct timezone *)];
491};
492struct fchown_args {
c7114eea 493 union sysmsg sysmsg;
984263bc
MD
494 int fd; char fd_[PAD_(int)];
495 int uid; char uid_[PAD_(int)];
496 int gid; char gid_[PAD_(int)];
497};
498struct fchmod_args {
c7114eea 499 union sysmsg sysmsg;
984263bc
MD
500 int fd; char fd_[PAD_(int)];
501 int mode; char mode_[PAD_(int)];
502};
503struct setreuid_args {
c7114eea 504 union sysmsg sysmsg;
984263bc
MD
505 int ruid; char ruid_[PAD_(int)];
506 int euid; char euid_[PAD_(int)];
507};
508struct setregid_args {
c7114eea 509 union sysmsg sysmsg;
984263bc
MD
510 int rgid; char rgid_[PAD_(int)];
511 int egid; char egid_[PAD_(int)];
512};
513struct rename_args {
c7114eea 514 union sysmsg sysmsg;
984263bc
MD
515 char * from; char from_[PAD_(char *)];
516 char * to; char to_[PAD_(char *)];
517};
518struct flock_args {
c7114eea 519 union sysmsg sysmsg;
984263bc
MD
520 int fd; char fd_[PAD_(int)];
521 int how; char how_[PAD_(int)];
522};
523struct mkfifo_args {
c7114eea 524 union sysmsg sysmsg;
984263bc
MD
525 char * path; char path_[PAD_(char *)];
526 int mode; char mode_[PAD_(int)];
527};
528struct sendto_args {
c7114eea 529 union sysmsg sysmsg;
984263bc
MD
530 int s; char s_[PAD_(int)];
531 caddr_t buf; char buf_[PAD_(caddr_t)];
532 size_t len; char len_[PAD_(size_t)];
533 int flags; char flags_[PAD_(int)];
534 caddr_t to; char to_[PAD_(caddr_t)];
535 int tolen; char tolen_[PAD_(int)];
536};
537struct shutdown_args {
c7114eea 538 union sysmsg sysmsg;
984263bc
MD
539 int s; char s_[PAD_(int)];
540 int how; char how_[PAD_(int)];
541};
542struct socketpair_args {
c7114eea 543 union sysmsg sysmsg;
984263bc
MD
544 int domain; char domain_[PAD_(int)];
545 int type; char type_[PAD_(int)];
546 int protocol; char protocol_[PAD_(int)];
547 int * rsv; char rsv_[PAD_(int *)];
548};
549struct mkdir_args {
c7114eea 550 union sysmsg sysmsg;
984263bc
MD
551 char * path; char path_[PAD_(char *)];
552 int mode; char mode_[PAD_(int)];
553};
554struct rmdir_args {
c7114eea 555 union sysmsg sysmsg;
984263bc
MD
556 char * path; char path_[PAD_(char *)];
557};
558struct utimes_args {
c7114eea 559 union sysmsg sysmsg;
984263bc
MD
560 char * path; char path_[PAD_(char *)];
561 struct timeval * tptr; char tptr_[PAD_(struct timeval *)];
562};
563struct adjtime_args {
c7114eea 564 union sysmsg sysmsg;
984263bc
MD
565 struct timeval * delta; char delta_[PAD_(struct timeval *)];
566 struct timeval * olddelta; char olddelta_[PAD_(struct timeval *)];
567};
568struct ogethostid_args {
c7114eea 569 union sysmsg sysmsg;
984263bc
MD
570 register_t dummy;
571};
572struct setsid_args {
c7114eea 573 union sysmsg sysmsg;
984263bc
MD
574 register_t dummy;
575};
576struct quotactl_args {
c7114eea 577 union sysmsg sysmsg;
984263bc
MD
578 char * path; char path_[PAD_(char *)];
579 int cmd; char cmd_[PAD_(int)];
580 int uid; char uid_[PAD_(int)];
581 caddr_t arg; char arg_[PAD_(caddr_t)];
582};
583struct oquota_args {
c7114eea 584 union sysmsg sysmsg;
984263bc
MD
585 register_t dummy;
586};
587struct nfssvc_args {
c7114eea 588 union sysmsg sysmsg;
984263bc
MD
589 int flag; char flag_[PAD_(int)];
590 caddr_t argp; char argp_[PAD_(caddr_t)];
591};
592struct statfs_args {
c7114eea 593 union sysmsg sysmsg;
984263bc
MD
594 char * path; char path_[PAD_(char *)];
595 struct statfs * buf; char buf_[PAD_(struct statfs *)];
596};
597struct fstatfs_args {
c7114eea 598 union sysmsg sysmsg;
984263bc
MD
599 int fd; char fd_[PAD_(int)];
600 struct statfs * buf; char buf_[PAD_(struct statfs *)];
601};
602struct getfh_args {
c7114eea 603 union sysmsg sysmsg;
984263bc
MD
604 char * fname; char fname_[PAD_(char *)];
605 struct fhandle * fhp; char fhp_[PAD_(struct fhandle *)];
606};
607struct getdomainname_args {
c7114eea 608 union sysmsg sysmsg;
984263bc
MD
609 char * domainname; char domainname_[PAD_(char *)];
610 int len; char len_[PAD_(int)];
611};
612struct setdomainname_args {
c7114eea 613 union sysmsg sysmsg;
984263bc
MD
614 char * domainname; char domainname_[PAD_(char *)];
615 int len; char len_[PAD_(int)];
616};
617struct uname_args {
c7114eea 618 union sysmsg sysmsg;
984263bc
MD
619 struct utsname * name; char name_[PAD_(struct utsname *)];
620};
621struct sysarch_args {
c7114eea 622 union sysmsg sysmsg;
984263bc
MD
623 int op; char op_[PAD_(int)];
624 char * parms; char parms_[PAD_(char *)];
625};
626struct rtprio_args {
c7114eea 627 union sysmsg sysmsg;
984263bc
MD
628 int function; char function_[PAD_(int)];
629 pid_t pid; char pid_[PAD_(pid_t)];
630 struct rtprio * rtp; char rtp_[PAD_(struct rtprio *)];
631};
632struct semsys_args {
c7114eea 633 union sysmsg sysmsg;
984263bc
MD
634 int which; char which_[PAD_(int)];
635 int a2; char a2_[PAD_(int)];
636 int a3; char a3_[PAD_(int)];
637 int a4; char a4_[PAD_(int)];
638 int a5; char a5_[PAD_(int)];
639};
640struct msgsys_args {
c7114eea 641 union sysmsg sysmsg;
984263bc
MD
642 int which; char which_[PAD_(int)];
643 int a2; char a2_[PAD_(int)];
644 int a3; char a3_[PAD_(int)];
645 int a4; char a4_[PAD_(int)];
646 int a5; char a5_[PAD_(int)];
647 int a6; char a6_[PAD_(int)];
648};
649struct shmsys_args {
c7114eea 650 union sysmsg sysmsg;
984263bc
MD
651 int which; char which_[PAD_(int)];
652 int a2; char a2_[PAD_(int)];
653 int a3; char a3_[PAD_(int)];
654 int a4; char a4_[PAD_(int)];
655};
656struct pread_args {
c7114eea 657 union sysmsg sysmsg;
984263bc
MD
658 int fd; char fd_[PAD_(int)];
659 void * buf; char buf_[PAD_(void *)];
660 size_t nbyte; char nbyte_[PAD_(size_t)];
661 int pad; char pad_[PAD_(int)];
662 off_t offset; char offset_[PAD_(off_t)];
663};
664struct pwrite_args {
c7114eea 665 union sysmsg sysmsg;
984263bc
MD
666 int fd; char fd_[PAD_(int)];
667 const void * buf; char buf_[PAD_(const void *)];
668 size_t nbyte; char nbyte_[PAD_(size_t)];
669 int pad; char pad_[PAD_(int)];
670 off_t offset; char offset_[PAD_(off_t)];
671};
672struct ntp_adjtime_args {
c7114eea 673 union sysmsg sysmsg;
984263bc
MD
674 struct timex * tp; char tp_[PAD_(struct timex *)];
675};
676struct setgid_args {
c7114eea 677 union sysmsg sysmsg;
984263bc
MD
678 gid_t gid; char gid_[PAD_(gid_t)];
679};
680struct setegid_args {
c7114eea 681 union sysmsg sysmsg;
984263bc
MD
682 gid_t egid; char egid_[PAD_(gid_t)];
683};
684struct seteuid_args {
c7114eea 685 union sysmsg sysmsg;
984263bc
MD
686 uid_t euid; char euid_[PAD_(uid_t)];
687};
688struct stat_args {
c7114eea 689 union sysmsg sysmsg;
984263bc
MD
690 char * path; char path_[PAD_(char *)];
691 struct stat * ub; char ub_[PAD_(struct stat *)];
692};
693struct fstat_args {
c7114eea 694 union sysmsg sysmsg;
984263bc
MD
695 int fd; char fd_[PAD_(int)];
696 struct stat * sb; char sb_[PAD_(struct stat *)];
697};
698struct lstat_args {
c7114eea 699 union sysmsg sysmsg;
984263bc
MD
700 char * path; char path_[PAD_(char *)];
701 struct stat * ub; char ub_[PAD_(struct stat *)];
702};
703struct pathconf_args {
c7114eea 704 union sysmsg sysmsg;
984263bc
MD
705 char * path; char path_[PAD_(char *)];
706 int name; char name_[PAD_(int)];
707};
708struct fpathconf_args {
c7114eea 709 union sysmsg sysmsg;
984263bc
MD
710 int fd; char fd_[PAD_(int)];
711 int name; char name_[PAD_(int)];
712};
713struct __getrlimit_args {
c7114eea 714 union sysmsg sysmsg;
984263bc
MD
715 u_int which; char which_[PAD_(u_int)];
716 struct rlimit * rlp; char rlp_[PAD_(struct rlimit *)];
717};
718struct __setrlimit_args {
c7114eea 719 union sysmsg sysmsg;
984263bc
MD
720 u_int which; char which_[PAD_(u_int)];
721 struct rlimit * rlp; char rlp_[PAD_(struct rlimit *)];
722};
723struct getdirentries_args {
c7114eea 724 union sysmsg sysmsg;
984263bc
MD
725 int fd; char fd_[PAD_(int)];
726 char * buf; char buf_[PAD_(char *)];
727 u_int count; char count_[PAD_(u_int)];
728 long * basep; char basep_[PAD_(long *)];
729};
730struct mmap_args {
c7114eea 731 union sysmsg sysmsg;
984263bc
MD
732 caddr_t addr; char addr_[PAD_(caddr_t)];
733 size_t len; char len_[PAD_(size_t)];
734 int prot; char prot_[PAD_(int)];
735 int flags; char flags_[PAD_(int)];
736 int fd; char fd_[PAD_(int)];
737 int pad; char pad_[PAD_(int)];
738 off_t pos; char pos_[PAD_(off_t)];
739};
740struct lseek_args {
c7114eea 741 union sysmsg sysmsg;
984263bc
MD
742 int fd; char fd_[PAD_(int)];
743 int pad; char pad_[PAD_(int)];
744 off_t offset; char offset_[PAD_(off_t)];
745 int whence; char whence_[PAD_(int)];
746};
747struct truncate_args {
c7114eea 748 union sysmsg sysmsg;
984263bc
MD
749 char * path; char path_[PAD_(char *)];
750 int pad; char pad_[PAD_(int)];
751 off_t length; char length_[PAD_(off_t)];
752};
753struct ftruncate_args {
c7114eea 754 union sysmsg sysmsg;
984263bc
MD
755 int fd; char fd_[PAD_(int)];
756 int pad; char pad_[PAD_(int)];
757 off_t length; char length_[PAD_(off_t)];
758};
759struct sysctl_args {
c7114eea 760 union sysmsg sysmsg;
984263bc
MD
761 int * name; char name_[PAD_(int *)];
762 u_int namelen; char namelen_[PAD_(u_int)];
763 void * old; char old_[PAD_(void *)];
764 size_t * oldlenp; char oldlenp_[PAD_(size_t *)];
765 void * new; char new_[PAD_(void *)];
766 size_t newlen; char newlen_[PAD_(size_t)];
767};
768struct mlock_args {
c7114eea 769 union sysmsg sysmsg;
984263bc
MD
770 const void * addr; char addr_[PAD_(const void *)];
771 size_t len; char len_[PAD_(size_t)];
772};
773struct munlock_args {
c7114eea 774 union sysmsg sysmsg;
984263bc
MD
775 const void * addr; char addr_[PAD_(const void *)];
776 size_t len; char len_[PAD_(size_t)];
777};
778struct undelete_args {
c7114eea 779 union sysmsg sysmsg;
984263bc
MD
780 char * path; char path_[PAD_(char *)];
781};
782struct futimes_args {
c7114eea 783 union sysmsg sysmsg;
984263bc
MD
784 int fd; char fd_[PAD_(int)];
785 struct timeval * tptr; char tptr_[PAD_(struct timeval *)];
786};
787struct getpgid_args {
c7114eea 788 union sysmsg sysmsg;
984263bc
MD
789 pid_t pid; char pid_[PAD_(pid_t)];
790};
791struct poll_args {
c7114eea 792 union sysmsg sysmsg;
984263bc
MD
793 struct pollfd * fds; char fds_[PAD_(struct pollfd *)];
794 u_int nfds; char nfds_[PAD_(u_int)];
795 int timeout; char timeout_[PAD_(int)];
796};
797struct __semctl_args {
c7114eea 798 union sysmsg sysmsg;
984263bc
MD
799 int semid; char semid_[PAD_(int)];
800 int semnum; char semnum_[PAD_(int)];
801 int cmd; char cmd_[PAD_(int)];
802 union semun * arg; char arg_[PAD_(union semun *)];
803};
804struct semget_args {
c7114eea 805 union sysmsg sysmsg;
984263bc
MD
806 key_t key; char key_[PAD_(key_t)];
807 int nsems; char nsems_[PAD_(int)];
808 int semflg; char semflg_[PAD_(int)];
809};
810struct semop_args {
c7114eea 811 union sysmsg sysmsg;
984263bc
MD
812 int semid; char semid_[PAD_(int)];
813 struct sembuf * sops; char sops_[PAD_(struct sembuf *)];
814 u_int nsops; char nsops_[PAD_(u_int)];
815};
816struct msgctl_args {
c7114eea 817 union sysmsg sysmsg;
984263bc
MD
818 int msqid; char msqid_[PAD_(int)];
819 int cmd; char cmd_[PAD_(int)];
820 struct msqid_ds * buf; char buf_[PAD_(struct msqid_ds *)];
821};
822struct msgget_args {
c7114eea 823 union sysmsg sysmsg;
984263bc
MD
824 key_t key; char key_[PAD_(key_t)];
825 int msgflg; char msgflg_[PAD_(int)];
826};
827struct msgsnd_args {
c7114eea 828 union sysmsg sysmsg;
984263bc
MD
829 int msqid; char msqid_[PAD_(int)];
830 void * msgp; char msgp_[PAD_(void *)];
831 size_t msgsz; char msgsz_[PAD_(size_t)];
832 int msgflg; char msgflg_[PAD_(int)];
833};
834struct msgrcv_args {
c7114eea 835 union sysmsg sysmsg;
984263bc
MD
836 int msqid; char msqid_[PAD_(int)];
837 void * msgp; char msgp_[PAD_(void *)];
838 size_t msgsz; char msgsz_[PAD_(size_t)];
839 long msgtyp; char msgtyp_[PAD_(long)];
840 int msgflg; char msgflg_[PAD_(int)];
841};
842struct shmat_args {
c7114eea 843 union sysmsg sysmsg;
984263bc
MD
844 int shmid; char shmid_[PAD_(int)];
845 void * shmaddr; char shmaddr_[PAD_(void *)];
846 int shmflg; char shmflg_[PAD_(int)];
847};
848struct shmctl_args {
c7114eea 849 union sysmsg sysmsg;
984263bc
MD
850 int shmid; char shmid_[PAD_(int)];
851 int cmd; char cmd_[PAD_(int)];
852 struct shmid_ds * buf; char buf_[PAD_(struct shmid_ds *)];
853};
854struct shmdt_args {
c7114eea 855 union sysmsg sysmsg;
984263bc
MD
856 void * shmaddr; char shmaddr_[PAD_(void *)];
857};
858struct shmget_args {
c7114eea 859 union sysmsg sysmsg;
984263bc
MD
860 key_t key; char key_[PAD_(key_t)];
861 int size; char size_[PAD_(int)];
862 int shmflg; char shmflg_[PAD_(int)];
863};
864struct clock_gettime_args {
c7114eea 865 union sysmsg sysmsg;
984263bc
MD
866 clockid_t clock_id; char clock_id_[PAD_(clockid_t)];
867 struct timespec * tp; char tp_[PAD_(struct timespec *)];
868};
869struct clock_settime_args {
c7114eea 870 union sysmsg sysmsg;
984263bc
MD
871 clockid_t clock_id; char clock_id_[PAD_(clockid_t)];
872 const struct timespec * tp; char tp_[PAD_(const struct timespec *)];
873};
874struct clock_getres_args {
c7114eea 875 union sysmsg sysmsg;
984263bc
MD
876 clockid_t clock_id; char clock_id_[PAD_(clockid_t)];
877 struct timespec * tp; char tp_[PAD_(struct timespec *)];
878};
879struct nanosleep_args {
c7114eea 880 union sysmsg sysmsg;
984263bc
MD
881 const struct timespec * rqtp; char rqtp_[PAD_(const struct timespec *)];
882 struct timespec * rmtp; char rmtp_[PAD_(struct timespec *)];
883};
884struct minherit_args {
c7114eea 885 union sysmsg sysmsg;
984263bc
MD
886 void * addr; char addr_[PAD_(void *)];
887 size_t len; char len_[PAD_(size_t)];
888 int inherit; char inherit_[PAD_(int)];
889};
890struct rfork_args {
c7114eea 891 union sysmsg sysmsg;
984263bc
MD
892 int flags; char flags_[PAD_(int)];
893};
894struct openbsd_poll_args {
c7114eea 895 union sysmsg sysmsg;
984263bc
MD
896 struct pollfd * fds; char fds_[PAD_(struct pollfd *)];
897 u_int nfds; char nfds_[PAD_(u_int)];
898 int timeout; char timeout_[PAD_(int)];
899};
900struct issetugid_args {
c7114eea 901 union sysmsg sysmsg;
984263bc
MD
902 register_t dummy;
903};
904struct lchown_args {
c7114eea 905 union sysmsg sysmsg;
984263bc
MD
906 char * path; char path_[PAD_(char *)];
907 int uid; char uid_[PAD_(int)];
908 int gid; char gid_[PAD_(int)];
909};
910struct getdents_args {
c7114eea 911 union sysmsg sysmsg;
984263bc
MD
912 int fd; char fd_[PAD_(int)];
913 char * buf; char buf_[PAD_(char *)];
914 size_t count; char count_[PAD_(size_t)];
915};
916struct lchmod_args {
c7114eea 917 union sysmsg sysmsg;
984263bc
MD
918 char * path; char path_[PAD_(char *)];
919 mode_t mode; char mode_[PAD_(mode_t)];
920};
921struct lutimes_args {
c7114eea 922 union sysmsg sysmsg;
984263bc
MD
923 char * path; char path_[PAD_(char *)];
924 struct timeval * tptr; char tptr_[PAD_(struct timeval *)];
925};
926struct nstat_args {
c7114eea 927 union sysmsg sysmsg;
984263bc
MD
928 char * path; char path_[PAD_(char *)];
929 struct nstat * ub; char ub_[PAD_(struct nstat *)];
930};
931struct nfstat_args {
c7114eea 932 union sysmsg sysmsg;
984263bc
MD
933 int fd; char fd_[PAD_(int)];
934 struct nstat * sb; char sb_[PAD_(struct nstat *)];
935};
936struct nlstat_args {
c7114eea 937 union sysmsg sysmsg;
984263bc
MD
938 char * path; char path_[PAD_(char *)];
939 struct nstat * ub; char ub_[PAD_(struct nstat *)];
940};
941struct fhstatfs_args {
c7114eea 942 union sysmsg sysmsg;
984263bc
MD
943 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
944 struct statfs * buf; char buf_[PAD_(struct statfs *)];
945};
946struct fhopen_args {
c7114eea 947 union sysmsg sysmsg;
984263bc
MD
948 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
949 int flags; char flags_[PAD_(int)];
950};
951struct fhstat_args {
c7114eea 952 union sysmsg sysmsg;
984263bc
MD
953 const struct fhandle * u_fhp; char u_fhp_[PAD_(const struct fhandle *)];
954 struct stat * sb; char sb_[PAD_(struct stat *)];
955};
956struct modnext_args {
c7114eea 957 union sysmsg sysmsg;
984263bc
MD
958 int modid; char modid_[PAD_(int)];
959};
960struct modstat_args {
c7114eea 961 union sysmsg sysmsg;
984263bc
MD
962 int modid; char modid_[PAD_(int)];
963 struct module_stat * stat; char stat_[PAD_(struct module_stat *)];
964};
965struct modfnext_args {
c7114eea 966 union sysmsg sysmsg;
984263bc
MD
967 int modid; char modid_[PAD_(int)];
968};
969struct modfind_args {
c7114eea 970 union sysmsg sysmsg;
984263bc
MD
971 const char * name; char name_[PAD_(const char *)];
972};
973struct kldload_args {
c7114eea 974 union sysmsg sysmsg;
984263bc
MD
975 const char * file; char file_[PAD_(const char *)];
976};
977struct kldunload_args {
c7114eea 978 union sysmsg sysmsg;
984263bc
MD
979 int fileid; char fileid_[PAD_(int)];
980};
981struct kldfind_args {
c7114eea 982 union sysmsg sysmsg;
984263bc
MD
983 const char * file; char file_[PAD_(const char *)];
984};
985struct kldnext_args {
c7114eea 986 union sysmsg sysmsg;
984263bc
MD
987 int fileid; char fileid_[PAD_(int)];
988};
989struct kldstat_args {
c7114eea 990 union sysmsg sysmsg;
984263bc
MD
991 int fileid; char fileid_[PAD_(int)];
992 struct kld_file_stat * stat; char stat_[PAD_(struct kld_file_stat *)];
993};
994struct kldfirstmod_args {
c7114eea 995 union sysmsg sysmsg;
984263bc
MD
996 int fileid; char fileid_[PAD_(int)];
997};
998struct getsid_args {
c7114eea 999 union sysmsg sysmsg;
984263bc
MD
1000 pid_t pid; char pid_[PAD_(pid_t)];
1001};
1002struct setresuid_args {
c7114eea 1003 union sysmsg sysmsg;
984263bc
MD
1004 uid_t ruid; char ruid_[PAD_(uid_t)];
1005 uid_t euid; char euid_[PAD_(uid_t)];
1006 uid_t suid; char suid_[PAD_(uid_t)];
1007};
1008struct setresgid_args {
c7114eea 1009 union sysmsg sysmsg;
984263bc
MD
1010 gid_t rgid; char rgid_[PAD_(gid_t)];
1011 gid_t egid; char egid_[PAD_(gid_t)];
1012 gid_t sgid; char sgid_[PAD_(gid_t)];
1013};
1014struct aio_return_args {
c7114eea 1015 union sysmsg sysmsg;
984263bc
MD
1016 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1017};
1018struct aio_suspend_args {
c7114eea 1019 union sysmsg sysmsg;
984263bc
MD
1020 struct aiocb *const * aiocbp; char aiocbp_[PAD_(struct aiocb *const *)];
1021 int nent; char nent_[PAD_(int)];
1022 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1023};
1024struct aio_cancel_args {
c7114eea 1025 union sysmsg sysmsg;
984263bc
MD
1026 int fd; char fd_[PAD_(int)];
1027 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1028};
1029struct aio_error_args {
c7114eea 1030 union sysmsg sysmsg;
984263bc
MD
1031 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1032};
1033struct aio_read_args {
c7114eea 1034 union sysmsg sysmsg;
984263bc
MD
1035 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1036};
1037struct aio_write_args {
c7114eea 1038 union sysmsg sysmsg;
984263bc
MD
1039 struct aiocb * aiocbp; char aiocbp_[PAD_(struct aiocb *)];
1040};
1041struct lio_listio_args {
c7114eea 1042 union sysmsg sysmsg;
984263bc
MD
1043 int mode; char mode_[PAD_(int)];
1044 struct aiocb *const * acb_list; char acb_list_[PAD_(struct aiocb *const *)];
1045 int nent; char nent_[PAD_(int)];
1046 struct sigevent * sig; char sig_[PAD_(struct sigevent *)];
1047};
1048struct yield_args {
c7114eea 1049 union sysmsg sysmsg;
984263bc
MD
1050 register_t dummy;
1051};
1052struct thr_sleep_args {
c7114eea 1053 union sysmsg sysmsg;
984263bc
MD
1054 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1055};
1056struct thr_wakeup_args {
c7114eea 1057 union sysmsg sysmsg;
984263bc
MD
1058 pid_t pid; char pid_[PAD_(pid_t)];
1059};
1060struct mlockall_args {
c7114eea 1061 union sysmsg sysmsg;
984263bc
MD
1062 int how; char how_[PAD_(int)];
1063};
1064struct munlockall_args {
c7114eea 1065 union sysmsg sysmsg;
984263bc
MD
1066 register_t dummy;
1067};
1068struct __getcwd_args {
c7114eea 1069 union sysmsg sysmsg;
984263bc
MD
1070 u_char * buf; char buf_[PAD_(u_char *)];
1071 u_int buflen; char buflen_[PAD_(u_int)];
1072};
1073struct sched_setparam_args {
c7114eea 1074 union sysmsg sysmsg;
984263bc
MD
1075 pid_t pid; char pid_[PAD_(pid_t)];
1076 const struct sched_param * param; char param_[PAD_(const struct sched_param *)];
1077};
1078struct sched_getparam_args {
c7114eea 1079 union sysmsg sysmsg;
984263bc
MD
1080 pid_t pid; char pid_[PAD_(pid_t)];
1081 struct sched_param * param; char param_[PAD_(struct sched_param *)];
1082};
1083struct sched_setscheduler_args {
c7114eea 1084 union sysmsg sysmsg;
984263bc
MD
1085 pid_t pid; char pid_[PAD_(pid_t)];
1086 int policy; char policy_[PAD_(int)];
1087 const struct sched_param * param; char param_[PAD_(const struct sched_param *)];
1088};
1089struct sched_getscheduler_args {
c7114eea 1090 union sysmsg sysmsg;
984263bc
MD
1091 pid_t pid; char pid_[PAD_(pid_t)];
1092};
1093struct sched_yield_args {
c7114eea 1094 union sysmsg sysmsg;
984263bc
MD
1095 register_t dummy;
1096};
1097struct sched_get_priority_max_args {
c7114eea 1098 union sysmsg sysmsg;
984263bc
MD
1099 int policy; char policy_[PAD_(int)];
1100};
1101struct sched_get_priority_min_args {
c7114eea 1102 union sysmsg sysmsg;
984263bc
MD
1103 int policy; char policy_[PAD_(int)];
1104};
1105struct sched_rr_get_interval_args {
c7114eea 1106 union sysmsg sysmsg;
984263bc
MD
1107 pid_t pid; char pid_[PAD_(pid_t)];
1108 struct timespec * interval; char interval_[PAD_(struct timespec *)];
1109};
1110struct utrace_args {
c7114eea 1111 union sysmsg sysmsg;
984263bc
MD
1112 const void * addr; char addr_[PAD_(const void *)];
1113 size_t len; char len_[PAD_(size_t)];
1114};
1115struct kldsym_args {
c7114eea 1116 union sysmsg sysmsg;
984263bc
MD
1117 int fileid; char fileid_[PAD_(int)];
1118 int cmd; char cmd_[PAD_(int)];
1119 void * data; char data_[PAD_(void *)];
1120};
1121struct jail_args {
c7114eea 1122 union sysmsg sysmsg;
984263bc
MD
1123 struct jail * jail; char jail_[PAD_(struct jail *)];
1124};
1125struct sigprocmask_args {
c7114eea 1126 union sysmsg sysmsg;
984263bc
MD
1127 int how; char how_[PAD_(int)];
1128 const sigset_t * set; char set_[PAD_(const sigset_t *)];
1129 sigset_t * oset; char oset_[PAD_(sigset_t *)];
1130};
1131struct sigsuspend_args {
c7114eea 1132 union sysmsg sysmsg;
984263bc
MD
1133 const sigset_t * sigmask; char sigmask_[PAD_(const sigset_t *)];
1134};
1135struct sigaction_args {
c7114eea 1136 union sysmsg sysmsg;
984263bc
MD
1137 int sig; char sig_[PAD_(int)];
1138 const struct sigaction * act; char act_[PAD_(const struct sigaction *)];
1139 struct sigaction * oact; char oact_[PAD_(struct sigaction *)];
1140};
1141struct sigpending_args {
c7114eea 1142 union sysmsg sysmsg;
984263bc
MD
1143 sigset_t * set; char set_[PAD_(sigset_t *)];
1144};
1145struct sigreturn_args {
c7114eea 1146 union sysmsg sysmsg;
984263bc
MD
1147 ucontext_t * sigcntxp; char sigcntxp_[PAD_(ucontext_t *)];
1148};
1149struct __acl_get_file_args {
c7114eea 1150 union sysmsg sysmsg;
984263bc
MD
1151 const char * path; char path_[PAD_(const char *)];
1152 acl_type_t type; char type_[PAD_(acl_type_t)];
1153 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1154};
1155struct __acl_set_file_args {
c7114eea 1156 union sysmsg sysmsg;
984263bc
MD
1157 const char * path; char path_[PAD_(const char *)];
1158 acl_type_t type; char type_[PAD_(acl_type_t)];
1159 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1160};
1161struct __acl_get_fd_args {
c7114eea 1162 union sysmsg sysmsg;
984263bc
MD
1163 int filedes; char filedes_[PAD_(int)];
1164 acl_type_t type; char type_[PAD_(acl_type_t)];
1165 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1166};
1167struct __acl_set_fd_args {
c7114eea 1168 union sysmsg sysmsg;
984263bc
MD
1169 int filedes; char filedes_[PAD_(int)];
1170 acl_type_t type; char type_[PAD_(acl_type_t)];
1171 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1172};
1173struct __acl_delete_file_args {
c7114eea 1174 union sysmsg sysmsg;
984263bc
MD
1175 const char * path; char path_[PAD_(const char *)];
1176 acl_type_t type; char type_[PAD_(acl_type_t)];
1177};
1178struct __acl_delete_fd_args {
c7114eea 1179 union sysmsg sysmsg;
984263bc
MD
1180 int filedes; char filedes_[PAD_(int)];
1181 acl_type_t type; char type_[PAD_(acl_type_t)];
1182};
1183struct __acl_aclcheck_file_args {
c7114eea 1184 union sysmsg sysmsg;
984263bc
MD
1185 const char * path; char path_[PAD_(const char *)];
1186 acl_type_t type; char type_[PAD_(acl_type_t)];
1187 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1188};
1189struct __acl_aclcheck_fd_args {
c7114eea 1190 union sysmsg sysmsg;
984263bc
MD
1191 int filedes; char filedes_[PAD_(int)];
1192 acl_type_t type; char type_[PAD_(acl_type_t)];
1193 struct acl * aclp; char aclp_[PAD_(struct acl *)];
1194};
1195struct extattrctl_args {
c7114eea 1196 union sysmsg sysmsg;
984263bc
MD
1197 const char * path; char path_[PAD_(const char *)];
1198 int cmd; char cmd_[PAD_(int)];
1199 const char * attrname; char attrname_[PAD_(const char *)];
1200 char * arg; char arg_[PAD_(char *)];
1201};
1202struct extattr_set_file_args {
c7114eea 1203 union sysmsg sysmsg;
984263bc
MD
1204 const char * path; char path_[PAD_(const char *)];
1205 const char * attrname; char attrname_[PAD_(const char *)];
1206 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
1207 unsigned iovcnt; char iovcnt_[PAD_(unsigned)];
1208};
1209struct extattr_get_file_args {
c7114eea 1210 union sysmsg sysmsg;
984263bc
MD
1211 const char * path; char path_[PAD_(const char *)];
1212 const char * attrname; char attrname_[PAD_(const char *)];
1213 struct iovec * iovp; char iovp_[PAD_(struct iovec *)];
1214 unsigned iovcnt; char iovcnt_[PAD_(unsigned)];
1215};
1216struct extattr_delete_file_args {
c7114eea 1217 union sysmsg sysmsg;
984263bc
MD
1218 const char * path; char path_[PAD_(const char *)];
1219 const char * attrname; char attrname_[PAD_(const char *)];
1220};
1221struct aio_waitcomplete_args {
c7114eea 1222 union sysmsg sysmsg;
984263bc
MD
1223 struct aiocb ** aiocbp; char aiocbp_[PAD_(struct aiocb **)];
1224 struct timespec * timeout; char timeout_[PAD_(struct timespec *)];
1225};
1226struct getresuid_args {
c7114eea 1227 union sysmsg sysmsg;
984263bc
MD
1228 uid_t * ruid; char ruid_[PAD_(uid_t *)];
1229 uid_t * euid; char euid_[PAD_(uid_t *)];
1230 uid_t * suid; char suid_[PAD_(uid_t *)];
1231};
1232struct getresgid_args {
c7114eea 1233 union sysmsg sysmsg;
984263bc
MD
1234 gid_t * rgid; char rgid_[PAD_(gid_t *)];
1235 gid_t * egid; char egid_[PAD_(gid_t *)];
1236 gid_t * sgid; char sgid_[PAD_(gid_t *)];
1237};
1238struct kqueue_args {
c7114eea 1239 union sysmsg sysmsg;
984263bc
MD
1240 register_t dummy;
1241};
1242struct kevent_args {
c7114eea 1243 union sysmsg sysmsg;
984263bc
MD
1244 int fd; char fd_[PAD_(int)];
1245 const struct kevent * changelist; char changelist_[PAD_(const struct kevent *)];
1246 int nchanges; char nchanges_[PAD_(int)];
1247 struct kevent * eventlist; char eventlist_[PAD_(struct kevent *)];
1248 int nevents; char nevents_[PAD_(int)];
1249 const struct timespec * timeout; char timeout_[PAD_(const struct timespec *)];
1250};
1251struct sendfile_args {
c7114eea 1252 union sysmsg sysmsg;
984263bc
MD
1253 int fd; char fd_[PAD_(int)];
1254 int s; char s_[PAD_(int)];
1255 off_t offset; char offset_[PAD_(off_t)];
1256 size_t nbytes; char nbytes_[PAD_(size_t)];
1257 struct sf_hdtr * hdtr; char hdtr_[PAD_(struct sf_hdtr *)];
1258 off_t * sbytes; char sbytes_[PAD_(off_t *)];
1259 int flags; char flags_[PAD_(int)];
1260};
4fd10eb6
MD
1261
1262#ifdef _KERNEL
1263
41c20dac
MD
1264int nosys __P((struct nosys_args *));
1265void sys_exit __P((struct sys_exit_args *));
1266int fork __P((struct fork_args *));
1267int read __P((struct read_args *));
1268int write __P((struct write_args *));
1269int open __P((struct open_args *));
1270int close __P((struct close_args *));
1271int wait4 __P((struct wait_args *));
1272int link __P((struct link_args *));
1273int unlink __P((struct unlink_args *));
1274int chdir __P((struct chdir_args *));
1275int fchdir __P((struct fchdir_args *));
1276int mknod __P((struct mknod_args *));
1277int chmod __P((struct chmod_args *));
1278int chown __P((struct chown_args *));
1279int obreak __P((struct obreak_args *));
1280int getfsstat __P((struct getfsstat_args *));
1281int getpid __P((struct getpid_args *));
1282int mount __P((struct mount_args *));
1283int unmount __P((struct unmount_args *));
1284int setuid __P((struct setuid_args *));
1285int getuid __P((struct getuid_args *));
1286int geteuid __P((struct geteuid_args *));
1287int ptrace __P((struct ptrace_args *));
1288int recvmsg __P((struct recvmsg_args *));
1289int sendmsg __P((struct sendmsg_args *));
1290int recvfrom __P((struct recvfrom_args *));
1291int accept __P((struct accept_args *));
1292int getpeername __P((struct getpeername_args *));
1293int getsockname __P((struct getsockname_args *));
1294int access __P((struct access_args *));
1295int chflags __P((struct chflags_args *));
1296int fchflags __P((struct fchflags_args *));
1297int sync __P((struct sync_args *));
1298int kill __P((struct kill_args *));
1299int getppid __P((struct getppid_args *));
1300int dup __P((struct dup_args *));
1301int pipe __P((struct pipe_args *));
1302int getegid __P((struct getegid_args *));
1303int profil __P((struct profil_args *));
1304int ktrace __P((struct ktrace_args *));
1305int getgid __P((struct getgid_args *));
1306int getlogin __P((struct getlogin_args *));
1307int setlogin __P((struct setlogin_args *));
1308int acct __P((struct acct_args *));
1309int sigaltstack __P((struct sigaltstack_args *));
1310int ioctl __P((struct ioctl_args *));
1311int reboot __P((struct reboot_args *));
1312int revoke __P((struct revoke_args *));
1313int symlink __P((struct symlink_args *));
1314int readlink __P((struct readlink_args *));
1315int execve __P((struct execve_args *));
1316int umask __P((struct umask_args *));
1317int chroot __P((struct chroot_args *));
1318int msync __P((struct msync_args *));
1319int vfork __P((struct vfork_args *));
1320int sbrk __P((struct sbrk_args *));
1321int sstk __P((struct sstk_args *));
1322int ovadvise __P((struct ovadvise_args *));
1323int munmap __P((struct munmap_args *));
1324int mprotect __P((struct mprotect_args *));
1325int madvise __P((struct madvise_args *));
1326int mincore __P((struct mincore_args *));
1327int getgroups __P((struct getgroups_args *));
1328int setgroups __P((struct setgroups_args *));
1329int getpgrp __P((struct getpgrp_args *));
1330int setpgid __P((struct setpgid_args *));
1331int setitimer __P((struct setitimer_args *));
1332int swapon __P((struct swapon_args *));
1333int getitimer __P((struct getitimer_args *));
1334int getdtablesize __P((struct getdtablesize_args *));
1335int dup2 __P((struct dup2_args *));
1336int fcntl __P((struct fcntl_args *));
1337int select __P((struct select_args *));
1338int fsync __P((struct fsync_args *));
1339int setpriority __P((struct setpriority_args *));
1340int socket __P((struct socket_args *));
1341int connect __P((struct connect_args *));
1342int getpriority __P((struct getpriority_args *));
1343int bind __P((struct bind_args *));
1344int setsockopt __P((struct setsockopt_args *));
1345int listen __P((struct listen_args *));
1346int gettimeofday __P((struct gettimeofday_args *));
1347int getrusage __P((struct getrusage_args *));
1348int getsockopt __P((struct getsockopt_args *));
1349int readv __P((struct readv_args *));
1350int writev __P((struct writev_args *));
1351int settimeofday __P((struct settimeofday_args *));
1352int fchown __P((struct fchown_args *));
1353int fchmod __P((struct fchmod_args *));
1354int setreuid __P((struct setreuid_args *));
1355int setregid __P((struct setregid_args *));
1356int rename __P((struct rename_args *));
1357int flock __P((struct flock_args *));
1358int mkfifo __P((struct mkfifo_args *));
1359int sendto __P((struct sendto_args *));
1360int shutdown __P((struct shutdown_args *));
1361int socketpair __P((struct socketpair_args *));
1362int mkdir __P((struct mkdir_args *));
1363int rmdir __P((struct rmdir_args *));
1364int utimes __P((struct utimes_args *));
1365int adjtime __P((struct adjtime_args *));
1366int setsid __P((struct setsid_args *));
1367int quotactl __P((struct quotactl_args *));
1368int nfssvc __P((struct nfssvc_args *));
1369int statfs __P((struct statfs_args *));
1370int fstatfs __P((struct fstatfs_args *));
1371int getfh __P((struct getfh_args *));
1372int getdomainname __P((struct getdomainname_args *));
1373int setdomainname __P((struct setdomainname_args *));
1374int uname __P((struct uname_args *));
1375int sysarch __P((struct sysarch_args *));
1376int rtprio __P((struct rtprio_args *));
1377int semsys __P((struct semsys_args *));
1378int msgsys __P((struct msgsys_args *));
1379int shmsys __P((struct shmsys_args *));
1380int pread __P((struct pread_args *));
1381int pwrite __P((struct pwrite_args *));
1382int ntp_adjtime __P((struct ntp_adjtime_args *));
1383int setgid __P((struct setgid_args *));
1384int setegid __P((struct setegid_args *));
1385int seteuid __P((struct seteuid_args *));
1386int stat __P((struct stat_args *));
1387int fstat __P((struct fstat_args *));
1388int lstat __P((struct lstat_args *));
1389int pathconf __P((struct pathconf_args *));
1390int fpathconf __P((struct fpathconf_args *));
1391int getrlimit __P((struct __getrlimit_args *));
1392int setrlimit __P((struct __setrlimit_args *));
1393int getdirentries __P((struct getdirentries_args *));
1394int mmap __P((struct mmap_args *));
1395int lseek __P((struct lseek_args *));
1396int truncate __P((struct truncate_args *));
1397int ftruncate __P((struct ftruncate_args *));
1398int __sysctl __P((struct sysctl_args *));
1399int mlock __P((struct mlock_args *));
1400int munlock __P((struct munlock_args *));
1401int undelete __P((struct undelete_args *));
1402int futimes __P((struct futimes_args *));
1403int getpgid __P((struct getpgid_args *));
1404int poll __P((struct poll_args *));
1405int lkmnosys __P((struct nosys_args *));
1406int __semctl __P((struct __semctl_args *));
1407int semget __P((struct semget_args *));
1408int semop __P((struct semop_args *));
1409int msgctl __P((struct msgctl_args *));
1410int msgget __P((struct msgget_args *));
1411int msgsnd __P((struct msgsnd_args *));
1412int msgrcv __P((struct msgrcv_args *));
1413int shmat __P((struct shmat_args *));
1414int shmctl __P((struct shmctl_args *));
1415int shmdt __P((struct shmdt_args *));
1416int shmget __P((struct shmget_args *));
1417int clock_gettime __P((struct clock_gettime_args *));
1418int clock_settime __P((struct clock_settime_args *));
1419int clock_getres __P((struct clock_getres_args *));
1420int nanosleep __P((struct nanosleep_args *));
1421int minherit __P((struct minherit_args *));
1422int rfork __P((struct rfork_args *));
1423int openbsd_poll __P((struct openbsd_poll_args *));
1424int issetugid __P((struct issetugid_args *));
1425int lchown __P((struct lchown_args *));
1426int getdents __P((struct getdents_args *));
1427int lchmod __P((struct lchmod_args *));
1428int lutimes __P((struct lutimes_args *));
1429int nstat __P((struct nstat_args *));
1430int nfstat __P((struct nfstat_args *));
1431int nlstat __P((struct nlstat_args *));
1432int fhstatfs __P((struct fhstatfs_args *));
1433int fhopen __P((struct fhopen_args *));
1434int fhstat __P((struct fhstat_args *));
1435int modnext __P((struct modnext_args *));
1436int modstat __P((struct modstat_args *));
1437int modfnext __P((struct modfnext_args *));
1438int modfind __P((struct modfind_args *));
1439int kldload __P((struct kldload_args *));
1440int kldunload __P((struct kldunload_args *));
1441int kldfind __P((struct kldfind_args *));
1442int kldnext __P((struct kldnext_args *));
1443int kldstat __P((struct kldstat_args *));
1444int kldfirstmod __P((struct kldfirstmod_args *));
1445int getsid __P((struct getsid_args *));
1446int setresuid __P((struct setresuid_args *));
1447int setresgid __P((struct setresgid_args *));
1448int aio_return __P((struct aio_return_args *));
1449int aio_suspend __P((struct aio_suspend_args *));
1450int aio_cancel __P((struct aio_cancel_args *));
1451int aio_error __P((struct aio_error_args *));
1452int aio_read __P((struct aio_read_args *));
1453int aio_write __P((struct aio_write_args *));
1454int lio_listio __P((struct lio_listio_args *));
1455int yield __P((struct yield_args *));
1456int thr_sleep __P((struct thr_sleep_args *));
1457int thr_wakeup __P((struct thr_wakeup_args *));
1458int mlockall __P((struct mlockall_args *));
1459int munlockall __P((struct munlockall_args *));
1460int __getcwd __P((struct __getcwd_args *));
1461int sched_setparam __P((struct sched_setparam_args *));
1462int sched_getparam __P((struct sched_getparam_args *));
1463int sched_setscheduler __P((struct sched_setscheduler_args *));
1464int sched_getscheduler __P((struct sched_getscheduler_args *));
1465int sched_yield __P((struct sched_yield_args *));
1466int sched_get_priority_max __P((struct sched_get_priority_max_args *));
1467int sched_get_priority_min __P((struct sched_get_priority_min_args *));
1468int sched_rr_get_interval __P((struct sched_rr_get_interval_args *));
1469int utrace __P((struct utrace_args *));
1470int kldsym __P((struct kldsym_args *));
1471int jail __P((struct jail_args *));
1472int sigprocmask __P((struct sigprocmask_args *));
1473int sigsuspend __P((struct sigsuspend_args *));
1474int sigaction __P((struct sigaction_args *));
1475int sigpending __P((struct sigpending_args *));
1476int sigreturn __P((struct sigreturn_args *));
1477int __acl_get_file __P((struct __acl_get_file_args *));
1478int __acl_set_file __P((struct __acl_set_file_args *));
1479int __acl_get_fd __P((struct __acl_get_fd_args *));
1480int __acl_set_fd __P((struct __acl_set_fd_args *));
1481int __acl_delete_file __P((struct __acl_delete_file_args *));
1482int __acl_delete_fd __P((struct __acl_delete_fd_args *));
1483int __acl_aclcheck_file __P((struct __acl_aclcheck_file_args *));
1484int __acl_aclcheck_fd __P((struct __acl_aclcheck_fd_args *));
1485int extattrctl __P((struct extattrctl_args *));
1486int extattr_set_file __P((struct extattr_set_file_args *));
1487int extattr_get_file __P((struct extattr_get_file_args *));
1488int extattr_delete_file __P((struct extattr_delete_file_args *));
1489int aio_waitcomplete __P((struct aio_waitcomplete_args *));
1490int getresuid __P((struct getresuid_args *));
1491int getresgid __P((struct getresgid_args *));
1492int kqueue __P((struct kqueue_args *));
1493int kevent __P((struct kevent_args *));
1494int sendfile __P((struct sendfile_args *));
984263bc 1495
4fd10eb6
MD
1496#endif /* _KERNEL */
1497
984263bc
MD
1498#ifdef COMPAT_43
1499
1500struct ocreat_args {
c7114eea 1501 union sysmsg sysmsg;
984263bc
MD
1502 char * path; char path_[PAD_(char *)];
1503 int mode; char mode_[PAD_(int)];
1504};
1505struct olseek_args {
c7114eea 1506 union sysmsg sysmsg;
984263bc
MD
1507 int fd; char fd_[PAD_(int)];
1508 long offset; char offset_[PAD_(long)];
1509 int whence; char whence_[PAD_(int)];
1510};
1511struct ostat_args {
c7114eea 1512 union sysmsg sysmsg;
984263bc
MD
1513 char * path; char path_[PAD_(char *)];
1514 struct ostat * ub; char ub_[PAD_(struct ostat *)];
1515};
1516struct olstat_args {
c7114eea 1517 union sysmsg sysmsg;
984263bc
MD
1518 char * path; char path_[PAD_(char *)];
1519 struct ostat * ub; char ub_[PAD_(struct ostat *)];
1520};
1521struct osigaction_args {
c7114eea 1522 union sysmsg sysmsg;
984263bc
MD
1523 int signum; char signum_[PAD_(int)];
1524 struct osigaction * nsa; char nsa_[PAD_(struct osigaction *)];
1525 struct osigaction * osa; char osa_[PAD_(struct osigaction *)];
1526};
1527struct osigprocmask_args {
c7114eea 1528 union sysmsg sysmsg;
984263bc
MD
1529 int how; char how_[PAD_(int)];
1530 osigset_t mask; char mask_[PAD_(osigset_t)];
1531};
1532struct ofstat_args {
c7114eea 1533 union sysmsg sysmsg;
984263bc
MD
1534 int fd; char fd_[PAD_(int)];
1535 struct ostat * sb; char sb_[PAD_(struct ostat *)];
1536};
1537struct getkerninfo_args {
c7114eea 1538 union sysmsg sysmsg;
984263bc
MD
1539 int op; char op_[PAD_(int)];
1540 char * where; char where_[PAD_(char *)];
1541 size_t * size; char size_[PAD_(size_t *)];
1542 int arg; char arg_[PAD_(int)];
1543};
1544struct ommap_args {
c7114eea 1545 union sysmsg sysmsg;
984263bc
MD
1546 void * addr; char addr_[PAD_(void *)];
1547 int len; char len_[PAD_(int)];
1548 int prot; char prot_[PAD_(int)];
1549 int flags; char flags_[PAD_(int)];
1550 int fd; char fd_[PAD_(int)];
1551 long pos; char pos_[PAD_(long)];
1552};
1553struct gethostname_args {
c7114eea 1554 union sysmsg sysmsg;
984263bc
MD
1555 char * hostname; char hostname_[PAD_(char *)];
1556 u_int len; char len_[PAD_(u_int)];
1557};
1558struct sethostname_args {
c7114eea 1559 union sysmsg sysmsg;
984263bc
MD
1560 char * hostname; char hostname_[PAD_(char *)];
1561 u_int len; char len_[PAD_(u_int)];
1562};
1563struct osend_args {
c7114eea 1564 union sysmsg sysmsg;
984263bc
MD
1565 int s; char s_[PAD_(int)];
1566 caddr_t buf; char buf_[PAD_(caddr_t)];
1567 int len; char len_[PAD_(int)];
1568 int flags; char flags_[PAD_(int)];
1569};
1570struct orecv_args {
c7114eea 1571 union sysmsg sysmsg;
984263bc
MD
1572 int s; char s_[PAD_(int)];
1573 caddr_t buf; char buf_[PAD_(caddr_t)];
1574 int len; char len_[PAD_(int)];
1575 int flags; char flags_[PAD_(int)];
1576};
1577struct osigreturn_args {
c7114eea 1578 union sysmsg sysmsg;
984263bc
MD
1579 struct osigcontext * sigcntxp; char sigcntxp_[PAD_(struct osigcontext *)];
1580};
1581struct osigvec_args {
c7114eea 1582 union sysmsg sysmsg;
984263bc
MD
1583 int signum; char signum_[PAD_(int)];
1584 struct sigvec * nsv; char nsv_[PAD_(struct sigvec *)];
1585 struct sigvec * osv; char osv_[PAD_(struct sigvec *)];
1586};
1587struct osigblock_args {
c7114eea 1588 union sysmsg sysmsg;
984263bc
MD
1589 int mask; char mask_[PAD_(int)];
1590};
1591struct osigsetmask_args {
c7114eea 1592 union sysmsg sysmsg;
984263bc
MD
1593 int mask; char mask_[PAD_(int)];
1594};
1595struct osigsuspend_args {
c7114eea 1596 union sysmsg sysmsg;
984263bc
MD
1597 osigset_t mask; char mask_[PAD_(osigset_t)];
1598};
1599struct osigstack_args {
c7114eea 1600 union sysmsg sysmsg;
984263bc
MD
1601 struct sigstack * nss; char nss_[PAD_(struct sigstack *)];
1602 struct sigstack * oss; char oss_[PAD_(struct sigstack *)];
1603};
1604struct orecvmsg_args {
c7114eea 1605 union sysmsg sysmsg;
984263bc
MD
1606 int s; char s_[PAD_(int)];
1607 struct omsghdr * msg; char msg_[PAD_(struct omsghdr *)];
1608 int flags; char flags_[PAD_(int)];
1609};
1610struct osendmsg_args {
c7114eea 1611 union sysmsg sysmsg;
984263bc
MD
1612 int s; char s_[PAD_(int)];
1613 caddr_t msg; char msg_[PAD_(caddr_t)];
1614 int flags; char flags_[PAD_(int)];
1615};
1616struct otruncate_args {
c7114eea 1617 union sysmsg sysmsg;
984263bc
MD
1618 char * path; char path_[PAD_(char *)];
1619 long length; char length_[PAD_(long)];
1620};
1621struct oftruncate_args {
c7114eea 1622 union sysmsg sysmsg;
984263bc
MD
1623 int fd; char fd_[PAD_(int)];
1624 long length; char length_[PAD_(long)];
1625};
1626struct ogetpeername_args {
c7114eea 1627 union sysmsg sysmsg;
984263bc
MD
1628 int fdes; char fdes_[PAD_(int)];
1629 caddr_t asa; char asa_[PAD_(caddr_t)];
1630 int * alen; char alen_[PAD_(int *)];
1631};
1632struct osethostid_args {
c7114eea 1633 union sysmsg sysmsg;
984263bc
MD
1634 long hostid; char hostid_[PAD_(long)];
1635};
1636struct ogetrlimit_args {
c7114eea 1637 union sysmsg sysmsg;
984263bc
MD
1638 u_int which; char which_[PAD_(u_int)];
1639 struct orlimit * rlp; char rlp_[PAD_(struct orlimit *)];
1640};
1641struct osetrlimit_args {
c7114eea 1642 union sysmsg sysmsg;
984263bc
MD
1643 u_int which; char which_[PAD_(u_int)];
1644 struct orlimit * rlp; char rlp_[PAD_(struct orlimit *)];
1645};
1646struct okillpg_args {
c7114eea 1647 union sysmsg sysmsg;
984263bc
MD
1648 int pgid; char pgid_[PAD_(int)];
1649 int signum; char signum_[PAD_(int)];
1650};
1651struct ogetdirentries_args {
c7114eea 1652 union sysmsg sysmsg;
984263bc
MD
1653 int fd; char fd_[PAD_(int)];
1654 char * buf; char buf_[PAD_(char *)];
1655 u_int count; char count_[PAD_(u_int)];
1656 long * basep; char basep_[PAD_(long *)];
1657};
1658struct osendfile_args {
c7114eea 1659 union sysmsg sysmsg;
984263bc
MD
1660 int fd; char fd_[PAD_(int)];
1661 int s; char s_[PAD_(int)];
1662 off_t offset; char offset_[PAD_(off_t)];
1663 size_t nbytes; char nbytes_[PAD_(size_t)];
1664 struct sf_hdtr * hdtr; char hdtr_[PAD_(struct sf_hdtr *)];
1665 off_t * sbytes; char sbytes_[PAD_(off_t *)];
1666 int flags; char flags_[PAD_(int)];
1667};
4fd10eb6
MD
1668
1669#ifdef _KERNEL
1670
41c20dac
MD
1671int ocreat __P((struct ocreat_args *));
1672int olseek __P((struct olseek_args *));
1673int ostat __P((struct ostat_args *));
1674int olstat __P((struct olstat_args *));
1675int osigaction __P((struct osigaction_args *));
1676int osigprocmask __P((struct osigprocmask_args *));
1677int osigpending __P((struct osigpending_args *));
1678int ofstat __P((struct ofstat_args *));
1679int ogetkerninfo __P((struct getkerninfo_args *));
1680int ogetpagesize __P((struct getpagesize_args *));
1681int ommap __P((struct ommap_args *));
1682int owait __P((struct owait_args *));
1683int ogethostname __P((struct gethostname_args *));
1684int osethostname __P((struct sethostname_args *));
1685int oaccept __P((struct accept_args *));
1686int osend __P((struct osend_args *));
1687int orecv __P((struct orecv_args *));
1688int osigreturn __P((struct osigreturn_args *));
1689int osigvec __P((struct osigvec_args *));
1690int osigblock __P((struct osigblock_args *));
1691int osigsetmask __P((struct osigsetmask_args *));
1692int osigsuspend __P((struct osigsuspend_args *));
1693int osigstack __P((struct osigstack_args *));
1694int orecvmsg __P((struct orecvmsg_args *));
1695int osendmsg __P((struct osendmsg_args *));
1696int orecvfrom __P((struct recvfrom_args *));
1697int otruncate __P((struct otruncate_args *));
1698int oftruncate __P((struct oftruncate_args *));
1699int ogetpeername __P((struct ogetpeername_args *));
1700int ogethostid __P((struct ogethostid_args *));
1701int osethostid __P((struct osethostid_args *));
1702int ogetrlimit __P((struct ogetrlimit_args *));
1703int osetrlimit __P((struct osetrlimit_args *));
1704int okillpg __P((struct okillpg_args *));
1705int oquota __P((struct oquota_args *));
1706int ogetsockname __P((struct getsockname_args *));
1707int ogetdirentries __P((struct ogetdirentries_args *));
1708int osendfile __P((struct osendfile_args *));
984263bc 1709
4fd10eb6
MD
1710#endif /* _KERNEL */
1711
984263bc
MD
1712#endif /* COMPAT_43 */
1713
1714#undef PAD_
1715
1716#endif /* !_SYS_SYSPROTO_H_ */