FreeBSD/Linux Kernel Cross Reference
sys/sys/syscallargs.h
1 /* $NetBSD: syscallargs.h,v 1.199 2008/10/16 20:12:23 wrstuden Exp $ */
2
3 /*
4 * System call argument lists.
5 *
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.211 2008/10/16 19:30:49 pooka Exp
8 */
9
10 #ifndef _SYS_SYSCALLARGS_H_
11 #define _SYS_SYSCALLARGS_H_
12
13 #define SYS_MAXSYSARGS 8
14
15 #undef syscallarg
16 #define syscallarg(x) \
17 union { \
18 register_t pad; \
19 struct { x datum; } le; \
20 struct { /* LINTED zero array dimension */ \
21 int8_t pad[ /* CONSTCOND */ \
22 (sizeof (register_t) < sizeof (x)) \
23 ? 0 \
24 : sizeof (register_t) - sizeof (x)]; \
25 x datum; \
26 } be; \
27 }
28
29 #undef check_syscall_args
30 #define check_syscall_args(call) \
31 typedef char call##_check_args[sizeof (struct call##_args) \
32 <= SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1];
33
34 struct sys_syscall_args {
35 syscallarg(int) code;
36 syscallarg(register_t) args[SYS_MAXSYSARGS];
37 };
38
39 struct sys_exit_args {
40 syscallarg(int) rval;
41 };
42 check_syscall_args(sys_exit)
43
44 struct sys_read_args {
45 syscallarg(int) fd;
46 syscallarg(void *) buf;
47 syscallarg(size_t) nbyte;
48 };
49 check_syscall_args(sys_read)
50
51 struct sys_write_args {
52 syscallarg(int) fd;
53 syscallarg(const void *) buf;
54 syscallarg(size_t) nbyte;
55 };
56 check_syscall_args(sys_write)
57
58 struct sys_open_args {
59 syscallarg(const char *) path;
60 syscallarg(int) flags;
61 syscallarg(mode_t) mode;
62 };
63 check_syscall_args(sys_open)
64
65 struct sys_close_args {
66 syscallarg(int) fd;
67 };
68 check_syscall_args(sys_close)
69
70 struct sys_wait4_args {
71 syscallarg(int) pid;
72 syscallarg(int *) status;
73 syscallarg(int) options;
74 syscallarg(struct rusage *) rusage;
75 };
76 check_syscall_args(sys_wait4)
77
78 struct compat_43_sys_creat_args {
79 syscallarg(const char *) path;
80 syscallarg(mode_t) mode;
81 };
82 check_syscall_args(compat_43_sys_creat)
83
84 struct sys_link_args {
85 syscallarg(const char *) path;
86 syscallarg(const char *) link;
87 };
88 check_syscall_args(sys_link)
89
90 struct sys_unlink_args {
91 syscallarg(const char *) path;
92 };
93 check_syscall_args(sys_unlink)
94
95 struct sys_chdir_args {
96 syscallarg(const char *) path;
97 };
98 check_syscall_args(sys_chdir)
99
100 struct sys_fchdir_args {
101 syscallarg(int) fd;
102 };
103 check_syscall_args(sys_fchdir)
104
105 struct sys_mknod_args {
106 syscallarg(const char *) path;
107 syscallarg(mode_t) mode;
108 syscallarg(dev_t) dev;
109 };
110 check_syscall_args(sys_mknod)
111
112 struct sys_chmod_args {
113 syscallarg(const char *) path;
114 syscallarg(mode_t) mode;
115 };
116 check_syscall_args(sys_chmod)
117
118 struct sys_chown_args {
119 syscallarg(const char *) path;
120 syscallarg(uid_t) uid;
121 syscallarg(gid_t) gid;
122 };
123 check_syscall_args(sys_chown)
124
125 struct sys_obreak_args {
126 syscallarg(char *) nsize;
127 };
128 check_syscall_args(sys_obreak)
129
130 struct compat_20_sys_getfsstat_args {
131 syscallarg(struct statfs12 *) buf;
132 syscallarg(long) bufsize;
133 syscallarg(int) flags;
134 };
135 check_syscall_args(compat_20_sys_getfsstat)
136
137 struct compat_43_sys_lseek_args {
138 syscallarg(int) fd;
139 syscallarg(long) offset;
140 syscallarg(int) whence;
141 };
142 check_syscall_args(compat_43_sys_lseek)
143 #ifdef COMPAT_43
144 #else
145 #endif
146
147 struct compat_40_sys_mount_args {
148 syscallarg(const char *) type;
149 syscallarg(const char *) path;
150 syscallarg(int) flags;
151 syscallarg(void *) data;
152 };
153 check_syscall_args(compat_40_sys_mount)
154
155 struct sys_unmount_args {
156 syscallarg(const char *) path;
157 syscallarg(int) flags;
158 };
159 check_syscall_args(sys_unmount)
160
161 struct sys_setuid_args {
162 syscallarg(uid_t) uid;
163 };
164 check_syscall_args(sys_setuid)
165 #ifdef COMPAT_43
166 #else
167 #endif
168
169 struct sys_ptrace_args {
170 syscallarg(int) req;
171 syscallarg(pid_t) pid;
172 syscallarg(void *) addr;
173 syscallarg(int) data;
174 };
175 check_syscall_args(sys_ptrace)
176
177 struct sys_recvmsg_args {
178 syscallarg(int) s;
179 syscallarg(struct msghdr *) msg;
180 syscallarg(int) flags;
181 };
182 check_syscall_args(sys_recvmsg)
183
184 struct sys_sendmsg_args {
185 syscallarg(int) s;
186 syscallarg(const struct msghdr *) msg;
187 syscallarg(int) flags;
188 };
189 check_syscall_args(sys_sendmsg)
190
191 struct sys_recvfrom_args {
192 syscallarg(int) s;
193 syscallarg(void *) buf;
194 syscallarg(size_t) len;
195 syscallarg(int) flags;
196 syscallarg(struct sockaddr *) from;
197 syscallarg(unsigned int *) fromlenaddr;
198 };
199 check_syscall_args(sys_recvfrom)
200
201 struct sys_accept_args {
202 syscallarg(int) s;
203 syscallarg(struct sockaddr *) name;
204 syscallarg(unsigned int *) anamelen;
205 };
206 check_syscall_args(sys_accept)
207
208 struct sys_getpeername_args {
209 syscallarg(int) fdes;
210 syscallarg(struct sockaddr *) asa;
211 syscallarg(unsigned int *) alen;
212 };
213 check_syscall_args(sys_getpeername)
214
215 struct sys_getsockname_args {
216 syscallarg(int) fdes;
217 syscallarg(struct sockaddr *) asa;
218 syscallarg(unsigned int *) alen;
219 };
220 check_syscall_args(sys_getsockname)
221
222 struct sys_access_args {
223 syscallarg(const char *) path;
224 syscallarg(int) flags;
225 };
226 check_syscall_args(sys_access)
227
228 struct sys_chflags_args {
229 syscallarg(const char *) path;
230 syscallarg(u_long) flags;
231 };
232 check_syscall_args(sys_chflags)
233
234 struct sys_fchflags_args {
235 syscallarg(int) fd;
236 syscallarg(u_long) flags;
237 };
238 check_syscall_args(sys_fchflags)
239
240 struct sys_kill_args {
241 syscallarg(int) pid;
242 syscallarg(int) signum;
243 };
244 check_syscall_args(sys_kill)
245
246 struct compat_43_sys_stat_args {
247 syscallarg(const char *) path;
248 syscallarg(struct stat43 *) ub;
249 };
250 check_syscall_args(compat_43_sys_stat)
251
252 struct compat_43_sys_lstat_args {
253 syscallarg(const char *) path;
254 syscallarg(struct stat43 *) ub;
255 };
256 check_syscall_args(compat_43_sys_lstat)
257
258 struct sys_dup_args {
259 syscallarg(int) fd;
260 };
261 check_syscall_args(sys_dup)
262
263 struct sys_profil_args {
264 syscallarg(char *) samples;
265 syscallarg(size_t) size;
266 syscallarg(u_long) offset;
267 syscallarg(u_int) scale;
268 };
269 check_syscall_args(sys_profil)
270
271 struct sys_ktrace_args {
272 syscallarg(const char *) fname;
273 syscallarg(int) ops;
274 syscallarg(int) facs;
275 syscallarg(int) pid;
276 };
277 check_syscall_args(sys_ktrace)
278
279 struct compat_13_sys_sigaction_args {
280 syscallarg(int) signum;
281 syscallarg(const struct sigaction13 *) nsa;
282 syscallarg(struct sigaction13 *) osa;
283 };
284 check_syscall_args(compat_13_sys_sigaction)
285 #ifdef COMPAT_43
286 #else
287 #endif
288
289 struct compat_13_sys_sigprocmask_args {
290 syscallarg(int) how;
291 syscallarg(int) mask;
292 };
293 check_syscall_args(compat_13_sys_sigprocmask)
294
295 struct sys___getlogin_args {
296 syscallarg(char *) namebuf;
297 syscallarg(size_t) namelen;
298 };
299 check_syscall_args(sys___getlogin)
300
301 struct sys___setlogin_args {
302 syscallarg(const char *) namebuf;
303 };
304 check_syscall_args(sys___setlogin)
305
306 struct sys_acct_args {
307 syscallarg(const char *) path;
308 };
309 check_syscall_args(sys_acct)
310
311 struct compat_13_sys_sigaltstack_args {
312 syscallarg(const struct sigaltstack13 *) nss;
313 syscallarg(struct sigaltstack13 *) oss;
314 };
315 check_syscall_args(compat_13_sys_sigaltstack)
316
317 struct sys_ioctl_args {
318 syscallarg(int) fd;
319 syscallarg(u_long) com;
320 syscallarg(void *) data;
321 };
322 check_syscall_args(sys_ioctl)
323
324 struct compat_12_sys_reboot_args {
325 syscallarg(int) opt;
326 };
327 check_syscall_args(compat_12_sys_reboot)
328
329 struct sys_revoke_args {
330 syscallarg(const char *) path;
331 };
332 check_syscall_args(sys_revoke)
333
334 struct sys_symlink_args {
335 syscallarg(const char *) path;
336 syscallarg(const char *) link;
337 };
338 check_syscall_args(sys_symlink)
339
340 struct sys_readlink_args {
341 syscallarg(const char *) path;
342 syscallarg(char *) buf;
343 syscallarg(size_t) count;
344 };
345 check_syscall_args(sys_readlink)
346
347 struct sys_execve_args {
348 syscallarg(const char *) path;
349 syscallarg(char *const *) argp;
350 syscallarg(char *const *) envp;
351 };
352 check_syscall_args(sys_execve)
353
354 struct sys_umask_args {
355 syscallarg(mode_t) newmask;
356 };
357 check_syscall_args(sys_umask)
358
359 struct sys_chroot_args {
360 syscallarg(const char *) path;
361 };
362 check_syscall_args(sys_chroot)
363
364 struct compat_43_sys_fstat_args {
365 syscallarg(int) fd;
366 syscallarg(struct stat43 *) sb;
367 };
368 check_syscall_args(compat_43_sys_fstat)
369
370 struct compat_43_sys_getkerninfo_args {
371 syscallarg(int) op;
372 syscallarg(char *) where;
373 syscallarg(int *) size;
374 syscallarg(int) arg;
375 };
376 check_syscall_args(compat_43_sys_getkerninfo)
377
378 struct compat_12_sys_msync_args {
379 syscallarg(void *) addr;
380 syscallarg(size_t) len;
381 };
382 check_syscall_args(compat_12_sys_msync)
383
384 struct sys_sbrk_args {
385 syscallarg(intptr_t) incr;
386 };
387 check_syscall_args(sys_sbrk)
388
389 struct sys_sstk_args {
390 syscallarg(int) incr;
391 };
392 check_syscall_args(sys_sstk)
393
394 struct compat_43_sys_mmap_args {
395 syscallarg(void *) addr;
396 syscallarg(size_t) len;
397 syscallarg(int) prot;
398 syscallarg(int) flags;
399 syscallarg(int) fd;
400 syscallarg(long) pos;
401 };
402 check_syscall_args(compat_43_sys_mmap)
403
404 struct sys_ovadvise_args {
405 syscallarg(int) anom;
406 };
407 check_syscall_args(sys_ovadvise)
408
409 struct sys_munmap_args {
410 syscallarg(void *) addr;
411 syscallarg(size_t) len;
412 };
413 check_syscall_args(sys_munmap)
414
415 struct sys_mprotect_args {
416 syscallarg(void *) addr;
417 syscallarg(size_t) len;
418 syscallarg(int) prot;
419 };
420 check_syscall_args(sys_mprotect)
421
422 struct sys_madvise_args {
423 syscallarg(void *) addr;
424 syscallarg(size_t) len;
425 syscallarg(int) behav;
426 };
427 check_syscall_args(sys_madvise)
428
429 struct sys_mincore_args {
430 syscallarg(void *) addr;
431 syscallarg(size_t) len;
432 syscallarg(char *) vec;
433 };
434 check_syscall_args(sys_mincore)
435
436 struct sys_getgroups_args {
437 syscallarg(int) gidsetsize;
438 syscallarg(gid_t *) gidset;
439 };
440 check_syscall_args(sys_getgroups)
441
442 struct sys_setgroups_args {
443 syscallarg(int) gidsetsize;
444 syscallarg(const gid_t *) gidset;
445 };
446 check_syscall_args(sys_setgroups)
447
448 struct sys_setpgid_args {
449 syscallarg(int) pid;
450 syscallarg(int) pgid;
451 };
452 check_syscall_args(sys_setpgid)
453
454 struct sys_setitimer_args {
455 syscallarg(int) which;
456 syscallarg(const struct itimerval *) itv;
457 syscallarg(struct itimerval *) oitv;
458 };
459 check_syscall_args(sys_setitimer)
460
461 struct compat_12_sys_swapon_args {
462 syscallarg(const char *) name;
463 };
464 check_syscall_args(compat_12_sys_swapon)
465
466 struct sys_getitimer_args {
467 syscallarg(int) which;
468 syscallarg(struct itimerval *) itv;
469 };
470 check_syscall_args(sys_getitimer)
471
472 struct compat_43_sys_gethostname_args {
473 syscallarg(char *) hostname;
474 syscallarg(u_int) len;
475 };
476 check_syscall_args(compat_43_sys_gethostname)
477
478 struct compat_43_sys_sethostname_args {
479 syscallarg(char *) hostname;
480 syscallarg(u_int) len;
481 };
482 check_syscall_args(compat_43_sys_sethostname)
483
484 struct sys_dup2_args {
485 syscallarg(int) from;
486 syscallarg(int) to;
487 };
488 check_syscall_args(sys_dup2)
489
490 struct sys_fcntl_args {
491 syscallarg(int) fd;
492 syscallarg(int) cmd;
493 syscallarg(void *) arg;
494 };
495 check_syscall_args(sys_fcntl)
496
497 struct sys_select_args {
498 syscallarg(int) nd;
499 syscallarg(fd_set *) in;
500 syscallarg(fd_set *) ou;
501 syscallarg(fd_set *) ex;
502 syscallarg(struct timeval *) tv;
503 };
504 check_syscall_args(sys_select)
505
506 struct sys_fsync_args {
507 syscallarg(int) fd;
508 };
509 check_syscall_args(sys_fsync)
510
511 struct sys_setpriority_args {
512 syscallarg(int) which;
513 syscallarg(id_t) who;
514 syscallarg(int) prio;
515 };
516 check_syscall_args(sys_setpriority)
517
518 struct compat_30_sys_socket_args {
519 syscallarg(int) domain;
520 syscallarg(int) type;
521 syscallarg(int) protocol;
522 };
523 check_syscall_args(compat_30_sys_socket)
524
525 struct sys_connect_args {
526 syscallarg(int) s;
527 syscallarg(const struct sockaddr *) name;
528 syscallarg(unsigned int) namelen;
529 };
530 check_syscall_args(sys_connect)
531
532 struct compat_43_sys_accept_args {
533 syscallarg(int) s;
534 syscallarg(void *) name;
535 syscallarg(int *) anamelen;
536 };
537 check_syscall_args(compat_43_sys_accept)
538
539 struct sys_getpriority_args {
540 syscallarg(int) which;
541 syscallarg(id_t) who;
542 };
543 check_syscall_args(sys_getpriority)
544
545 struct compat_43_sys_send_args {
546 syscallarg(int) s;
547 syscallarg(void *) buf;
548 syscallarg(int) len;
549 syscallarg(int) flags;
550 };
551 check_syscall_args(compat_43_sys_send)
552
553 struct compat_43_sys_recv_args {
554 syscallarg(int) s;
555 syscallarg(void *) buf;
556 syscallarg(int) len;
557 syscallarg(int) flags;
558 };
559 check_syscall_args(compat_43_sys_recv)
560
561 struct compat_13_sys_sigreturn_args {
562 syscallarg(struct sigcontext13 *) sigcntxp;
563 };
564 check_syscall_args(compat_13_sys_sigreturn)
565
566 struct sys_bind_args {
567 syscallarg(int) s;
568 syscallarg(const struct sockaddr *) name;
569 syscallarg(unsigned int) namelen;
570 };
571 check_syscall_args(sys_bind)
572
573 struct sys_setsockopt_args {
574 syscallarg(int) s;
575 syscallarg(int) level;
576 syscallarg(int) name;
577 syscallarg(const void *) val;
578 syscallarg(unsigned int) valsize;
579 };
580 check_syscall_args(sys_setsockopt)
581
582 struct sys_listen_args {
583 syscallarg(int) s;
584 syscallarg(int) backlog;
585 };
586 check_syscall_args(sys_listen)
587
588 struct compat_43_sys_sigvec_args {
589 syscallarg(int) signum;
590 syscallarg(struct sigvec *) nsv;
591 syscallarg(struct sigvec *) osv;
592 };
593 check_syscall_args(compat_43_sys_sigvec)
594
595 struct compat_43_sys_sigblock_args {
596 syscallarg(int) mask;
597 };
598 check_syscall_args(compat_43_sys_sigblock)
599
600 struct compat_43_sys_sigsetmask_args {
601 syscallarg(int) mask;
602 };
603 check_syscall_args(compat_43_sys_sigsetmask)
604
605 struct compat_13_sys_sigsuspend_args {
606 syscallarg(int) mask;
607 };
608 check_syscall_args(compat_13_sys_sigsuspend)
609
610 struct compat_43_sys_sigstack_args {
611 syscallarg(struct sigstack *) nss;
612 syscallarg(struct sigstack *) oss;
613 };
614 check_syscall_args(compat_43_sys_sigstack)
615
616 struct compat_43_sys_recvmsg_args {
617 syscallarg(int) s;
618 syscallarg(struct omsghdr *) msg;
619 syscallarg(int) flags;
620 };
621 check_syscall_args(compat_43_sys_recvmsg)
622
623 struct compat_43_sys_sendmsg_args {
624 syscallarg(int) s;
625 syscallarg(void *) msg;
626 syscallarg(int) flags;
627 };
628 check_syscall_args(compat_43_sys_sendmsg)
629
630 struct sys_gettimeofday_args {
631 syscallarg(struct timeval *) tp;
632 syscallarg(void *) tzp;
633 };
634 check_syscall_args(sys_gettimeofday)
635
636 struct sys_getrusage_args {
637 syscallarg(int) who;
638 syscallarg(struct rusage *) rusage;
639 };
640 check_syscall_args(sys_getrusage)
641
642 struct sys_getsockopt_args {
643 syscallarg(int) s;
644 syscallarg(int) level;
645 syscallarg(int) name;
646 syscallarg(void *) val;
647 syscallarg(unsigned int *) avalsize;
648 };
649 check_syscall_args(sys_getsockopt)
650
651 struct sys_readv_args {
652 syscallarg(int) fd;
653 syscallarg(const struct iovec *) iovp;
654 syscallarg(int) iovcnt;
655 };
656 check_syscall_args(sys_readv)
657
658 struct sys_writev_args {
659 syscallarg(int) fd;
660 syscallarg(const struct iovec *) iovp;
661 syscallarg(int) iovcnt;
662 };
663 check_syscall_args(sys_writev)
664
665 struct sys_settimeofday_args {
666 syscallarg(const struct timeval *) tv;
667 syscallarg(const void *) tzp;
668 };
669 check_syscall_args(sys_settimeofday)
670
671 struct sys_fchown_args {
672 syscallarg(int) fd;
673 syscallarg(uid_t) uid;
674 syscallarg(gid_t) gid;
675 };
676 check_syscall_args(sys_fchown)
677
678 struct sys_fchmod_args {
679 syscallarg(int) fd;
680 syscallarg(mode_t) mode;
681 };
682 check_syscall_args(sys_fchmod)
683
684 struct compat_43_sys_recvfrom_args {
685 syscallarg(int) s;
686 syscallarg(void *) buf;
687 syscallarg(size_t) len;
688 syscallarg(int) flags;
689 syscallarg(void *) from;
690 syscallarg(int *) fromlenaddr;
691 };
692 check_syscall_args(compat_43_sys_recvfrom)
693
694 struct sys_setreuid_args {
695 syscallarg(uid_t) ruid;
696 syscallarg(uid_t) euid;
697 };
698 check_syscall_args(sys_setreuid)
699
700 struct sys_setregid_args {
701 syscallarg(gid_t) rgid;
702 syscallarg(gid_t) egid;
703 };
704 check_syscall_args(sys_setregid)
705
706 struct sys_rename_args {
707 syscallarg(const char *) from;
708 syscallarg(const char *) to;
709 };
710 check_syscall_args(sys_rename)
711
712 struct compat_43_sys_truncate_args {
713 syscallarg(const char *) path;
714 syscallarg(long) length;
715 };
716 check_syscall_args(compat_43_sys_truncate)
717
718 struct compat_43_sys_ftruncate_args {
719 syscallarg(int) fd;
720 syscallarg(long) length;
721 };
722 check_syscall_args(compat_43_sys_ftruncate)
723
724 struct sys_flock_args {
725 syscallarg(int) fd;
726 syscallarg(int) how;
727 };
728 check_syscall_args(sys_flock)
729
730 struct sys_mkfifo_args {
731 syscallarg(const char *) path;
732 syscallarg(mode_t) mode;
733 };
734 check_syscall_args(sys_mkfifo)
735
736 struct sys_sendto_args {
737 syscallarg(int) s;
738 syscallarg(const void *) buf;
739 syscallarg(size_t) len;
740 syscallarg(int) flags;
741 syscallarg(const struct sockaddr *) to;
742 syscallarg(unsigned int) tolen;
743 };
744 check_syscall_args(sys_sendto)
745
746 struct sys_shutdown_args {
747 syscallarg(int) s;
748 syscallarg(int) how;
749 };
750 check_syscall_args(sys_shutdown)
751
752 struct sys_socketpair_args {
753 syscallarg(int) domain;
754 syscallarg(int) type;
755 syscallarg(int) protocol;
756 syscallarg(int *) rsv;
757 };
758 check_syscall_args(sys_socketpair)
759
760 struct sys_mkdir_args {
761 syscallarg(const char *) path;
762 syscallarg(mode_t) mode;
763 };
764 check_syscall_args(sys_mkdir)
765
766 struct sys_rmdir_args {
767 syscallarg(const char *) path;
768 };
769 check_syscall_args(sys_rmdir)
770
771 struct sys_utimes_args {
772 syscallarg(const char *) path;
773 syscallarg(const struct timeval *) tptr;
774 };
775 check_syscall_args(sys_utimes)
776
777 struct sys_adjtime_args {
778 syscallarg(const struct timeval *) delta;
779 syscallarg(struct timeval *) olddelta;
780 };
781 check_syscall_args(sys_adjtime)
782
783 struct compat_43_sys_getpeername_args {
784 syscallarg(int) fdes;
785 syscallarg(void *) asa;
786 syscallarg(int *) alen;
787 };
788 check_syscall_args(compat_43_sys_getpeername)
789
790 struct compat_43_sys_sethostid_args {
791 syscallarg(int32_t) hostid;
792 };
793 check_syscall_args(compat_43_sys_sethostid)
794
795 struct compat_43_sys_getrlimit_args {
796 syscallarg(int) which;
797 syscallarg(struct orlimit *) rlp;
798 };
799 check_syscall_args(compat_43_sys_getrlimit)
800
801 struct compat_43_sys_setrlimit_args {
802 syscallarg(int) which;
803 syscallarg(const struct orlimit *) rlp;
804 };
805 check_syscall_args(compat_43_sys_setrlimit)
806
807 struct compat_43_sys_killpg_args {
808 syscallarg(int) pgid;
809 syscallarg(int) signum;
810 };
811 check_syscall_args(compat_43_sys_killpg)
812
813 struct sys_quotactl_args {
814 syscallarg(const char *) path;
815 syscallarg(int) cmd;
816 syscallarg(int) uid;
817 syscallarg(void *) arg;
818 };
819 check_syscall_args(sys_quotactl)
820
821 struct compat_43_sys_getsockname_args {
822 syscallarg(int) fdec;
823 syscallarg(void *) asa;
824 syscallarg(int *) alen;
825 };
826 check_syscall_args(compat_43_sys_getsockname)
827 #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
828
829 struct sys_nfssvc_args {
830 syscallarg(int) flag;
831 syscallarg(void *) argp;
832 };
833 check_syscall_args(sys_nfssvc)
834 #else
835 #endif
836
837 struct compat_43_sys_getdirentries_args {
838 syscallarg(int) fd;
839 syscallarg(char *) buf;
840 syscallarg(u_int) count;
841 syscallarg(long *) basep;
842 };
843 check_syscall_args(compat_43_sys_getdirentries)
844
845 struct compat_20_sys_statfs_args {
846 syscallarg(const char *) path;
847 syscallarg(struct statfs12 *) buf;
848 };
849 check_syscall_args(compat_20_sys_statfs)
850
851 struct compat_20_sys_fstatfs_args {
852 syscallarg(int) fd;
853 syscallarg(struct statfs12 *) buf;
854 };
855 check_syscall_args(compat_20_sys_fstatfs)
856
857 struct compat_30_sys_getfh_args {
858 syscallarg(const char *) fname;
859 syscallarg(struct compat_30_fhandle *) fhp;
860 };
861 check_syscall_args(compat_30_sys_getfh)
862
863 struct compat_09_sys_getdomainname_args {
864 syscallarg(char *) domainname;
865 syscallarg(int) len;
866 };
867 check_syscall_args(compat_09_sys_getdomainname)
868
869 struct compat_09_sys_setdomainname_args {
870 syscallarg(char *) domainname;
871 syscallarg(int) len;
872 };
873 check_syscall_args(compat_09_sys_setdomainname)
874
875 struct compat_09_sys_uname_args {
876 syscallarg(struct outsname *) name;
877 };
878 check_syscall_args(compat_09_sys_uname)
879
880 struct sys_sysarch_args {
881 syscallarg(int) op;
882 syscallarg(void *) parms;
883 };
884 check_syscall_args(sys_sysarch)
885 #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
886
887 struct compat_10_sys_semsys_args {
888 syscallarg(int) which;
889 syscallarg(int) a2;
890 syscallarg(int) a3;
891 syscallarg(int) a4;
892 syscallarg(int) a5;
893 };
894 check_syscall_args(compat_10_sys_semsys)
895 #else
896 #endif
897 #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
898
899 struct compat_10_sys_msgsys_args {
900 syscallarg(int) which;
901 syscallarg(int) a2;
902 syscallarg(int) a3;
903 syscallarg(int) a4;
904 syscallarg(int) a5;
905 syscallarg(int) a6;
906 };
907 check_syscall_args(compat_10_sys_msgsys)
908 #else
909 #endif
910 #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
911
912 struct compat_10_sys_shmsys_args {
913 syscallarg(int) which;
914 syscallarg(int) a2;
915 syscallarg(int) a3;
916 syscallarg(int) a4;
917 };
918 check_syscall_args(compat_10_sys_shmsys)
919 #else
920 #endif
921
922 struct sys_pread_args {
923 syscallarg(int) fd;
924 syscallarg(void *) buf;
925 syscallarg(size_t) nbyte;
926 syscallarg(int) pad;
927 syscallarg(off_t) offset;
928 };
929 check_syscall_args(sys_pread)
930
931 struct sys_pwrite_args {
932 syscallarg(int) fd;
933 syscallarg(const void *) buf;
934 syscallarg(size_t) nbyte;
935 syscallarg(int) pad;
936 syscallarg(off_t) offset;
937 };
938 check_syscall_args(sys_pwrite)
939
940 struct compat_30_sys_ntp_gettime_args {
941 syscallarg(struct ntptimeval30 *) ntvp;
942 };
943 check_syscall_args(compat_30_sys_ntp_gettime)
944 #if defined(NTP) || !defined(_KERNEL)
945
946 struct sys_ntp_adjtime_args {
947 syscallarg(struct timex *) tp;
948 };
949 check_syscall_args(sys_ntp_adjtime)
950 #else
951 #endif
952
953 struct sys_setgid_args {
954 syscallarg(gid_t) gid;
955 };
956 check_syscall_args(sys_setgid)
957
958 struct sys_setegid_args {
959 syscallarg(gid_t) egid;
960 };
961 check_syscall_args(sys_setegid)
962
963 struct sys_seteuid_args {
964 syscallarg(uid_t) euid;
965 };
966 check_syscall_args(sys_seteuid)
967 #if defined(LFS) || !defined(_KERNEL)
968
969 struct sys_lfs_bmapv_args {
970 syscallarg(fsid_t *) fsidp;
971 syscallarg(struct block_info *) blkiov;
972 syscallarg(int) blkcnt;
973 };
974 check_syscall_args(sys_lfs_bmapv)
975
976 struct sys_lfs_markv_args {
977 syscallarg(fsid_t *) fsidp;
978 syscallarg(struct block_info *) blkiov;
979 syscallarg(int) blkcnt;
980 };
981 check_syscall_args(sys_lfs_markv)
982
983 struct sys_lfs_segclean_args {
984 syscallarg(fsid_t *) fsidp;
985 syscallarg(u_long) segment;
986 };
987 check_syscall_args(sys_lfs_segclean)
988
989 struct sys_lfs_segwait_args {
990 syscallarg(fsid_t *) fsidp;
991 syscallarg(struct timeval *) tv;
992 };
993 check_syscall_args(sys_lfs_segwait)
994 #else
995 #endif
996
997 struct compat_12_sys_stat_args {
998 syscallarg(const char *) path;
999 syscallarg(struct stat12 *) ub;
1000 };
1001 check_syscall_args(compat_12_sys_stat)
1002
1003 struct compat_12_sys_fstat_args {
1004 syscallarg(int) fd;
1005 syscallarg(struct stat12 *) sb;
1006 };
1007 check_syscall_args(compat_12_sys_fstat)
1008
1009 struct compat_12_sys_lstat_args {
1010 syscallarg(const char *) path;
1011 syscallarg(struct stat12 *) ub;
1012 };
1013 check_syscall_args(compat_12_sys_lstat)
1014
1015 struct sys_pathconf_args {
1016 syscallarg(const char *) path;
1017 syscallarg(int) name;
1018 };
1019 check_syscall_args(sys_pathconf)
1020
1021 struct sys_fpathconf_args {
1022 syscallarg(int) fd;
1023 syscallarg(int) name;
1024 };
1025 check_syscall_args(sys_fpathconf)
1026
1027 struct sys_getrlimit_args {
1028 syscallarg(int) which;
1029 syscallarg(struct rlimit *) rlp;
1030 };
1031 check_syscall_args(sys_getrlimit)
1032
1033 struct sys_setrlimit_args {
1034 syscallarg(int) which;
1035 syscallarg(const struct rlimit *) rlp;
1036 };
1037 check_syscall_args(sys_setrlimit)
1038
1039 struct compat_12_sys_getdirentries_args {
1040 syscallarg(int) fd;
1041 syscallarg(char *) buf;
1042 syscallarg(u_int) count;
1043 syscallarg(long *) basep;
1044 };
1045 check_syscall_args(compat_12_sys_getdirentries)
1046
1047 struct sys_mmap_args {
1048 syscallarg(void *) addr;
1049 syscallarg(size_t) len;
1050 syscallarg(int) prot;
1051 syscallarg(int) flags;
1052 syscallarg(int) fd;
1053 syscallarg(long) pad;
1054 syscallarg(off_t) pos;
1055 };
1056 check_syscall_args(sys_mmap)
1057
1058 struct sys___syscall_args {
1059 syscallarg(quad_t) code;
1060 syscallarg(register_t) args[SYS_MAXSYSARGS];
1061 };
1062
1063 struct sys_lseek_args {
1064 syscallarg(int) fd;
1065 syscallarg(int) pad;
1066 syscallarg(off_t) offset;
1067 syscallarg(int) whence;
1068 };
1069 check_syscall_args(sys_lseek)
1070
1071 struct sys_truncate_args {
1072 syscallarg(const char *) path;
1073 syscallarg(int) pad;
1074 syscallarg(off_t) length;
1075 };
1076 check_syscall_args(sys_truncate)
1077
1078 struct sys_ftruncate_args {
1079 syscallarg(int) fd;
1080 syscallarg(int) pad;
1081 syscallarg(off_t) length;
1082 };
1083 check_syscall_args(sys_ftruncate)
1084
1085 struct sys___sysctl_args {
1086 syscallarg(const int *) name;
1087 syscallarg(u_int) namelen;
1088 syscallarg(void *) old;
1089 syscallarg(size_t *) oldlenp;
1090 syscallarg(const void *) new;
1091 syscallarg(size_t) newlen;
1092 };
1093 check_syscall_args(sys___sysctl)
1094
1095 struct sys_mlock_args {
1096 syscallarg(const void *) addr;
1097 syscallarg(size_t) len;
1098 };
1099 check_syscall_args(sys_mlock)
1100
1101 struct sys_munlock_args {
1102 syscallarg(const void *) addr;
1103 syscallarg(size_t) len;
1104 };
1105 check_syscall_args(sys_munlock)
1106
1107 struct sys_undelete_args {
1108 syscallarg(const char *) path;
1109 };
1110 check_syscall_args(sys_undelete)
1111
1112 struct sys_futimes_args {
1113 syscallarg(int) fd;
1114 syscallarg(const struct timeval *) tptr;
1115 };
1116 check_syscall_args(sys_futimes)
1117
1118 struct sys_getpgid_args {
1119 syscallarg(pid_t) pid;
1120 };
1121 check_syscall_args(sys_getpgid)
1122
1123 struct sys_reboot_args {
1124 syscallarg(int) opt;
1125 syscallarg(char *) bootstr;
1126 };
1127 check_syscall_args(sys_reboot)
1128
1129 struct sys_poll_args {
1130 syscallarg(struct pollfd *) fds;
1131 syscallarg(u_int) nfds;
1132 syscallarg(int) timeout;
1133 };
1134 check_syscall_args(sys_poll)
1135 #if defined(LKM) || !defined(_KERNEL)
1136 #else /* !LKM */
1137 #endif /* !LKM */
1138 #if defined(SYSVSEM) || !defined(_KERNEL)
1139
1140 struct compat_14_sys___semctl_args {
1141 syscallarg(int) semid;
1142 syscallarg(int) semnum;
1143 syscallarg(int) cmd;
1144 syscallarg(union __semun *) arg;
1145 };
1146 check_syscall_args(compat_14_sys___semctl)
1147
1148 struct sys_semget_args {
1149 syscallarg(key_t) key;
1150 syscallarg(int) nsems;
1151 syscallarg(int) semflg;
1152 };
1153 check_syscall_args(sys_semget)
1154
1155 struct sys_semop_args {
1156 syscallarg(int) semid;
1157 syscallarg(struct sembuf *) sops;
1158 syscallarg(size_t) nsops;
1159 };
1160 check_syscall_args(sys_semop)
1161
1162 struct sys_semconfig_args {
1163 syscallarg(int) flag;
1164 };
1165 check_syscall_args(sys_semconfig)
1166 #else
1167 #endif
1168 #if defined(SYSVMSG) || !defined(_KERNEL)
1169
1170 struct compat_14_sys_msgctl_args {
1171 syscallarg(int) msqid;
1172 syscallarg(int) cmd;
1173 syscallarg(struct msqid_ds14 *) buf;
1174 };
1175 check_syscall_args(compat_14_sys_msgctl)
1176
1177 struct sys_msgget_args {
1178 syscallarg(key_t) key;
1179 syscallarg(int) msgflg;
1180 };
1181 check_syscall_args(sys_msgget)
1182
1183 struct sys_msgsnd_args {
1184 syscallarg(int) msqid;
1185 syscallarg(const void *) msgp;
1186 syscallarg(size_t) msgsz;
1187 syscallarg(int) msgflg;
1188 };
1189 check_syscall_args(sys_msgsnd)
1190
1191 struct sys_msgrcv_args {
1192 syscallarg(int) msqid;
1193 syscallarg(void *) msgp;
1194 syscallarg(size_t) msgsz;
1195 syscallarg(long) msgtyp;
1196 syscallarg(int) msgflg;
1197 };
1198 check_syscall_args(sys_msgrcv)
1199 #else
1200 #endif
1201 #if defined(SYSVSHM) || !defined(_KERNEL)
1202
1203 struct sys_shmat_args {
1204 syscallarg(int) shmid;
1205 syscallarg(const void *) shmaddr;
1206 syscallarg(int) shmflg;
1207 };
1208 check_syscall_args(sys_shmat)
1209
1210 struct compat_14_sys_shmctl_args {
1211 syscallarg(int) shmid;
1212 syscallarg(int) cmd;
1213 syscallarg(struct shmid_ds14 *) buf;
1214 };
1215 check_syscall_args(compat_14_sys_shmctl)
1216
1217 struct sys_shmdt_args {
1218 syscallarg(const void *) shmaddr;
1219 };
1220 check_syscall_args(sys_shmdt)
1221
1222 struct sys_shmget_args {
1223 syscallarg(key_t) key;
1224 syscallarg(size_t) size;
1225 syscallarg(int) shmflg;
1226 };
1227 check_syscall_args(sys_shmget)
1228 #else
1229 #endif
1230
1231 struct sys_clock_gettime_args {
1232 syscallarg(clockid_t) clock_id;
1233 syscallarg(struct timespec *) tp;
1234 };
1235 check_syscall_args(sys_clock_gettime)
1236
1237 struct sys_clock_settime_args {
1238 syscallarg(clockid_t) clock_id;
1239 syscallarg(const struct timespec *) tp;
1240 };
1241 check_syscall_args(sys_clock_settime)
1242
1243 struct sys_clock_getres_args {
1244 syscallarg(clockid_t) clock_id;
1245 syscallarg(struct timespec *) tp;
1246 };
1247 check_syscall_args(sys_clock_getres)
1248
1249 struct sys_timer_create_args {
1250 syscallarg(clockid_t) clock_id;
1251 syscallarg(struct sigevent *) evp;
1252 syscallarg(timer_t *) timerid;
1253 };
1254 check_syscall_args(sys_timer_create)
1255
1256 struct sys_timer_delete_args {
1257 syscallarg(timer_t) timerid;
1258 };
1259 check_syscall_args(sys_timer_delete)
1260
1261 struct sys_timer_settime_args {
1262 syscallarg(timer_t) timerid;
1263 syscallarg(int) flags;
1264 syscallarg(const struct itimerspec *) value;
1265 syscallarg(struct itimerspec *) ovalue;
1266 };
1267 check_syscall_args(sys_timer_settime)
1268
1269 struct sys_timer_gettime_args {
1270 syscallarg(timer_t) timerid;
1271 syscallarg(struct itimerspec *) value;
1272 };
1273 check_syscall_args(sys_timer_gettime)
1274
1275 struct sys_timer_getoverrun_args {
1276 syscallarg(timer_t) timerid;
1277 };
1278 check_syscall_args(sys_timer_getoverrun)
1279
1280 struct sys_nanosleep_args {
1281 syscallarg(const struct timespec *) rqtp;
1282 syscallarg(struct timespec *) rmtp;
1283 };
1284 check_syscall_args(sys_nanosleep)
1285
1286 struct sys_fdatasync_args {
1287 syscallarg(int) fd;
1288 };
1289 check_syscall_args(sys_fdatasync)
1290
1291 struct sys_mlockall_args {
1292 syscallarg(int) flags;
1293 };
1294 check_syscall_args(sys_mlockall)
1295
1296 struct sys___sigtimedwait_args {
1297 syscallarg(const sigset_t *) set;
1298 syscallarg(siginfo_t *) info;
1299 syscallarg(struct timespec *) timeout;
1300 };
1301 check_syscall_args(sys___sigtimedwait)
1302
1303 struct sys_modctl_args {
1304 syscallarg(int) cmd;
1305 syscallarg(void *) arg;
1306 };
1307 check_syscall_args(sys_modctl)
1308 #if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
1309
1310 struct sys__ksem_init_args {
1311 syscallarg(unsigned int) value;
1312 syscallarg(semid_t *) idp;
1313 };
1314 check_syscall_args(sys__ksem_init)
1315
1316 struct sys__ksem_open_args {
1317 syscallarg(const char *) name;
1318 syscallarg(int) oflag;
1319 syscallarg(mode_t) mode;
1320 syscallarg(unsigned int) value;
1321 syscallarg(semid_t *) idp;
1322 };
1323 check_syscall_args(sys__ksem_open)
1324
1325 struct sys__ksem_unlink_args {
1326 syscallarg(const char *) name;
1327 };
1328 check_syscall_args(sys__ksem_unlink)
1329
1330 struct sys__ksem_close_args {
1331 syscallarg(semid_t) id;
1332 };
1333 check_syscall_args(sys__ksem_close)
1334
1335 struct sys__ksem_post_args {
1336 syscallarg(semid_t) id;
1337 };
1338 check_syscall_args(sys__ksem_post)
1339
1340 struct sys__ksem_wait_args {
1341 syscallarg(semid_t) id;
1342 };
1343 check_syscall_args(sys__ksem_wait)
1344
1345 struct sys__ksem_trywait_args {
1346 syscallarg(semid_t) id;
1347 };
1348 check_syscall_args(sys__ksem_trywait)
1349
1350 struct sys__ksem_getvalue_args {
1351 syscallarg(semid_t) id;
1352 syscallarg(unsigned int *) value;
1353 };
1354 check_syscall_args(sys__ksem_getvalue)
1355
1356 struct sys__ksem_destroy_args {
1357 syscallarg(semid_t) id;
1358 };
1359 check_syscall_args(sys__ksem_destroy)
1360 #else
1361 #endif
1362
1363 struct sys_mq_open_args {
1364 syscallarg(const char *) name;
1365 syscallarg(int) oflag;
1366 syscallarg(mode_t) mode;
1367 syscallarg(struct mq_attr *) attr;
1368 };
1369 check_syscall_args(sys_mq_open)
1370
1371 struct sys_mq_close_args {
1372 syscallarg(mqd_t) mqdes;
1373 };
1374 check_syscall_args(sys_mq_close)
1375
1376 struct sys_mq_unlink_args {
1377 syscallarg(const char *) name;
1378 };
1379 check_syscall_args(sys_mq_unlink)
1380
1381 struct sys_mq_getattr_args {
1382 syscallarg(mqd_t) mqdes;
1383 syscallarg(struct mq_attr *) mqstat;
1384 };
1385 check_syscall_args(sys_mq_getattr)
1386
1387 struct sys_mq_setattr_args {
1388 syscallarg(mqd_t) mqdes;
1389 syscallarg(const struct mq_attr *) mqstat;
1390 syscallarg(struct mq_attr *) omqstat;
1391 };
1392 check_syscall_args(sys_mq_setattr)
1393
1394 struct sys_mq_notify_args {
1395 syscallarg(mqd_t) mqdes;
1396 syscallarg(const struct sigevent *) notification;
1397 };
1398 check_syscall_args(sys_mq_notify)
1399
1400 struct sys_mq_send_args {
1401 syscallarg(mqd_t) mqdes;
1402 syscallarg(const char *) msg_ptr;
1403 syscallarg(size_t) msg_len;
1404 syscallarg(unsigned) msg_prio;
1405 };
1406 check_syscall_args(sys_mq_send)
1407
1408 struct sys_mq_receive_args {
1409 syscallarg(mqd_t) mqdes;
1410 syscallarg(char *) msg_ptr;
1411 syscallarg(size_t) msg_len;
1412 syscallarg(unsigned *) msg_prio;
1413 };
1414 check_syscall_args(sys_mq_receive)
1415
1416 struct sys_mq_timedsend_args {
1417 syscallarg(mqd_t) mqdes;
1418 syscallarg(const char *) msg_ptr;
1419 syscallarg(size_t) msg_len;
1420 syscallarg(unsigned) msg_prio;
1421 syscallarg(const struct timespec *) abs_timeout;
1422 };
1423 check_syscall_args(sys_mq_timedsend)
1424
1425 struct sys_mq_timedreceive_args {
1426 syscallarg(mqd_t) mqdes;
1427 syscallarg(char *) msg_ptr;
1428 syscallarg(size_t) msg_len;
1429 syscallarg(unsigned *) msg_prio;
1430 syscallarg(const struct timespec *) abs_timeout;
1431 };
1432 check_syscall_args(sys_mq_timedreceive)
1433
1434 struct sys___posix_rename_args {
1435 syscallarg(const char *) from;
1436 syscallarg(const char *) to;
1437 };
1438 check_syscall_args(sys___posix_rename)
1439
1440 struct sys_swapctl_args {
1441 syscallarg(int) cmd;
1442 syscallarg(void *) arg;
1443 syscallarg(int) misc;
1444 };
1445 check_syscall_args(sys_swapctl)
1446
1447 struct compat_30_sys_getdents_args {
1448 syscallarg(int) fd;
1449 syscallarg(char *) buf;
1450 syscallarg(size_t) count;
1451 };
1452 check_syscall_args(compat_30_sys_getdents)
1453
1454 struct sys_minherit_args {
1455 syscallarg(void *) addr;
1456 syscallarg(size_t) len;
1457 syscallarg(int) inherit;
1458 };
1459 check_syscall_args(sys_minherit)
1460
1461 struct sys_lchmod_args {
1462 syscallarg(const char *) path;
1463 syscallarg(mode_t) mode;
1464 };
1465 check_syscall_args(sys_lchmod)
1466
1467 struct sys_lchown_args {
1468 syscallarg(const char *) path;
1469 syscallarg(uid_t) uid;
1470 syscallarg(gid_t) gid;
1471 };
1472 check_syscall_args(sys_lchown)
1473
1474 struct sys_lutimes_args {
1475 syscallarg(const char *) path;
1476 syscallarg(const struct timeval *) tptr;
1477 };
1478 check_syscall_args(sys_lutimes)
1479
1480 struct sys___msync13_args {
1481 syscallarg(void *) addr;
1482 syscallarg(size_t) len;
1483 syscallarg(int) flags;
1484 };
1485 check_syscall_args(sys___msync13)
1486
1487 struct compat_30_sys___stat13_args {
1488 syscallarg(const char *) path;
1489 syscallarg(struct stat13 *) ub;
1490 };
1491 check_syscall_args(compat_30_sys___stat13)
1492
1493 struct compat_30_sys___fstat13_args {
1494 syscallarg(int) fd;
1495 syscallarg(struct stat13 *) sb;
1496 };
1497 check_syscall_args(compat_30_sys___fstat13)
1498
1499 struct compat_30_sys___lstat13_args {
1500 syscallarg(const char *) path;
1501 syscallarg(struct stat13 *) ub;
1502 };
1503 check_syscall_args(compat_30_sys___lstat13)
1504
1505 struct sys___sigaltstack14_args {
1506 syscallarg(const struct sigaltstack *) nss;
1507 syscallarg(struct sigaltstack *) oss;
1508 };
1509 check_syscall_args(sys___sigaltstack14)
1510
1511 struct sys___posix_chown_args {
1512 syscallarg(const char *) path;
1513 syscallarg(uid_t) uid;
1514 syscallarg(gid_t) gid;
1515 };
1516 check_syscall_args(sys___posix_chown)
1517
1518 struct sys___posix_fchown_args {
1519 syscallarg(int) fd;
1520 syscallarg(uid_t) uid;
1521 syscallarg(gid_t) gid;
1522 };
1523 check_syscall_args(sys___posix_fchown)
1524
1525 struct sys___posix_lchown_args {
1526 syscallarg(const char *) path;
1527 syscallarg(uid_t) uid;
1528 syscallarg(gid_t) gid;
1529 };
1530 check_syscall_args(sys___posix_lchown)
1531
1532 struct sys_getsid_args {
1533 syscallarg(pid_t) pid;
1534 };
1535 check_syscall_args(sys_getsid)
1536
1537 struct sys___clone_args {
1538 syscallarg(int) flags;
1539 syscallarg(void *) stack;
1540 };
1541 check_syscall_args(sys___clone)
1542
1543 struct sys_fktrace_args {
1544 syscallarg(int) fd;
1545 syscallarg(int) ops;
1546 syscallarg(int) facs;
1547 syscallarg(int) pid;
1548 };
1549 check_syscall_args(sys_fktrace)
1550
1551 struct sys_preadv_args {
1552 syscallarg(int) fd;
1553 syscallarg(const struct iovec *) iovp;
1554 syscallarg(int) iovcnt;
1555 syscallarg(int) pad;
1556 syscallarg(off_t) offset;
1557 };
1558 check_syscall_args(sys_preadv)
1559
1560 struct sys_pwritev_args {
1561 syscallarg(int) fd;
1562 syscallarg(const struct iovec *) iovp;
1563 syscallarg(int) iovcnt;
1564 syscallarg(int) pad;
1565 syscallarg(off_t) offset;
1566 };
1567 check_syscall_args(sys_pwritev)
1568
1569 struct compat_16_sys___sigaction14_args {
1570 syscallarg(int) signum;
1571 syscallarg(const struct sigaction *) nsa;
1572 syscallarg(struct sigaction *) osa;
1573 };
1574 check_syscall_args(compat_16_sys___sigaction14)
1575
1576 struct sys___sigpending14_args {
1577 syscallarg(sigset_t *) set;
1578 };
1579 check_syscall_args(sys___sigpending14)
1580
1581 struct sys___sigprocmask14_args {
1582 syscallarg(int) how;
1583 syscallarg(const sigset_t *) set;
1584 syscallarg(sigset_t *) oset;
1585 };
1586 check_syscall_args(sys___sigprocmask14)
1587
1588 struct sys___sigsuspend14_args {
1589 syscallarg(const sigset_t *) set;
1590 };
1591 check_syscall_args(sys___sigsuspend14)
1592
1593 struct compat_16_sys___sigreturn14_args {
1594 syscallarg(struct sigcontext *) sigcntxp;
1595 };
1596 check_syscall_args(compat_16_sys___sigreturn14)
1597
1598 struct sys___getcwd_args {
1599 syscallarg(char *) bufp;
1600 syscallarg(size_t) length;
1601 };
1602 check_syscall_args(sys___getcwd)
1603
1604 struct sys_fchroot_args {
1605 syscallarg(int) fd;
1606 };
1607 check_syscall_args(sys_fchroot)
1608
1609 struct compat_30_sys_fhopen_args {
1610 syscallarg(const struct compat_30_fhandle *) fhp;
1611 syscallarg(int) flags;
1612 };
1613 check_syscall_args(compat_30_sys_fhopen)
1614
1615 struct compat_30_sys_fhstat_args {
1616 syscallarg(const struct compat_30_fhandle *) fhp;
1617 syscallarg(struct stat13 *) sb;
1618 };
1619 check_syscall_args(compat_30_sys_fhstat)
1620
1621 struct compat_20_sys_fhstatfs_args {
1622 syscallarg(const struct compat_30_fhandle *) fhp;
1623 syscallarg(struct statfs12 *) buf;
1624 };
1625 check_syscall_args(compat_20_sys_fhstatfs)
1626 #if defined(SYSVSEM) || !defined(_KERNEL)
1627
1628 struct sys_____semctl13_args {
1629 syscallarg(int) semid;
1630 syscallarg(int) semnum;
1631 syscallarg(int) cmd;
1632 syscallarg(union __semun *) arg;
1633 };
1634 check_syscall_args(sys_____semctl13)
1635 #else
1636 #endif
1637 #if defined(SYSVMSG) || !defined(_KERNEL)
1638
1639 struct sys___msgctl13_args {
1640 syscallarg(int) msqid;
1641 syscallarg(int) cmd;
1642 syscallarg(struct msqid_ds *) buf;
1643 };
1644 check_syscall_args(sys___msgctl13)
1645 #else
1646 #endif
1647 #if defined(SYSVSHM) || !defined(_KERNEL)
1648
1649 struct sys___shmctl13_args {
1650 syscallarg(int) shmid;
1651 syscallarg(int) cmd;
1652 syscallarg(struct shmid_ds *) buf;
1653 };
1654 check_syscall_args(sys___shmctl13)
1655 #else
1656 #endif
1657
1658 struct sys_lchflags_args {
1659 syscallarg(const char *) path;
1660 syscallarg(u_long) flags;
1661 };
1662 check_syscall_args(sys_lchflags)
1663
1664 struct sys_utrace_args {
1665 syscallarg(const char *) label;
1666 syscallarg(void *) addr;
1667 syscallarg(size_t) len;
1668 };
1669 check_syscall_args(sys_utrace)
1670
1671 struct sys_getcontext_args {
1672 syscallarg(struct __ucontext *) ucp;
1673 };
1674 check_syscall_args(sys_getcontext)
1675
1676 struct sys_setcontext_args {
1677 syscallarg(const struct __ucontext *) ucp;
1678 };
1679 check_syscall_args(sys_setcontext)
1680
1681 struct sys__lwp_create_args {
1682 syscallarg(const struct __ucontext *) ucp;
1683 syscallarg(u_long) flags;
1684 syscallarg(lwpid_t *) new_lwp;
1685 };
1686 check_syscall_args(sys__lwp_create)
1687
1688 struct sys__lwp_wait_args {
1689 syscallarg(lwpid_t) wait_for;
1690 syscallarg(lwpid_t *) departed;
1691 };
1692 check_syscall_args(sys__lwp_wait)
1693
1694 struct sys__lwp_suspend_args {
1695 syscallarg(lwpid_t) target;
1696 };
1697 check_syscall_args(sys__lwp_suspend)
1698
1699 struct sys__lwp_continue_args {
1700 syscallarg(lwpid_t) target;
1701 };
1702 check_syscall_args(sys__lwp_continue)
1703
1704 struct sys__lwp_wakeup_args {
1705 syscallarg(lwpid_t) target;
1706 };
1707 check_syscall_args(sys__lwp_wakeup)
1708
1709 struct sys__lwp_setprivate_args {
1710 syscallarg(void *) ptr;
1711 };
1712 check_syscall_args(sys__lwp_setprivate)
1713
1714 struct sys__lwp_kill_args {
1715 syscallarg(lwpid_t) target;
1716 syscallarg(int) signo;
1717 };
1718 check_syscall_args(sys__lwp_kill)
1719
1720 struct sys__lwp_detach_args {
1721 syscallarg(lwpid_t) target;
1722 };
1723 check_syscall_args(sys__lwp_detach)
1724
1725 struct sys__lwp_park_args {
1726 syscallarg(const struct timespec *) ts;
1727 syscallarg(lwpid_t) unpark;
1728 syscallarg(const void *) hint;
1729 syscallarg(const void *) unparkhint;
1730 };
1731 check_syscall_args(sys__lwp_park)
1732
1733 struct sys__lwp_unpark_args {
1734 syscallarg(lwpid_t) target;
1735 syscallarg(const void *) hint;
1736 };
1737 check_syscall_args(sys__lwp_unpark)
1738
1739 struct sys__lwp_unpark_all_args {
1740 syscallarg(const lwpid_t *) targets;
1741 syscallarg(size_t) ntargets;
1742 syscallarg(const void *) hint;
1743 };
1744 check_syscall_args(sys__lwp_unpark_all)
1745
1746 struct sys__lwp_setname_args {
1747 syscallarg(lwpid_t) target;
1748 syscallarg(const char *) name;
1749 };
1750 check_syscall_args(sys__lwp_setname)
1751
1752 struct sys__lwp_getname_args {
1753 syscallarg(lwpid_t) target;
1754 syscallarg(char *) name;
1755 syscallarg(size_t) len;
1756 };
1757 check_syscall_args(sys__lwp_getname)
1758
1759 struct sys__lwp_ctl_args {
1760 syscallarg(int) features;
1761 syscallarg(struct lwpctl **) address;
1762 };
1763 check_syscall_args(sys__lwp_ctl)
1764
1765 struct sys_sa_register_args {
1766 syscallarg(sa_upcall_t) new;
1767 syscallarg(sa_upcall_t *) old;
1768 syscallarg(int) flags;
1769 syscallarg(ssize_t) stackinfo_offset;
1770 };
1771 check_syscall_args(sys_sa_register)
1772
1773 struct sys_sa_stacks_args {
1774 syscallarg(int) num;
1775 syscallarg(stack_t *) stacks;
1776 };
1777 check_syscall_args(sys_sa_stacks)
1778
1779 struct sys_sa_setconcurrency_args {
1780 syscallarg(int) concurrency;
1781 };
1782 check_syscall_args(sys_sa_setconcurrency)
1783
1784 struct sys_sa_preempt_args {
1785 syscallarg(int) sa_id;
1786 };
1787 check_syscall_args(sys_sa_preempt)
1788
1789 struct sys___sigaction_sigtramp_args {
1790 syscallarg(int) signum;
1791 syscallarg(const struct sigaction *) nsa;
1792 syscallarg(struct sigaction *) osa;
1793 syscallarg(const void *) tramp;
1794 syscallarg(int) vers;
1795 };
1796 check_syscall_args(sys___sigaction_sigtramp)
1797
1798 struct sys_pmc_get_info_args {
1799 syscallarg(int) ctr;
1800 syscallarg(int) op;
1801 syscallarg(void *) args;
1802 };
1803 check_syscall_args(sys_pmc_get_info)
1804
1805 struct sys_pmc_control_args {
1806 syscallarg(int) ctr;
1807 syscallarg(int) op;
1808 syscallarg(void *) args;
1809 };
1810 check_syscall_args(sys_pmc_control)
1811
1812 struct sys_rasctl_args {
1813 syscallarg(void *) addr;
1814 syscallarg(size_t) len;
1815 syscallarg(int) op;
1816 };
1817 check_syscall_args(sys_rasctl)
1818
1819 struct sys_kevent_args {
1820 syscallarg(int) fd;
1821 syscallarg(const struct kevent *) changelist;
1822 syscallarg(size_t) nchanges;
1823 syscallarg(struct kevent *) eventlist;
1824 syscallarg(size_t) nevents;
1825 syscallarg(const struct timespec *) timeout;
1826 };
1827 check_syscall_args(sys_kevent)
1828
1829 struct sys__sched_setparam_args {
1830 syscallarg(pid_t) pid;
1831 syscallarg(lwpid_t) lid;
1832 syscallarg(int) policy;
1833 syscallarg(const struct sched_param *) params;
1834 };
1835 check_syscall_args(sys__sched_setparam)
1836
1837 struct sys__sched_getparam_args {
1838 syscallarg(pid_t) pid;
1839 syscallarg(lwpid_t) lid;
1840 syscallarg(int *) policy;
1841 syscallarg(struct sched_param *) params;
1842 };
1843 check_syscall_args(sys__sched_getparam)
1844
1845 struct sys__sched_setaffinity_args {
1846 syscallarg(pid_t) pid;
1847 syscallarg(lwpid_t) lid;
1848 syscallarg(size_t) size;
1849 syscallarg(const cpuset_t *) cpuset;
1850 };
1851 check_syscall_args(sys__sched_setaffinity)
1852
1853 struct sys__sched_getaffinity_args {
1854 syscallarg(pid_t) pid;
1855 syscallarg(lwpid_t) lid;
1856 syscallarg(size_t) size;
1857 syscallarg(cpuset_t *) cpuset;
1858 };
1859 check_syscall_args(sys__sched_getaffinity)
1860
1861 struct sys_fsync_range_args {
1862 syscallarg(int) fd;
1863 syscallarg(int) flags;
1864 syscallarg(off_t) start;
1865 syscallarg(off_t) length;
1866 };
1867 check_syscall_args(sys_fsync_range)
1868
1869 struct sys_uuidgen_args {
1870 syscallarg(struct uuid *) store;
1871 syscallarg(int) count;
1872 };
1873 check_syscall_args(sys_uuidgen)
1874
1875 struct sys_getvfsstat_args {
1876 syscallarg(struct statvfs *) buf;
1877 syscallarg(size_t) bufsize;
1878 syscallarg(int) flags;
1879 };
1880 check_syscall_args(sys_getvfsstat)
1881
1882 struct sys_statvfs1_args {
1883 syscallarg(const char *) path;
1884 syscallarg(struct statvfs *) buf;
1885 syscallarg(int) flags;
1886 };
1887 check_syscall_args(sys_statvfs1)
1888
1889 struct sys_fstatvfs1_args {
1890 syscallarg(int) fd;
1891 syscallarg(struct statvfs *) buf;
1892 syscallarg(int) flags;
1893 };
1894 check_syscall_args(sys_fstatvfs1)
1895
1896 struct compat_30_sys_fhstatvfs1_args {
1897 syscallarg(const struct compat_30_fhandle *) fhp;
1898 syscallarg(struct statvfs *) buf;
1899 syscallarg(int) flags;
1900 };
1901 check_syscall_args(compat_30_sys_fhstatvfs1)
1902
1903 struct sys_extattrctl_args {
1904 syscallarg(const char *) path;
1905 syscallarg(int) cmd;
1906 syscallarg(const char *) filename;
1907 syscallarg(int) attrnamespace;
1908 syscallarg(const char *) attrname;
1909 };
1910 check_syscall_args(sys_extattrctl)
1911
1912 struct sys_extattr_set_file_args {
1913 syscallarg(const char *) path;
1914 syscallarg(int) attrnamespace;
1915 syscallarg(const char *) attrname;
1916 syscallarg(const void *) data;
1917 syscallarg(size_t) nbytes;
1918 };
1919 check_syscall_args(sys_extattr_set_file)
1920
1921 struct sys_extattr_get_file_args {
1922 syscallarg(const char *) path;
1923 syscallarg(int) attrnamespace;
1924 syscallarg(const char *) attrname;
1925 syscallarg(void *) data;
1926 syscallarg(size_t) nbytes;
1927 };
1928 check_syscall_args(sys_extattr_get_file)
1929
1930 struct sys_extattr_delete_file_args {
1931 syscallarg(const char *) path;
1932 syscallarg(int) attrnamespace;
1933 syscallarg(const char *) attrname;
1934 };
1935 check_syscall_args(sys_extattr_delete_file)
1936
1937 struct sys_extattr_set_fd_args {
1938 syscallarg(int) fd;
1939 syscallarg(int) attrnamespace;
1940 syscallarg(const char *) attrname;
1941 syscallarg(const void *) data;
1942 syscallarg(size_t) nbytes;
1943 };
1944 check_syscall_args(sys_extattr_set_fd)
1945
1946 struct sys_extattr_get_fd_args {
1947 syscallarg(int) fd;
1948 syscallarg(int) attrnamespace;
1949 syscallarg(const char *) attrname;
1950 syscallarg(void *) data;
1951 syscallarg(size_t) nbytes;
1952 };
1953 check_syscall_args(sys_extattr_get_fd)
1954
1955 struct sys_extattr_delete_fd_args {
1956 syscallarg(int) fd;
1957 syscallarg(int) attrnamespace;
1958 syscallarg(const char *) attrname;
1959 };
1960 check_syscall_args(sys_extattr_delete_fd)
1961
1962 struct sys_extattr_set_link_args {
1963 syscallarg(const char *) path;
1964 syscallarg(int) attrnamespace;
1965 syscallarg(const char *) attrname;
1966 syscallarg(const void *) data;
1967 syscallarg(size_t) nbytes;
1968 };
1969 check_syscall_args(sys_extattr_set_link)
1970
1971 struct sys_extattr_get_link_args {
1972 syscallarg(const char *) path;
1973 syscallarg(int) attrnamespace;
1974 syscallarg(const char *) attrname;
1975 syscallarg(void *) data;
1976 syscallarg(size_t) nbytes;
1977 };
1978 check_syscall_args(sys_extattr_get_link)
1979
1980 struct sys_extattr_delete_link_args {
1981 syscallarg(const char *) path;
1982 syscallarg(int) attrnamespace;
1983 syscallarg(const char *) attrname;
1984 };
1985 check_syscall_args(sys_extattr_delete_link)
1986
1987 struct sys_extattr_list_fd_args {
1988 syscallarg(int) fd;
1989 syscallarg(int) attrnamespace;
1990 syscallarg(void *) data;
1991 syscallarg(size_t) nbytes;
1992 };
1993 check_syscall_args(sys_extattr_list_fd)
1994
1995 struct sys_extattr_list_file_args {
1996 syscallarg(const char *) path;
1997 syscallarg(int) attrnamespace;
1998 syscallarg(void *) data;
1999 syscallarg(size_t) nbytes;
2000 };
2001 check_syscall_args(sys_extattr_list_file)
2002
2003 struct sys_extattr_list_link_args {
2004 syscallarg(const char *) path;
2005 syscallarg(int) attrnamespace;
2006 syscallarg(void *) data;
2007 syscallarg(size_t) nbytes;
2008 };
2009 check_syscall_args(sys_extattr_list_link)
2010
2011 struct sys_pselect_args {
2012 syscallarg(int) nd;
2013 syscallarg(fd_set *) in;
2014 syscallarg(fd_set *) ou;
2015 syscallarg(fd_set *) ex;
2016 syscallarg(const struct timespec *) ts;
2017 syscallarg(const sigset_t *) mask;
2018 };
2019 check_syscall_args(sys_pselect)
2020
2021 struct sys_pollts_args {
2022 syscallarg(struct pollfd *) fds;
2023 syscallarg(u_int) nfds;
2024 syscallarg(const struct timespec *) ts;
2025 syscallarg(const sigset_t *) mask;
2026 };
2027 check_syscall_args(sys_pollts)
2028
2029 struct sys_setxattr_args {
2030 syscallarg(const char *) path;
2031 syscallarg(const char *) name;
2032 syscallarg(void *) value;
2033 syscallarg(size_t) size;
2034 syscallarg(int) flags;
2035 };
2036 check_syscall_args(sys_setxattr)
2037
2038 struct sys_lsetxattr_args {
2039 syscallarg(const char *) path;
2040 syscallarg(const char *) name;
2041 syscallarg(void *) value;
2042 syscallarg(size_t) size;
2043 syscallarg(int) flags;
2044 };
2045 check_syscall_args(sys_lsetxattr)
2046
2047 struct sys_fsetxattr_args {
2048 syscallarg(int) fd;
2049 syscallarg(const char *) name;
2050 syscallarg(void *) value;
2051 syscallarg(size_t) size;
2052 syscallarg(int) flags;
2053 };
2054 check_syscall_args(sys_fsetxattr)
2055
2056 struct sys_getxattr_args {
2057 syscallarg(const char *) path;
2058 syscallarg(const char *) name;
2059 syscallarg(void *) value;
2060 syscallarg(size_t) size;
2061 };
2062 check_syscall_args(sys_getxattr)
2063
2064 struct sys_lgetxattr_args {
2065 syscallarg(const char *) path;
2066 syscallarg(const char *) name;
2067 syscallarg(void *) value;
2068 syscallarg(size_t) size;
2069 };
2070 check_syscall_args(sys_lgetxattr)
2071
2072 struct sys_fgetxattr_args {
2073 syscallarg(int) fd;
2074 syscallarg(const char *) name;
2075 syscallarg(void *) value;
2076 syscallarg(size_t) size;
2077 };
2078 check_syscall_args(sys_fgetxattr)
2079
2080 struct sys_listxattr_args {
2081 syscallarg(const char *) path;
2082 syscallarg(char *) list;
2083 syscallarg(size_t) size;
2084 };
2085 check_syscall_args(sys_listxattr)
2086
2087 struct sys_llistxattr_args {
2088 syscallarg(const char *) path;
2089 syscallarg(char *) list;
2090 syscallarg(size_t) size;
2091 };
2092 check_syscall_args(sys_llistxattr)
2093
2094 struct sys_flistxattr_args {
2095 syscallarg(int) fd;
2096 syscallarg(char *) list;
2097 syscallarg(size_t) size;
2098 };
2099 check_syscall_args(sys_flistxattr)
2100
2101 struct sys_removexattr_args {
2102 syscallarg(const char *) path;
2103 syscallarg(const char *) name;
2104 };
2105 check_syscall_args(sys_removexattr)
2106
2107 struct sys_lremovexattr_args {
2108 syscallarg(const char *) path;
2109 syscallarg(const char *) name;
2110 };
2111 check_syscall_args(sys_lremovexattr)
2112
2113 struct sys_fremovexattr_args {
2114 syscallarg(int) fd;
2115 syscallarg(const char *) name;
2116 };
2117 check_syscall_args(sys_fremovexattr)
2118
2119 struct sys___stat30_args {
2120 syscallarg(const char *) path;
2121 syscallarg(struct stat *) ub;
2122 };
2123 check_syscall_args(sys___stat30)
2124
2125 struct sys___fstat30_args {
2126 syscallarg(int) fd;
2127 syscallarg(struct stat *) sb;
2128 };
2129 check_syscall_args(sys___fstat30)
2130
2131 struct sys___lstat30_args {
2132 syscallarg(const char *) path;
2133 syscallarg(struct stat *) ub;
2134 };
2135 check_syscall_args(sys___lstat30)
2136
2137 struct sys___getdents30_args {
2138 syscallarg(int) fd;
2139 syscallarg(char *) buf;
2140 syscallarg(size_t) count;
2141 };
2142 check_syscall_args(sys___getdents30)
2143
2144 struct compat_30_sys___fhstat30_args {
2145 syscallarg(const struct compat_30_fhandle *) fhp;
2146 syscallarg(struct stat *) sb;
2147 };
2148 check_syscall_args(compat_30_sys___fhstat30)
2149
2150 struct sys___ntp_gettime30_args {
2151 syscallarg(struct ntptimeval *) ntvp;
2152 };
2153 check_syscall_args(sys___ntp_gettime30)
2154
2155 struct sys___socket30_args {
2156 syscallarg(int) domain;
2157 syscallarg(int) type;
2158 syscallarg(int) protocol;
2159 };
2160 check_syscall_args(sys___socket30)
2161
2162 struct sys___getfh30_args {
2163 syscallarg(const char *) fname;
2164 syscallarg(void *) fhp;
2165 syscallarg(size_t *) fh_size;
2166 };
2167 check_syscall_args(sys___getfh30)
2168
2169 struct sys___fhopen40_args {
2170 syscallarg(const void *) fhp;
2171 syscallarg(size_t) fh_size;
2172 syscallarg(int) flags;
2173 };
2174 check_syscall_args(sys___fhopen40)
2175
2176 struct sys___fhstatvfs140_args {
2177 syscallarg(const void *) fhp;
2178 syscallarg(size_t) fh_size;
2179 syscallarg(struct statvfs *) buf;
2180 syscallarg(int) flags;
2181 };
2182 check_syscall_args(sys___fhstatvfs140)
2183
2184 struct sys___fhstat40_args {
2185 syscallarg(const void *) fhp;
2186 syscallarg(size_t) fh_size;
2187 syscallarg(struct stat *) sb;
2188 };
2189 check_syscall_args(sys___fhstat40)
2190
2191 struct sys_aio_cancel_args {
2192 syscallarg(int) fildes;
2193 syscallarg(struct aiocb *) aiocbp;
2194 };
2195 check_syscall_args(sys_aio_cancel)
2196
2197 struct sys_aio_error_args {
2198 syscallarg(const struct aiocb *) aiocbp;
2199 };
2200 check_syscall_args(sys_aio_error)
2201
2202 struct sys_aio_fsync_args {
2203 syscallarg(int) op;
2204 syscallarg(struct aiocb *) aiocbp;
2205 };
2206 check_syscall_args(sys_aio_fsync)
2207
2208 struct sys_aio_read_args {
2209 syscallarg(struct aiocb *) aiocbp;
2210 };
2211 check_syscall_args(sys_aio_read)
2212
2213 struct sys_aio_return_args {
2214 syscallarg(struct aiocb *) aiocbp;
2215 };
2216 check_syscall_args(sys_aio_return)
2217
2218 struct sys_aio_suspend_args {
2219 syscallarg(const struct aiocb *const *) list;
2220 syscallarg(int) nent;
2221 syscallarg(const struct timespec *) timeout;
2222 };
2223 check_syscall_args(sys_aio_suspend)
2224
2225 struct sys_aio_write_args {
2226 syscallarg(struct aiocb *) aiocbp;
2227 };
2228 check_syscall_args(sys_aio_write)
2229
2230 struct sys_lio_listio_args {
2231 syscallarg(int) mode;
2232 syscallarg(struct aiocb *const *) list;
2233 syscallarg(int) nent;
2234 syscallarg(struct sigevent *) sig;
2235 };
2236 check_syscall_args(sys_lio_listio)
2237
2238 struct sys___mount50_args {
2239 syscallarg(const char *) type;
2240 syscallarg(const char *) path;
2241 syscallarg(int) flags;
2242 syscallarg(void *) data;
2243 syscallarg(size_t) data_len;
2244 };
2245 check_syscall_args(sys___mount50)
2246
2247 struct sys_mremap_args {
2248 syscallarg(void *) old_address;
2249 syscallarg(size_t) old_size;
2250 syscallarg(void *) new_address;
2251 syscallarg(size_t) new_size;
2252 syscallarg(int) flags;
2253 };
2254 check_syscall_args(sys_mremap)
2255
2256 struct sys_pset_create_args {
2257 syscallarg(psetid_t *) psid;
2258 };
2259 check_syscall_args(sys_pset_create)
2260
2261 struct sys_pset_destroy_args {
2262 syscallarg(psetid_t) psid;
2263 };
2264 check_syscall_args(sys_pset_destroy)
2265
2266 struct sys_pset_assign_args {
2267 syscallarg(psetid_t) psid;
2268 syscallarg(cpuid_t) cpuid;
2269 syscallarg(psetid_t *) opsid;
2270 };
2271 check_syscall_args(sys_pset_assign)
2272
2273 struct sys__pset_bind_args {
2274 syscallarg(idtype_t) idtype;
2275 syscallarg(id_t) first_id;
2276 syscallarg(id_t) second_id;
2277 syscallarg(psetid_t) psid;
2278 syscallarg(psetid_t *) opsid;
2279 };
2280 check_syscall_args(sys__pset_bind)
2281
2282 struct sys___posix_fadvise50_args {
2283 syscallarg(int) fd;
2284 syscallarg(int) pad;
2285 syscallarg(off_t) offset;
2286 syscallarg(off_t) len;
2287 syscallarg(int) advice;
2288 };
2289 check_syscall_args(sys___posix_fadvise50)
2290
2291 /*
2292 * System call prototypes.
2293 */
2294
2295 int sys_syscall(struct lwp *, const struct sys_syscall_args *, register_t *);
2296
2297 int sys_exit(struct lwp *, const struct sys_exit_args *, register_t *);
2298
2299 int sys_fork(struct lwp *, const void *, register_t *);
2300
2301 int sys_read(struct lwp *, const struct sys_read_args *, register_t *);
2302
2303 int sys_write(struct lwp *, const struct sys_write_args *, register_t *);
2304
2305 int sys_open(struct lwp *, const struct sys_open_args *, register_t *);
2306
2307 int sys_close(struct lwp *, const struct sys_close_args *, register_t *);
2308
2309 int sys_wait4(struct lwp *, const struct sys_wait4_args *, register_t *);
2310
2311 int compat_43_sys_creat(struct lwp *, const struct compat_43_sys_creat_args *, register_t *);
2312
2313 int sys_link(struct lwp *, const struct sys_link_args *, register_t *);
2314
2315 int sys_unlink(struct lwp *, const struct sys_unlink_args *, register_t *);
2316
2317 int sys_chdir(struct lwp *, const struct sys_chdir_args *, register_t *);
2318
2319 int sys_fchdir(struct lwp *, const struct sys_fchdir_args *, register_t *);
2320
2321 int sys_mknod(struct lwp *, const struct sys_mknod_args *, register_t *);
2322
2323 int sys_chmod(struct lwp *, const struct sys_chmod_args *, register_t *);
2324
2325 int sys_chown(struct lwp *, const struct sys_chown_args *, register_t *);
2326
2327 int sys_obreak(struct lwp *, const struct sys_obreak_args *, register_t *);
2328
2329 int compat_20_sys_getfsstat(struct lwp *, const struct compat_20_sys_getfsstat_args *, register_t *);
2330
2331 int compat_43_sys_lseek(struct lwp *, const struct compat_43_sys_lseek_args *, register_t *);
2332
2333 #ifdef COMPAT_43
2334 int sys_getpid_with_ppid(struct lwp *, const void *, register_t *);
2335
2336 #else
2337 int sys_getpid(struct lwp *, const void *, register_t *);
2338
2339 #endif
2340 int compat_40_sys_mount(struct lwp *, const struct compat_40_sys_mount_args *, register_t *);
2341
2342 int sys_unmount(struct lwp *, const struct sys_unmount_args *, register_t *);
2343
2344 int sys_setuid(struct lwp *, const struct sys_setuid_args *, register_t *);
2345
2346 #ifdef COMPAT_43
2347 int sys_getuid_with_euid(struct lwp *, const void *, register_t *);
2348
2349 #else
2350 int sys_getuid(struct lwp *, const void *, register_t *);
2351
2352 #endif
2353 int sys_geteuid(struct lwp *, const void *, register_t *);
2354
2355 int sys_ptrace(struct lwp *, const struct sys_ptrace_args *, register_t *);
2356
2357 int sys_recvmsg(struct lwp *, const struct sys_recvmsg_args *, register_t *);
2358
2359 int sys_sendmsg(struct lwp *, const struct sys_sendmsg_args *, register_t *);
2360
2361 int sys_recvfrom(struct lwp *, const struct sys_recvfrom_args *, register_t *);
2362
2363 int sys_accept(struct lwp *, const struct sys_accept_args *, register_t *);
2364
2365 int sys_getpeername(struct lwp *, const struct sys_getpeername_args *, register_t *);
2366
2367 int sys_getsockname(struct lwp *, const struct sys_getsockname_args *, register_t *);
2368
2369 int sys_access(struct lwp *, const struct sys_access_args *, register_t *);
2370
2371 int sys_chflags(struct lwp *, const struct sys_chflags_args *, register_t *);
2372
2373 int sys_fchflags(struct lwp *, const struct sys_fchflags_args *, register_t *);
2374
2375 int sys_sync(struct lwp *, const void *, register_t *);
2376
2377 int sys_kill(struct lwp *, const struct sys_kill_args *, register_t *);
2378
2379 int compat_43_sys_stat(struct lwp *, const struct compat_43_sys_stat_args *, register_t *);
2380
2381 int sys_getppid(struct lwp *, const void *, register_t *);
2382
2383 int compat_43_sys_lstat(struct lwp *, const struct compat_43_sys_lstat_args *, register_t *);
2384
2385 int sys_dup(struct lwp *, const struct sys_dup_args *, register_t *);
2386
2387 int sys_pipe(struct lwp *, const void *, register_t *);
2388
2389 int sys_getegid(struct lwp *, const void *, register_t *);
2390
2391 int sys_profil(struct lwp *, const struct sys_profil_args *, register_t *);
2392
2393 int sys_ktrace(struct lwp *, const struct sys_ktrace_args *, register_t *);
2394
2395 int compat_13_sys_sigaction(struct lwp *, const struct compat_13_sys_sigaction_args *, register_t *);
2396
2397 #ifdef COMPAT_43
2398 int sys_getgid_with_egid(struct lwp *, const void *, register_t *);
2399
2400 #else
2401 int sys_getgid(struct lwp *, const void *, register_t *);
2402
2403 #endif
2404 int compat_13_sys_sigprocmask(struct lwp *, const struct compat_13_sys_sigprocmask_args *, register_t *);
2405
2406 int sys___getlogin(struct lwp *, const struct sys___getlogin_args *, register_t *);
2407
2408 int sys___setlogin(struct lwp *, const struct sys___setlogin_args *, register_t *);
2409
2410 int sys_acct(struct lwp *, const struct sys_acct_args *, register_t *);
2411
2412 int compat_13_sys_sigpending(struct lwp *, const void *, register_t *);
2413
2414 int compat_13_sys_sigaltstack(struct lwp *, const struct compat_13_sys_sigaltstack_args *, register_t *);
2415
2416 int sys_ioctl(struct lwp *, const struct sys_ioctl_args *, register_t *);
2417
2418 int compat_12_sys_reboot(struct lwp *, const struct compat_12_sys_reboot_args *, register_t *);
2419
2420 int sys_revoke(struct lwp *, const struct sys_revoke_args *, register_t *);
2421
2422 int sys_symlink(struct lwp *, const struct sys_symlink_args *, register_t *);
2423
2424 int sys_readlink(struct lwp *, const struct sys_readlink_args *, register_t *);
2425
2426 int sys_execve(struct lwp *, const struct sys_execve_args *, register_t *);
2427
2428 int sys_umask(struct lwp *, const struct sys_umask_args *, register_t *);
2429
2430 int sys_chroot(struct lwp *, const struct sys_chroot_args *, register_t *);
2431
2432 int compat_43_sys_fstat(struct lwp *, const struct compat_43_sys_fstat_args *, register_t *);
2433
2434 int compat_43_sys_getkerninfo(struct lwp *, const struct compat_43_sys_getkerninfo_args *, register_t *);
2435
2436 int compat_43_sys_getpagesize(struct lwp *, const void *, register_t *);
2437
2438 int compat_12_sys_msync(struct lwp *, const struct compat_12_sys_msync_args *, register_t *);
2439
2440 int sys_vfork(struct lwp *, const void *, register_t *);
2441
2442 int sys_sbrk(struct lwp *, const struct sys_sbrk_args *, register_t *);
2443
2444 int sys_sstk(struct lwp *, const struct sys_sstk_args *, register_t *);
2445
2446 int compat_43_sys_mmap(struct lwp *, const struct compat_43_sys_mmap_args *, register_t *);
2447
2448 int sys_ovadvise(struct lwp *, const struct sys_ovadvise_args *, register_t *);
2449
2450 int sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *);
2451
2452 int sys_mprotect(struct lwp *, const struct sys_mprotect_args *, register_t *);
2453
2454 int sys_madvise(struct lwp *, const struct sys_madvise_args *, register_t *);
2455
2456 int sys_mincore(struct lwp *, const struct sys_mincore_args *, register_t *);
2457
2458 int sys_getgroups(struct lwp *, const struct sys_getgroups_args *, register_t *);
2459
2460 int sys_setgroups(struct lwp *, const struct sys_setgroups_args *, register_t *);
2461
2462 int sys_getpgrp(struct lwp *, const void *, register_t *);
2463
2464 int sys_setpgid(struct lwp *, const struct sys_setpgid_args *, register_t *);
2465
2466 int sys_setitimer(struct lwp *, const struct sys_setitimer_args *, register_t *);
2467
2468 int compat_43_sys_wait(struct lwp *, const void *, register_t *);
2469
2470 int compat_12_sys_swapon(struct lwp *, const struct compat_12_sys_swapon_args *, register_t *);
2471
2472 int sys_getitimer(struct lwp *, const struct sys_getitimer_args *, register_t *);
2473
2474 int compat_43_sys_gethostname(struct lwp *, const struct compat_43_sys_gethostname_args *, register_t *);
2475
2476 int compat_43_sys_sethostname(struct lwp *, const struct compat_43_sys_sethostname_args *, register_t *);
2477
2478 int compat_43_sys_getdtablesize(struct lwp *, const void *, register_t *);
2479
2480 int sys_dup2(struct lwp *, const struct sys_dup2_args *, register_t *);
2481
2482 int sys_fcntl(struct lwp *, const struct sys_fcntl_args *, register_t *);
2483
2484 int sys_select(struct lwp *, const struct sys_select_args *, register_t *);
2485
2486 int sys_fsync(struct lwp *, const struct sys_fsync_args *, register_t *);
2487
2488 int sys_setpriority(struct lwp *, const struct sys_setpriority_args *, register_t *);
2489
2490 int compat_30_sys_socket(struct lwp *, const struct compat_30_sys_socket_args *, register_t *);
2491
2492 int sys_connect(struct lwp *, const struct sys_connect_args *, register_t *);
2493
2494 int compat_43_sys_accept(struct lwp *, const struct compat_43_sys_accept_args *, register_t *);
2495
2496 int sys_getpriority(struct lwp *, const struct sys_getpriority_args *, register_t *);
2497
2498 int compat_43_sys_send(struct lwp *, const struct compat_43_sys_send_args *, register_t *);
2499
2500 int compat_43_sys_recv(struct lwp *, const struct compat_43_sys_recv_args *, register_t *);
2501
2502 int compat_13_sys_sigreturn(struct lwp *, const struct compat_13_sys_sigreturn_args *, register_t *);
2503
2504 int sys_bind(struct lwp *, const struct sys_bind_args *, register_t *);
2505
2506 int sys_setsockopt(struct lwp *, const struct sys_setsockopt_args *, register_t *);
2507
2508 int sys_listen(struct lwp *, const struct sys_listen_args *, register_t *);
2509
2510 int compat_43_sys_sigvec(struct lwp *, const struct compat_43_sys_sigvec_args *, register_t *);
2511
2512 int compat_43_sys_sigblock(struct lwp *, const struct compat_43_sys_sigblock_args *, register_t *);
2513
2514 int compat_43_sys_sigsetmask(struct lwp *, const struct compat_43_sys_sigsetmask_args *, register_t *);
2515
2516 int compat_13_sys_sigsuspend(struct lwp *, const struct compat_13_sys_sigsuspend_args *, register_t *);
2517
2518 int compat_43_sys_sigstack(struct lwp *, const struct compat_43_sys_sigstack_args *, register_t *);
2519
2520 int compat_43_sys_recvmsg(struct lwp *, const struct compat_43_sys_recvmsg_args *, register_t *);
2521
2522 int compat_43_sys_sendmsg(struct lwp *, const struct compat_43_sys_sendmsg_args *, register_t *);
2523
2524 int sys_gettimeofday(struct lwp *, const struct sys_gettimeofday_args *, register_t *);
2525
2526 int sys_getrusage(struct lwp *, const struct sys_getrusage_args *, register_t *);
2527
2528 int sys_getsockopt(struct lwp *, const struct sys_getsockopt_args *, register_t *);
2529
2530 int sys_readv(struct lwp *, const struct sys_readv_args *, register_t *);
2531
2532 int sys_writev(struct lwp *, const struct sys_writev_args *, register_t *);
2533
2534 int sys_settimeofday(struct lwp *, const struct sys_settimeofday_args *, register_t *);
2535
2536 int sys_fchown(struct lwp *, const struct sys_fchown_args *, register_t *);
2537
2538 int sys_fchmod(struct lwp *, const struct sys_fchmod_args *, register_t *);
2539
2540 int compat_43_sys_recvfrom(struct lwp *, const struct compat_43_sys_recvfrom_args *, register_t *);
2541
2542 int sys_setreuid(struct lwp *, const struct sys_setreuid_args *, register_t *);
2543
2544 int sys_setregid(struct lwp *, const struct sys_setregid_args *, register_t *);
2545
2546 int sys_rename(struct lwp *, const struct sys_rename_args *, register_t *);
2547
2548 int compat_43_sys_truncate(struct lwp *, const struct compat_43_sys_truncate_args *, register_t *);
2549
2550 int compat_43_sys_ftruncate(struct lwp *, const struct compat_43_sys_ftruncate_args *, register_t *);
2551
2552 int sys_flock(struct lwp *, const struct sys_flock_args *, register_t *);
2553
2554 int sys_mkfifo(struct lwp *, const struct sys_mkfifo_args *, register_t *);
2555
2556 int sys_sendto(struct lwp *, const struct sys_sendto_args *, register_t *);
2557
2558 int sys_shutdown(struct lwp *, const struct sys_shutdown_args *, register_t *);
2559
2560 int sys_socketpair(struct lwp *, const struct sys_socketpair_args *, register_t *);
2561
2562 int sys_mkdir(struct lwp *, const struct sys_mkdir_args *, register_t *);
2563
2564 int sys_rmdir(struct lwp *, const struct sys_rmdir_args *, register_t *);
2565
2566 int sys_utimes(struct lwp *, const struct sys_utimes_args *, register_t *);
2567
2568 int sys_adjtime(struct lwp *, const struct sys_adjtime_args *, register_t *);
2569
2570 int compat_43_sys_getpeername(struct lwp *, const struct compat_43_sys_getpeername_args *, register_t *);
2571
2572 int compat_43_sys_gethostid(struct lwp *, const void *, register_t *);
2573
2574 int compat_43_sys_sethostid(struct lwp *, const struct compat_43_sys_sethostid_args *, register_t *);
2575
2576 int compat_43_sys_getrlimit(struct lwp *, const struct compat_43_sys_getrlimit_args *, register_t *);
2577
2578 int compat_43_sys_setrlimit(struct lwp *, const struct compat_43_sys_setrlimit_args *, register_t *);
2579
2580 int compat_43_sys_killpg(struct lwp *, const struct compat_43_sys_killpg_args *, register_t *);
2581
2582 int sys_setsid(struct lwp *, const void *, register_t *);
2583
2584 int sys_quotactl(struct lwp *, const struct sys_quotactl_args *, register_t *);
2585
2586 int compat_43_sys_quota(struct lwp *, const void *, register_t *);
2587
2588 int compat_43_sys_getsockname(struct lwp *, const struct compat_43_sys_getsockname_args *, register_t *);
2589
2590 #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
2591 int sys_nfssvc(struct lwp *, const struct sys_nfssvc_args *, register_t *);
2592
2593 #else
2594 #endif
2595 int compat_43_sys_getdirentries(struct lwp *, const struct compat_43_sys_getdirentries_args *, register_t *);
2596
2597 int compat_20_sys_statfs(struct lwp *, const struct compat_20_sys_statfs_args *, register_t *);
2598
2599 int compat_20_sys_fstatfs(struct lwp *, const struct compat_20_sys_fstatfs_args *, register_t *);
2600
2601 int compat_30_sys_getfh(struct lwp *, const struct compat_30_sys_getfh_args *, register_t *);
2602
2603 int compat_09_sys_getdomainname(struct lwp *, const struct compat_09_sys_getdomainname_args *, register_t *);
2604
2605 int compat_09_sys_setdomainname(struct lwp *, const struct compat_09_sys_setdomainname_args *, register_t *);
2606
2607 int compat_09_sys_uname(struct lwp *, const struct compat_09_sys_uname_args *, register_t *);
2608
2609 int sys_sysarch(struct lwp *, const struct sys_sysarch_args *, register_t *);
2610
2611 #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
2612 int compat_10_sys_semsys(struct lwp *, const struct compat_10_sys_semsys_args *, register_t *);
2613
2614 #else
2615 #endif
2616 #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
2617 int compat_10_sys_msgsys(struct lwp *, const struct compat_10_sys_msgsys_args *, register_t *);
2618
2619 #else
2620 #endif
2621 #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
2622 int compat_10_sys_shmsys(struct lwp *, const struct compat_10_sys_shmsys_args *, register_t *);
2623
2624 #else
2625 #endif
2626 int sys_pread(struct lwp *, const struct sys_pread_args *, register_t *);
2627
2628 int sys_pwrite(struct lwp *, const struct sys_pwrite_args *, register_t *);
2629
2630 int compat_30_sys_ntp_gettime(struct lwp *, const struct compat_30_sys_ntp_gettime_args *, register_t *);
2631
2632 #if defined(NTP) || !defined(_KERNEL)
2633 int sys_ntp_adjtime(struct lwp *, const struct sys_ntp_adjtime_args *, register_t *);
2634
2635 #else
2636 #endif
2637 int sys_setgid(struct lwp *, const struct sys_setgid_args *, register_t *);
2638
2639 int sys_setegid(struct lwp *, const struct sys_setegid_args *, register_t *);
2640
2641 int sys_seteuid(struct lwp *, const struct sys_seteuid_args *, register_t *);
2642
2643 #if defined(LFS) || !defined(_KERNEL)
2644 int sys_lfs_bmapv(struct lwp *, const struct sys_lfs_bmapv_args *, register_t *);
2645
2646 int sys_lfs_markv(struct lwp *, const struct sys_lfs_markv_args *, register_t *);
2647
2648 int sys_lfs_segclean(struct lwp *, const struct sys_lfs_segclean_args *, register_t *);
2649
2650 int sys_lfs_segwait(struct lwp *, const struct sys_lfs_segwait_args *, register_t *);
2651
2652 #else
2653 #endif
2654 int compat_12_sys_stat(struct lwp *, const struct compat_12_sys_stat_args *, register_t *);
2655
2656 int compat_12_sys_fstat(struct lwp *, const struct compat_12_sys_fstat_args *, register_t *);
2657
2658 int compat_12_sys_lstat(struct lwp *, const struct compat_12_sys_lstat_args *, register_t *);
2659
2660 int sys_pathconf(struct lwp *, const struct sys_pathconf_args *, register_t *);
2661
2662 int sys_fpathconf(struct lwp *, const struct sys_fpathconf_args *, register_t *);
2663
2664 int sys_getrlimit(struct lwp *, const struct sys_getrlimit_args *, register_t *);
2665
2666 int sys_setrlimit(struct lwp *, const struct sys_setrlimit_args *, register_t *);
2667
2668 int compat_12_sys_getdirentries(struct lwp *, const struct compat_12_sys_getdirentries_args *, register_t *);
2669
2670 int sys_mmap(struct lwp *, const struct sys_mmap_args *, register_t *);
2671
2672 int sys___syscall(struct lwp *, const struct sys___syscall_args *, register_t *);
2673
2674 int sys_lseek(struct lwp *, const struct sys_lseek_args *, register_t *);
2675
2676 int sys_truncate(struct lwp *, const struct sys_truncate_args *, register_t *);
2677
2678 int sys_ftruncate(struct lwp *, const struct sys_ftruncate_args *, register_t *);
2679
2680 int sys___sysctl(struct lwp *, const struct sys___sysctl_args *, register_t *);
2681
2682 int sys_mlock(struct lwp *, const struct sys_mlock_args *, register_t *);
2683
2684 int sys_munlock(struct lwp *, const struct sys_munlock_args *, register_t *);
2685
2686 int sys_undelete(struct lwp *, const struct sys_undelete_args *, register_t *);
2687
2688 int sys_futimes(struct lwp *, const struct sys_futimes_args *, register_t *);
2689
2690 int sys_getpgid(struct lwp *, const struct sys_getpgid_args *, register_t *);
2691
2692 int sys_reboot(struct lwp *, const struct sys_reboot_args *, register_t *);
2693
2694 int sys_poll(struct lwp *, const struct sys_poll_args *, register_t *);
2695
2696 #if defined(LKM) || !defined(_KERNEL)
2697 int sys_lkmnosys(struct lwp *, const void *, register_t *);
2698
2699 #else /* !LKM */
2700 #endif /* !LKM */
2701 #if defined(SYSVSEM) || !defined(_KERNEL)
2702 int compat_14_sys___semctl(struct lwp *, const struct compat_14_sys___semctl_args *, register_t *);
2703
2704 int sys_semget(struct lwp *, const struct sys_semget_args *, register_t *);
2705
2706 int sys_semop(struct lwp *, const struct sys_semop_args *, register_t *);
2707
2708 int sys_semconfig(struct lwp *, const struct sys_semconfig_args *, register_t *);
2709
2710 #else
2711 #endif
2712 #if defined(SYSVMSG) || !defined(_KERNEL)
2713 int compat_14_sys_msgctl(struct lwp *, const struct compat_14_sys_msgctl_args *, register_t *);
2714
2715 int sys_msgget(struct lwp *, const struct sys_msgget_args *, register_t *);
2716
2717 int sys_msgsnd(struct lwp *, const struct sys_msgsnd_args *, register_t *);
2718
2719 int sys_msgrcv(struct lwp *, const struct sys_msgrcv_args *, register_t *);
2720
2721 #else
2722 #endif
2723 #if defined(SYSVSHM) || !defined(_KERNEL)
2724 int sys_shmat(struct lwp *, const struct sys_shmat_args *, register_t *);
2725
2726 int compat_14_sys_shmctl(struct lwp *, const struct compat_14_sys_shmctl_args *, register_t *);
2727
2728 int sys_shmdt(struct lwp *, const struct sys_shmdt_args *, register_t *);
2729
2730 int sys_shmget(struct lwp *, const struct sys_shmget_args *, register_t *);
2731
2732 #else
2733 #endif
2734 int sys_clock_gettime(struct lwp *, const struct sys_clock_gettime_args *, register_t *);
2735
2736 int sys_clock_settime(struct lwp *, const struct sys_clock_settime_args *, register_t *);
2737
2738 int sys_clock_getres(struct lwp *, const struct sys_clock_getres_args *, register_t *);
2739
2740 int sys_timer_create(struct lwp *, const struct sys_timer_create_args *, register_t *);
2741
2742 int sys_timer_delete(struct lwp *, const struct sys_timer_delete_args *, register_t *);
2743
2744 int sys_timer_settime(struct lwp *, const struct sys_timer_settime_args *, register_t *);
2745
2746 int sys_timer_gettime(struct lwp *, const struct sys_timer_gettime_args *, register_t *);
2747
2748 int sys_timer_getoverrun(struct lwp *, const struct sys_timer_getoverrun_args *, register_t *);
2749
2750 int sys_nanosleep(struct lwp *, const struct sys_nanosleep_args *, register_t *);
2751
2752 int sys_fdatasync(struct lwp *, const struct sys_fdatasync_args *, register_t *);
2753
2754 int sys_mlockall(struct lwp *, const struct sys_mlockall_args *, register_t *);
2755
2756 int sys_munlockall(struct lwp *, const void *, register_t *);
2757
2758 int sys___sigtimedwait(struct lwp *, const struct sys___sigtimedwait_args *, register_t *);
2759
2760 int sys_modctl(struct lwp *, const struct sys_modctl_args *, register_t *);
2761
2762 #if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
2763 int sys__ksem_init(struct lwp *, const struct sys__ksem_init_args *, register_t *);
2764
2765 int sys__ksem_open(struct lwp *, const struct sys__ksem_open_args *, register_t *);
2766
2767 int sys__ksem_unlink(struct lwp *, const struct sys__ksem_unlink_args *, register_t *);
2768
2769 int sys__ksem_close(struct lwp *, const struct sys__ksem_close_args *, register_t *);
2770
2771 int sys__ksem_post(struct lwp *, const struct sys__ksem_post_args *, register_t *);
2772
2773 int sys__ksem_wait(struct lwp *, const struct sys__ksem_wait_args *, register_t *);
2774
2775 int sys__ksem_trywait(struct lwp *, const struct sys__ksem_trywait_args *, register_t *);
2776
2777 int sys__ksem_getvalue(struct lwp *, const struct sys__ksem_getvalue_args *, register_t *);
2778
2779 int sys__ksem_destroy(struct lwp *, const struct sys__ksem_destroy_args *, register_t *);
2780
2781 #else
2782 #endif
2783 int sys_mq_open(struct lwp *, const struct sys_mq_open_args *, register_t *);
2784
2785 int sys_mq_close(struct lwp *, const struct sys_mq_close_args *, register_t *);
2786
2787 int sys_mq_unlink(struct lwp *, const struct sys_mq_unlink_args *, register_t *);
2788
2789 int sys_mq_getattr(struct lwp *, const struct sys_mq_getattr_args *, register_t *);
2790
2791 int sys_mq_setattr(struct lwp *, const struct sys_mq_setattr_args *, register_t *);
2792
2793 int sys_mq_notify(struct lwp *, const struct sys_mq_notify_args *, register_t *);
2794
2795 int sys_mq_send(struct lwp *, const struct sys_mq_send_args *, register_t *);
2796
2797 int sys_mq_receive(struct lwp *, const struct sys_mq_receive_args *, register_t *);
2798
2799 int sys_mq_timedsend(struct lwp *, const struct sys_mq_timedsend_args *, register_t *);
2800
2801 int sys_mq_timedreceive(struct lwp *, const struct sys_mq_timedreceive_args *, register_t *);
2802
2803 int sys___posix_rename(struct lwp *, const struct sys___posix_rename_args *, register_t *);
2804
2805 int sys_swapctl(struct lwp *, const struct sys_swapctl_args *, register_t *);
2806
2807 int compat_30_sys_getdents(struct lwp *, const struct compat_30_sys_getdents_args *, register_t *);
2808
2809 int sys_minherit(struct lwp *, const struct sys_minherit_args *, register_t *);
2810
2811 int sys_lchmod(struct lwp *, const struct sys_lchmod_args *, register_t *);
2812
2813 int sys_lchown(struct lwp *, const struct sys_lchown_args *, register_t *);
2814
2815 int sys_lutimes(struct lwp *, const struct sys_lutimes_args *, register_t *);
2816
2817 int sys___msync13(struct lwp *, const struct sys___msync13_args *, register_t *);
2818
2819 int compat_30_sys___stat13(struct lwp *, const struct compat_30_sys___stat13_args *, register_t *);
2820
2821 int compat_30_sys___fstat13(struct lwp *, const struct compat_30_sys___fstat13_args *, register_t *);
2822
2823 int compat_30_sys___lstat13(struct lwp *, const struct compat_30_sys___lstat13_args *, register_t *);
2824
2825 int sys___sigaltstack14(struct lwp *, const struct sys___sigaltstack14_args *, register_t *);
2826
2827 int sys___vfork14(struct lwp *, const void *, register_t *);
2828
2829 int sys___posix_chown(struct lwp *, const struct sys___posix_chown_args *, register_t *);
2830
2831 int sys___posix_fchown(struct lwp *, const struct sys___posix_fchown_args *, register_t *);
2832
2833 int sys___posix_lchown(struct lwp *, const struct sys___posix_lchown_args *, register_t *);
2834
2835 int sys_getsid(struct lwp *, const struct sys_getsid_args *, register_t *);
2836
2837 int sys___clone(struct lwp *, const struct sys___clone_args *, register_t *);
2838
2839 int sys_fktrace(struct lwp *, const struct sys_fktrace_args *, register_t *);
2840
2841 int sys_preadv(struct lwp *, const struct sys_preadv_args *, register_t *);
2842
2843 int sys_pwritev(struct lwp *, const struct sys_pwritev_args *, register_t *);
2844
2845 int compat_16_sys___sigaction14(struct lwp *, const struct compat_16_sys___sigaction14_args *, register_t *);
2846
2847 int sys___sigpending14(struct lwp *, const struct sys___sigpending14_args *, register_t *);
2848
2849 int sys___sigprocmask14(struct lwp *, const struct sys___sigprocmask14_args *, register_t *);
2850
2851 int sys___sigsuspend14(struct lwp *, const struct sys___sigsuspend14_args *, register_t *);
2852
2853 int compat_16_sys___sigreturn14(struct lwp *, const struct compat_16_sys___sigreturn14_args *, register_t *);
2854
2855 int sys___getcwd(struct lwp *, const struct sys___getcwd_args *, register_t *);
2856
2857 int sys_fchroot(struct lwp *, const struct sys_fchroot_args *, register_t *);
2858
2859 int compat_30_sys_fhopen(struct lwp *, const struct compat_30_sys_fhopen_args *, register_t *);
2860
2861 int compat_30_sys_fhstat(struct lwp *, const struct compat_30_sys_fhstat_args *, register_t *);
2862
2863 int compat_20_sys_fhstatfs(struct lwp *, const struct compat_20_sys_fhstatfs_args *, register_t *);
2864
2865 #if defined(SYSVSEM) || !defined(_KERNEL)
2866 int sys_____semctl13(struct lwp *, const struct sys_____semctl13_args *, register_t *);
2867
2868 #else
2869 #endif
2870 #if defined(SYSVMSG) || !defined(_KERNEL)
2871 int sys___msgctl13(struct lwp *, const struct sys___msgctl13_args *, register_t *);
2872
2873 #else
2874 #endif
2875 #if defined(SYSVSHM) || !defined(_KERNEL)
2876 int sys___shmctl13(struct lwp *, const struct sys___shmctl13_args *, register_t *);
2877
2878 #else
2879 #endif
2880 int sys_lchflags(struct lwp *, const struct sys_lchflags_args *, register_t *);
2881
2882 int sys_issetugid(struct lwp *, const void *, register_t *);
2883
2884 int sys_utrace(struct lwp *, const struct sys_utrace_args *, register_t *);
2885
2886 int sys_getcontext(struct lwp *, const struct sys_getcontext_args *, register_t *);
2887
2888 int sys_setcontext(struct lwp *, const struct sys_setcontext_args *, register_t *);
2889
2890 int sys__lwp_create(struct lwp *, const struct sys__lwp_create_args *, register_t *);
2891
2892 int sys__lwp_exit(struct lwp *, const void *, register_t *);
2893
2894 int sys__lwp_self(struct lwp *, const void *, register_t *);
2895
2896 int sys__lwp_wait(struct lwp *, const struct sys__lwp_wait_args *, register_t *);
2897
2898 int sys__lwp_suspend(struct lwp *, const struct sys__lwp_suspend_args *, register_t *);
2899
2900 int sys__lwp_continue(struct lwp *, const struct sys__lwp_continue_args *, register_t *);
2901
2902 int sys__lwp_wakeup(struct lwp *, const struct sys__lwp_wakeup_args *, register_t *);
2903
2904 int sys__lwp_getprivate(struct lwp *, const void *, register_t *);
2905
2906 int sys__lwp_setprivate(struct lwp *, const struct sys__lwp_setprivate_args *, register_t *);
2907
2908 int sys__lwp_kill(struct lwp *, const struct sys__lwp_kill_args *, register_t *);
2909
2910 int sys__lwp_detach(struct lwp *, const struct sys__lwp_detach_args *, register_t *);
2911
2912 int sys__lwp_park(struct lwp *, const struct sys__lwp_park_args *, register_t *);
2913
2914 int sys__lwp_unpark(struct lwp *, const struct sys__lwp_unpark_args *, register_t *);
2915
2916 int sys__lwp_unpark_all(struct lwp *, const struct sys__lwp_unpark_all_args *, register_t *);
2917
2918 int sys__lwp_setname(struct lwp *, const struct sys__lwp_setname_args *, register_t *);
2919
2920 int sys__lwp_getname(struct lwp *, const struct sys__lwp_getname_args *, register_t *);
2921
2922 int sys__lwp_ctl(struct lwp *, const struct sys__lwp_ctl_args *, register_t *);
2923
2924 int sys_sa_register(struct lwp *, const struct sys_sa_register_args *, register_t *);
2925
2926 int sys_sa_stacks(struct lwp *, const struct sys_sa_stacks_args *, register_t *);
2927
2928 int sys_sa_enable(struct lwp *, const void *, register_t *);
2929
2930 int sys_sa_setconcurrency(struct lwp *, const struct sys_sa_setconcurrency_args *, register_t *);
2931
2932 int sys_sa_yield(struct lwp *, const void *, register_t *);
2933
2934 int sys_sa_preempt(struct lwp *, const struct sys_sa_preempt_args *, register_t *);
2935
2936 int sys___sigaction_sigtramp(struct lwp *, const struct sys___sigaction_sigtramp_args *, register_t *);
2937
2938 int sys_pmc_get_info(struct lwp *, const struct sys_pmc_get_info_args *, register_t *);
2939
2940 int sys_pmc_control(struct lwp *, const struct sys_pmc_control_args *, register_t *);
2941
2942 int sys_rasctl(struct lwp *, const struct sys_rasctl_args *, register_t *);
2943
2944 int sys_kqueue(struct lwp *, const void *, register_t *);
2945
2946 int sys_kevent(struct lwp *, const struct sys_kevent_args *, register_t *);
2947
2948 int sys__sched_setparam(struct lwp *, const struct sys__sched_setparam_args *, register_t *);
2949
2950 int sys__sched_getparam(struct lwp *, const struct sys__sched_getparam_args *, register_t *);
2951
2952 int sys__sched_setaffinity(struct lwp *, const struct sys__sched_setaffinity_args *, register_t *);
2953
2954 int sys__sched_getaffinity(struct lwp *, const struct sys__sched_getaffinity_args *, register_t *);
2955
2956 int sys_sched_yield(struct lwp *, const void *, register_t *);
2957
2958 int sys_fsync_range(struct lwp *, const struct sys_fsync_range_args *, register_t *);
2959
2960 int sys_uuidgen(struct lwp *, const struct sys_uuidgen_args *, register_t *);
2961
2962 int sys_getvfsstat(struct lwp *, const struct sys_getvfsstat_args *, register_t *);
2963
2964 int sys_statvfs1(struct lwp *, const struct sys_statvfs1_args *, register_t *);
2965
2966 int sys_fstatvfs1(struct lwp *, const struct sys_fstatvfs1_args *, register_t *);
2967
2968 int compat_30_sys_fhstatvfs1(struct lwp *, const struct compat_30_sys_fhstatvfs1_args *, register_t *);
2969
2970 int sys_extattrctl(struct lwp *, const struct sys_extattrctl_args *, register_t *);
2971
2972 int sys_extattr_set_file(struct lwp *, const struct sys_extattr_set_file_args *, register_t *);
2973
2974 int sys_extattr_get_file(struct lwp *, const struct sys_extattr_get_file_args *, register_t *);
2975
2976 int sys_extattr_delete_file(struct lwp *, const struct sys_extattr_delete_file_args *, register_t *);
2977
2978 int sys_extattr_set_fd(struct lwp *, const struct sys_extattr_set_fd_args *, register_t *);
2979
2980 int sys_extattr_get_fd(struct lwp *, const struct sys_extattr_get_fd_args *, register_t *);
2981
2982 int sys_extattr_delete_fd(struct lwp *, const struct sys_extattr_delete_fd_args *, register_t *);
2983
2984 int sys_extattr_set_link(struct lwp *, const struct sys_extattr_set_link_args *, register_t *);
2985
2986 int sys_extattr_get_link(struct lwp *, const struct sys_extattr_get_link_args *, register_t *);
2987
2988 int sys_extattr_delete_link(struct lwp *, const struct sys_extattr_delete_link_args *, register_t *);
2989
2990 int sys_extattr_list_fd(struct lwp *, const struct sys_extattr_list_fd_args *, register_t *);
2991
2992 int sys_extattr_list_file(struct lwp *, const struct sys_extattr_list_file_args *, register_t *);
2993
2994 int sys_extattr_list_link(struct lwp *, const struct sys_extattr_list_link_args *, register_t *);
2995
2996 int sys_pselect(struct lwp *, const struct sys_pselect_args *, register_t *);
2997
2998 int sys_pollts(struct lwp *, const struct sys_pollts_args *, register_t *);
2999
3000 int sys_setxattr(struct lwp *, const struct sys_setxattr_args *, register_t *);
3001
3002 int sys_lsetxattr(struct lwp *, const struct sys_lsetxattr_args *, register_t *);
3003
3004 int sys_fsetxattr(struct lwp *, const struct sys_fsetxattr_args *, register_t *);
3005
3006 int sys_getxattr(struct lwp *, const struct sys_getxattr_args *, register_t *);
3007
3008 int sys_lgetxattr(struct lwp *, const struct sys_lgetxattr_args *, register_t *);
3009
3010 int sys_fgetxattr(struct lwp *, const struct sys_fgetxattr_args *, register_t *);
3011
3012 int sys_listxattr(struct lwp *, const struct sys_listxattr_args *, register_t *);
3013
3014 int sys_llistxattr(struct lwp *, const struct sys_llistxattr_args *, register_t *);
3015
3016 int sys_flistxattr(struct lwp *, const struct sys_flistxattr_args *, register_t *);
3017
3018 int sys_removexattr(struct lwp *, const struct sys_removexattr_args *, register_t *);
3019
3020 int sys_lremovexattr(struct lwp *, const struct sys_lremovexattr_args *, register_t *);
3021
3022 int sys_fremovexattr(struct lwp *, const struct sys_fremovexattr_args *, register_t *);
3023
3024 int sys___stat30(struct lwp *, const struct sys___stat30_args *, register_t *);
3025
3026 int sys___fstat30(struct lwp *, const struct sys___fstat30_args *, register_t *);
3027
3028 int sys___lstat30(struct lwp *, const struct sys___lstat30_args *, register_t *);
3029
3030 int sys___getdents30(struct lwp *, const struct sys___getdents30_args *, register_t *);
3031
3032 int compat_30_sys___fhstat30(struct lwp *, const struct compat_30_sys___fhstat30_args *, register_t *);
3033
3034 int sys___ntp_gettime30(struct lwp *, const struct sys___ntp_gettime30_args *, register_t *);
3035
3036 int sys___socket30(struct lwp *, const struct sys___socket30_args *, register_t *);
3037
3038 int sys___getfh30(struct lwp *, const struct sys___getfh30_args *, register_t *);
3039
3040 int sys___fhopen40(struct lwp *, const struct sys___fhopen40_args *, register_t *);
3041
3042 int sys___fhstatvfs140(struct lwp *, const struct sys___fhstatvfs140_args *, register_t *);
3043
3044 int sys___fhstat40(struct lwp *, const struct sys___fhstat40_args *, register_t *);
3045
3046 int sys_aio_cancel(struct lwp *, const struct sys_aio_cancel_args *, register_t *);
3047
3048 int sys_aio_error(struct lwp *, const struct sys_aio_error_args *, register_t *);
3049
3050 int sys_aio_fsync(struct lwp *, const struct sys_aio_fsync_args *, register_t *);
3051
3052 int sys_aio_read(struct lwp *, const struct sys_aio_read_args *, register_t *);
3053
3054 int sys_aio_return(struct lwp *, const struct sys_aio_return_args *, register_t *);
3055
3056 int sys_aio_suspend(struct lwp *, const struct sys_aio_suspend_args *, register_t *);
3057
3058 int sys_aio_write(struct lwp *, const struct sys_aio_write_args *, register_t *);
3059
3060 int sys_lio_listio(struct lwp *, const struct sys_lio_listio_args *, register_t *);
3061
3062 int sys___mount50(struct lwp *, const struct sys___mount50_args *, register_t *);
3063
3064 int sys_mremap(struct lwp *, const struct sys_mremap_args *, register_t *);
3065
3066 int sys_pset_create(struct lwp *, const struct sys_pset_create_args *, register_t *);
3067
3068 int sys_pset_destroy(struct lwp *, const struct sys_pset_destroy_args *, register_t *);
3069
3070 int sys_pset_assign(struct lwp *, const struct sys_pset_assign_args *, register_t *);
3071
3072 int sys__pset_bind(struct lwp *, const struct sys__pset_bind_args *, register_t *);
3073
3074 int sys___posix_fadvise50(struct lwp *, const struct sys___posix_fadvise50_args *, register_t *);
3075
3076 #endif /* _SYS_SYSCALLARGS_H_ */
Cache object: fb465a146189a9c214dda42bb94e18d5
|