4 * System call argument lists.
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.34 2009/11/24 10:42:43 njoly Exp
10 #ifndef _LINUX_SYS_SYSCALLARGS_H_
11 #define _LINUX_SYS_SYSCALLARGS_H_
13 #define LINUX_SYS_MAXSYSARGS 8
16 #define syscallarg(x) \
19 struct { x datum; } le; \
20 struct { /* LINTED zero array dimension */ \
21 int8_t pad[ /* CONSTCOND */ \
22 (sizeof (register_t) < sizeof (x)) \
24 : sizeof (register_t) - sizeof (x)]; \
29 #undef check_syscall_args
30 #define check_syscall_args(call) \
31 typedef char call##_check_args[sizeof (struct call##_args) \
32 <= LINUX_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1];
36 struct sys_write_args
;
38 struct linux_sys_open_args
{
39 syscallarg(const char *) path
;
40 syscallarg(int) flags
;
43 check_syscall_args(linux_sys_open
)
45 struct sys_close_args
;
47 struct linux_sys_stat64_args
{
48 syscallarg(const char *) path
;
49 syscallarg(struct linux_stat64
*) sp
;
51 check_syscall_args(linux_sys_stat64
)
53 struct linux_sys_fstat64_args
{
55 syscallarg(struct linux_stat64
*) sp
;
57 check_syscall_args(linux_sys_fstat64
)
59 struct linux_sys_lstat64_args
{
60 syscallarg(const char *) path
;
61 syscallarg(struct linux_stat64
*) sp
;
63 check_syscall_args(linux_sys_lstat64
)
67 struct compat_43_sys_lseek_args
;
69 struct linux_sys_mmap_args
;
71 struct linux_sys_mprotect_args
{
72 syscallarg(const void *) start
;
73 syscallarg(unsigned long) len
;
76 check_syscall_args(linux_sys_mprotect
)
78 struct sys_munmap_args
;
80 struct linux_sys_brk_args
{
81 syscallarg(char *) nsize
;
83 check_syscall_args(linux_sys_brk
)
85 struct linux_sys_rt_sigaction_args
{
86 syscallarg(int) signum
;
87 syscallarg(const struct linux_sigaction
*) nsa
;
88 syscallarg(struct linux_sigaction
*) osa
;
89 syscallarg(size_t) sigsetsize
;
91 check_syscall_args(linux_sys_rt_sigaction
)
93 struct linux_sys_rt_sigprocmask_args
{
95 syscallarg(const linux_sigset_t
*) set
;
96 syscallarg(linux_sigset_t
*) oset
;
97 syscallarg(size_t) sigsetsize
;
99 check_syscall_args(linux_sys_rt_sigprocmask
)
101 struct linux_sys_ioctl_args
{
103 syscallarg(u_long
) com
;
104 syscallarg(void *) data
;
106 check_syscall_args(linux_sys_ioctl
)
108 struct linux_sys_pread_args
{
110 syscallarg(char *) buf
;
111 syscallarg(size_t) nbyte
;
112 syscallarg(linux_off_t
) offset
;
114 check_syscall_args(linux_sys_pread
)
116 struct linux_sys_pwrite_args
{
118 syscallarg(char *) buf
;
119 syscallarg(size_t) nbyte
;
120 syscallarg(linux_off_t
) offset
;
122 check_syscall_args(linux_sys_pwrite
)
124 struct sys_readv_args
;
126 struct sys_writev_args
;
128 struct sys_access_args
;
130 struct linux_sys_pipe_args
{
131 syscallarg(int *) pfds
;
133 check_syscall_args(linux_sys_pipe
)
135 struct linux_sys_select_args
{
136 syscallarg(int) nfds
;
137 syscallarg(fd_set
*) readfds
;
138 syscallarg(fd_set
*) writefds
;
139 syscallarg(fd_set
*) exceptfds
;
140 syscallarg(struct timeval50
*) timeout
;
142 check_syscall_args(linux_sys_select
)
144 struct linux_sys_mremap_args
{
145 syscallarg(void *) old_address
;
146 syscallarg(size_t) old_size
;
147 syscallarg(size_t) new_size
;
148 syscallarg(u_long
) flags
;
150 check_syscall_args(linux_sys_mremap
)
152 struct sys___msync13_args
;
154 struct sys_mincore_args
;
156 struct sys_madvise_args
;
159 struct linux_sys_shmget_args
;
161 struct sys_shmat_args
;
163 struct linux_sys_shmctl_args
;
169 struct sys_dup2_args
;
171 struct linux_sys_nanosleep_args
{
172 syscallarg(const struct linux_timespec
*) rqtp
;
173 syscallarg(struct linux_timespec
*) rmtp
;
175 check_syscall_args(linux_sys_nanosleep
)
177 struct compat_50_sys_getitimer_args
;
179 struct linux_sys_alarm_args
{
180 syscallarg(unsigned int) secs
;
182 check_syscall_args(linux_sys_alarm
)
184 struct compat_50_sys_setitimer_args
;
186 struct linux_sys_socket_args
{
187 syscallarg(int) domain
;
188 syscallarg(int) type
;
189 syscallarg(int) protocol
;
191 check_syscall_args(linux_sys_socket
)
193 struct linux_sys_connect_args
{
195 syscallarg(const struct osockaddr
*) name
;
196 syscallarg(unsigned int) namelen
;
198 check_syscall_args(linux_sys_connect
)
200 struct linux_sys_accept_args
{
202 syscallarg(struct osockaddr
*) name
;
203 syscallarg(int *) anamelen
;
205 check_syscall_args(linux_sys_accept
)
207 struct linux_sys_sendto_args
{
209 syscallarg(void *) msg
;
211 syscallarg(int) flags
;
212 syscallarg(struct osockaddr
*) to
;
213 syscallarg(int) tolen
;
215 check_syscall_args(linux_sys_sendto
)
217 struct linux_sys_recvfrom_args
{
219 syscallarg(void *) buf
;
220 syscallarg(size_t) len
;
221 syscallarg(int) flags
;
222 syscallarg(struct osockaddr
*) from
;
223 syscallarg(unsigned int *) fromlenaddr
;
225 check_syscall_args(linux_sys_recvfrom
)
227 struct linux_sys_sendmsg_args
{
229 syscallarg(const struct linux_msghdr
*) msg
;
230 syscallarg(int) flags
;
232 check_syscall_args(linux_sys_sendmsg
)
234 struct linux_sys_recvmsg_args
{
236 syscallarg(struct linux_msghdr
*) msg
;
237 syscallarg(int) flags
;
239 check_syscall_args(linux_sys_recvmsg
)
241 struct sys_shutdown_args
;
243 struct linux_sys_bind_args
{
245 syscallarg(const struct osockaddr
*) name
;
246 syscallarg(unsigned int) namelen
;
248 check_syscall_args(linux_sys_bind
)
250 struct sys_listen_args
;
252 struct linux_sys_getsockname_args
{
253 syscallarg(int) fdec
;
254 syscallarg(void *) asa
;
255 syscallarg(int *) alen
;
257 check_syscall_args(linux_sys_getsockname
)
259 struct linux_sys_getpeername_args
{
260 syscallarg(int) fdes
;
261 syscallarg(struct sockaddr
*) asa
;
262 syscallarg(unsigned int *) alen
;
264 check_syscall_args(linux_sys_getpeername
)
266 struct linux_sys_socketpair_args
{
267 syscallarg(int) domain
;
268 syscallarg(int) type
;
269 syscallarg(int) protocol
;
270 syscallarg(int *) rsv
;
272 check_syscall_args(linux_sys_socketpair
)
274 struct linux_sys_setsockopt_args
{
276 syscallarg(int) level
;
277 syscallarg(int) optname
;
278 syscallarg(void *) optval
;
279 syscallarg(int) optlen
;
281 check_syscall_args(linux_sys_setsockopt
)
283 struct linux_sys_getsockopt_args
{
285 syscallarg(int) level
;
286 syscallarg(int) optname
;
287 syscallarg(void *) optval
;
288 syscallarg(int *) optlen
;
290 check_syscall_args(linux_sys_getsockopt
)
292 struct linux_sys_clone_args
{
293 syscallarg(int) flags
;
294 syscallarg(void *) stack
;
295 syscallarg(void *) parent_tidptr
;
296 syscallarg(void *) child_tidptr
;
298 check_syscall_args(linux_sys_clone
)
300 struct sys_execve_args
;
302 struct sys_exit_args
;
304 struct linux_sys_wait4_args
{
306 syscallarg(int *) status
;
307 syscallarg(int) options
;
308 syscallarg(struct rusage50
*) rusage
;
310 check_syscall_args(linux_sys_wait4
)
312 struct linux_sys_kill_args
{
314 syscallarg(int) signum
;
316 check_syscall_args(linux_sys_kill
)
318 struct linux_sys_uname_args
{
319 syscallarg(struct linux_utsname
*) up
;
321 check_syscall_args(linux_sys_uname
)
324 struct sys_semget_args
;
326 struct sys_semop_args
;
328 struct linux_sys_semctl_args
{
329 syscallarg(int) semid
;
330 syscallarg(int) semnum
;
332 syscallarg(union linux_semun
) arg
;
334 check_syscall_args(linux_sys_semctl
)
339 struct sys_shmdt_args
;
344 struct sys_msgget_args
;
346 struct sys_msgsnd_args
;
348 struct sys_msgrcv_args
;
350 struct linux_sys_msgctl_args
;
354 struct linux_sys_fcntl_args
{
357 syscallarg(void *) arg
;
359 check_syscall_args(linux_sys_fcntl
)
361 struct sys_flock_args
;
363 struct sys_fsync_args
;
365 struct linux_sys_fdatasync_args
{
368 check_syscall_args(linux_sys_fdatasync
)
370 struct linux_sys_truncate64_args
{
371 syscallarg(const char *) path
;
372 syscallarg(off_t
) length
;
374 check_syscall_args(linux_sys_truncate64
)
376 struct linux_sys_ftruncate64_args
{
377 syscallarg(unsigned int) fd
;
378 syscallarg(off_t
) length
;
380 check_syscall_args(linux_sys_ftruncate64
)
382 struct linux_sys_getdents_args
{
384 syscallarg(struct linux_dirent
*) dent
;
385 syscallarg(unsigned int) count
;
387 check_syscall_args(linux_sys_getdents
)
389 struct sys___getcwd_args
;
391 struct sys_chdir_args
;
393 struct sys_fchdir_args
;
395 struct sys___posix_rename_args
;
397 struct sys_mkdir_args
;
399 struct sys_rmdir_args
;
401 struct linux_sys_creat_args
{
402 syscallarg(const char *) path
;
403 syscallarg(int) mode
;
405 check_syscall_args(linux_sys_creat
)
407 struct sys_link_args
;
409 struct linux_sys_unlink_args
{
410 syscallarg(const char *) path
;
412 check_syscall_args(linux_sys_unlink
)
414 struct sys_symlink_args
;
416 struct sys_readlink_args
;
418 struct sys_chmod_args
;
420 struct sys_fchmod_args
;
422 struct sys___posix_chown_args
;
424 struct sys___posix_fchown_args
;
426 struct sys___posix_lchown_args
;
428 struct sys_umask_args
;
430 struct linux_sys_gettimeofday_args
{
431 syscallarg(struct timeval50
*) tp
;
432 syscallarg(struct timezone
*) tzp
;
434 check_syscall_args(linux_sys_gettimeofday
)
436 struct linux_sys_getrlimit_args
{
437 syscallarg(int) which
;
438 syscallarg(struct rlimit
*) rlp
;
440 check_syscall_args(linux_sys_getrlimit
)
442 struct compat_50_sys_getrusage_args
;
444 struct linux_sys_sysinfo_args
{
445 syscallarg(struct linux_sysinfo
*) arg
;
447 check_syscall_args(linux_sys_sysinfo
)
449 struct linux_sys_times_args
{
450 syscallarg(struct times
*) tms
;
452 check_syscall_args(linux_sys_times
)
454 struct linux_sys_ptrace_args
{
455 syscallarg(long) request
;
456 syscallarg(long) pid
;
457 syscallarg(long) addr
;
458 syscallarg(long) data
;
460 check_syscall_args(linux_sys_ptrace
)
462 struct sys_setuid_args
;
464 struct sys_setgid_args
;
466 struct sys_setpgid_args
;
468 struct sys_setreuid_args
;
470 struct sys_setregid_args
;
472 struct sys_getgroups_args
;
474 struct sys_setgroups_args
;
476 struct linux_sys_setresuid_args
{
477 syscallarg(uid_t
) ruid
;
478 syscallarg(uid_t
) euid
;
479 syscallarg(uid_t
) suid
;
481 check_syscall_args(linux_sys_setresuid
)
483 struct linux_sys_getresuid_args
{
484 syscallarg(uid_t
*) ruid
;
485 syscallarg(uid_t
*) euid
;
486 syscallarg(uid_t
*) suid
;
488 check_syscall_args(linux_sys_getresuid
)
490 struct linux_sys_setresgid_args
{
491 syscallarg(gid_t
) rgid
;
492 syscallarg(gid_t
) egid
;
493 syscallarg(gid_t
) sgid
;
495 check_syscall_args(linux_sys_setresgid
)
497 struct linux_sys_getresgid_args
{
498 syscallarg(gid_t
*) rgid
;
499 syscallarg(gid_t
*) egid
;
500 syscallarg(gid_t
*) sgid
;
502 check_syscall_args(linux_sys_getresgid
)
504 struct sys_getpgid_args
;
506 struct linux_sys_setfsuid_args
{
507 syscallarg(uid_t
) uid
;
509 check_syscall_args(linux_sys_setfsuid
)
511 struct linux_sys_setfsgid_args
{
512 syscallarg(gid_t
) gid
;
514 check_syscall_args(linux_sys_setfsgid
)
516 struct sys_getsid_args
;
518 struct linux_sys_rt_sigpending_args
{
519 syscallarg(linux_sigset_t
*) set
;
520 syscallarg(size_t) sigsetsize
;
522 check_syscall_args(linux_sys_rt_sigpending
)
524 struct linux_sys_rt_queueinfo_args
{
526 syscallarg(int) signum
;
527 syscallarg(linux_siginfo_t
*) uinfo
;
529 check_syscall_args(linux_sys_rt_queueinfo
)
531 struct linux_sys_rt_sigsuspend_args
{
532 syscallarg(linux_sigset_t
*) unewset
;
533 syscallarg(size_t) sigsetsize
;
535 check_syscall_args(linux_sys_rt_sigsuspend
)
537 struct linux_sys_sigaltstack_args
{
538 syscallarg(const struct linux_sigaltstack
*) ss
;
539 syscallarg(struct linux_sigaltstack
*) oss
;
541 check_syscall_args(linux_sys_sigaltstack
)
543 struct linux_sys_utime_args
{
544 syscallarg(const char *) path
;
545 syscallarg(struct linux_utimbuf
*) times
;
547 check_syscall_args(linux_sys_utime
)
549 struct linux_sys_mknod_args
{
550 syscallarg(const char *) path
;
551 syscallarg(int) mode
;
554 check_syscall_args(linux_sys_mknod
)
557 struct linux_sys_uselib_args
{
558 syscallarg(const char *) path
;
560 check_syscall_args(linux_sys_uselib
)
564 struct linux_sys_personality_args
{
565 syscallarg(unsigned long) per
;
567 check_syscall_args(linux_sys_personality
)
569 struct linux_sys_statfs_args
{
570 syscallarg(const char *) path
;
571 syscallarg(struct linux_statfs
*) sp
;
573 check_syscall_args(linux_sys_statfs
)
575 struct linux_sys_fstatfs_args
{
577 syscallarg(struct linux_statfs
*) sp
;
579 check_syscall_args(linux_sys_fstatfs
)
581 struct linux_sys_getpriority_args
{
582 syscallarg(int) which
;
585 check_syscall_args(linux_sys_getpriority
)
587 struct sys_setpriority_args
;
589 struct linux_sys_sched_setparam_args
{
590 syscallarg(pid_t
) pid
;
591 syscallarg(const struct linux_sched_param
*) sp
;
593 check_syscall_args(linux_sys_sched_setparam
)
595 struct linux_sys_sched_getparam_args
{
596 syscallarg(pid_t
) pid
;
597 syscallarg(struct linux_sched_param
*) sp
;
599 check_syscall_args(linux_sys_sched_getparam
)
601 struct linux_sys_sched_setscheduler_args
{
602 syscallarg(pid_t
) pid
;
603 syscallarg(int) policy
;
604 syscallarg(const struct linux_sched_param
*) sp
;
606 check_syscall_args(linux_sys_sched_setscheduler
)
608 struct linux_sys_sched_getscheduler_args
{
609 syscallarg(pid_t
) pid
;
611 check_syscall_args(linux_sys_sched_getscheduler
)
613 struct linux_sys_sched_get_priority_max_args
{
614 syscallarg(int) policy
;
616 check_syscall_args(linux_sys_sched_get_priority_max
)
618 struct linux_sys_sched_get_priority_min_args
{
619 syscallarg(int) policy
;
621 check_syscall_args(linux_sys_sched_get_priority_min
)
623 struct sys_mlock_args
;
625 struct sys_munlock_args
;
627 struct sys_mlockall_args
;
629 struct linux_sys_modify_ldt_args
{
630 syscallarg(int) func
;
631 syscallarg(void *) ptr
;
632 syscallarg(size_t) bytecount
;
634 check_syscall_args(linux_sys_modify_ldt
)
636 struct linux_sys___sysctl_args
{
637 syscallarg(struct linux___sysctl
*) lsp
;
639 check_syscall_args(linux_sys___sysctl
)
641 struct linux_sys_arch_prctl_args
{
642 syscallarg(int) code
;
643 syscallarg(unsigned long) addr
;
645 check_syscall_args(linux_sys_arch_prctl
)
647 struct linux_sys_setrlimit_args
{
648 syscallarg(u_int
) which
;
649 syscallarg(struct rlimit
*) rlp
;
651 check_syscall_args(linux_sys_setrlimit
)
653 struct sys_chroot_args
;
655 struct sys_acct_args
;
657 struct linux_sys_settimeofday_args
{
658 syscallarg(struct timeval50
*) tp
;
659 syscallarg(struct timezone
*) tzp
;
661 check_syscall_args(linux_sys_settimeofday
)
663 struct linux_sys_swapon_args
{
664 syscallarg(char *) name
;
666 check_syscall_args(linux_sys_swapon
)
668 struct linux_sys_swapoff_args
{
669 syscallarg(const char *) path
;
671 check_syscall_args(linux_sys_swapoff
)
673 struct linux_sys_reboot_args
{
674 syscallarg(int) magic1
;
675 syscallarg(int) magic2
;
677 syscallarg(void *) arg
;
679 check_syscall_args(linux_sys_reboot
)
681 struct compat_43_sys_sethostname_args
;
683 struct linux_sys_setdomainname_args
{
684 syscallarg(char *) domainname
;
687 check_syscall_args(linux_sys_setdomainname
)
689 struct linux_sys_iopl_args
{
690 syscallarg(int) level
;
692 check_syscall_args(linux_sys_iopl
)
694 struct linux_sys_ioperm_args
{
695 syscallarg(unsigned int) lo
;
696 syscallarg(unsigned int) hi
;
699 check_syscall_args(linux_sys_ioperm
)
701 struct linux_sys_setxattr_args
{
702 syscallarg(char *) path
;
703 syscallarg(char *) name
;
704 syscallarg(void *) value
;
705 syscallarg(size_t) size
;
706 syscallarg(int) flags
;
708 check_syscall_args(linux_sys_setxattr
)
710 struct linux_sys_lsetxattr_args
{
711 syscallarg(char *) path
;
712 syscallarg(char *) name
;
713 syscallarg(void *) value
;
714 syscallarg(size_t) size
;
715 syscallarg(int) flags
;
717 check_syscall_args(linux_sys_lsetxattr
)
719 struct linux_sys_fsetxattr_args
{
721 syscallarg(char *) name
;
722 syscallarg(void *) value
;
723 syscallarg(size_t) size
;
724 syscallarg(int) flags
;
726 check_syscall_args(linux_sys_fsetxattr
)
728 struct linux_sys_getxattr_args
{
729 syscallarg(char *) path
;
730 syscallarg(char *) name
;
731 syscallarg(void *) value
;
732 syscallarg(size_t) size
;
734 check_syscall_args(linux_sys_getxattr
)
736 struct linux_sys_lgetxattr_args
{
737 syscallarg(char *) path
;
738 syscallarg(char *) name
;
739 syscallarg(void *) value
;
740 syscallarg(size_t) size
;
742 check_syscall_args(linux_sys_lgetxattr
)
744 struct linux_sys_fgetxattr_args
{
746 syscallarg(char *) name
;
747 syscallarg(void *) value
;
748 syscallarg(size_t) size
;
750 check_syscall_args(linux_sys_fgetxattr
)
752 struct linux_sys_listxattr_args
{
753 syscallarg(char *) path
;
754 syscallarg(char *) list
;
755 syscallarg(size_t) size
;
757 check_syscall_args(linux_sys_listxattr
)
759 struct linux_sys_llistxattr_args
{
760 syscallarg(char *) path
;
761 syscallarg(char *) list
;
762 syscallarg(size_t) size
;
764 check_syscall_args(linux_sys_llistxattr
)
766 struct linux_sys_flistxattr_args
{
768 syscallarg(char *) list
;
769 syscallarg(size_t) size
;
771 check_syscall_args(linux_sys_flistxattr
)
773 struct linux_sys_removexattr_args
{
774 syscallarg(char *) path
;
775 syscallarg(char *) name
;
777 check_syscall_args(linux_sys_removexattr
)
779 struct linux_sys_lremovexattr_args
{
780 syscallarg(char *) path
;
781 syscallarg(char *) name
;
783 check_syscall_args(linux_sys_lremovexattr
)
785 struct linux_sys_fremovexattr_args
{
787 syscallarg(char *) name
;
789 check_syscall_args(linux_sys_fremovexattr
)
791 struct linux_sys_tkill_args
{
795 check_syscall_args(linux_sys_tkill
)
797 struct linux_sys_time_args
{
798 syscallarg(linux_time_t
*) t
;
800 check_syscall_args(linux_sys_time
)
802 struct linux_sys_futex_args
{
803 syscallarg(int *) uaddr
;
806 syscallarg(const struct linux_timespec
*) timeout
;
807 syscallarg(int *) uaddr2
;
808 syscallarg(int) val3
;
810 check_syscall_args(linux_sys_futex
)
812 struct linux_sys_sched_setaffinity_args
{
813 syscallarg(pid_t
) pid
;
814 syscallarg(unsigned int) len
;
815 syscallarg(unsigned long *) mask
;
817 check_syscall_args(linux_sys_sched_setaffinity
)
819 struct linux_sys_sched_getaffinity_args
{
820 syscallarg(pid_t
) pid
;
821 syscallarg(unsigned int) len
;
822 syscallarg(unsigned long *) mask
;
824 check_syscall_args(linux_sys_sched_getaffinity
)
826 struct linux_sys_getdents64_args
{
828 syscallarg(struct linux_dirent64
*) dent
;
829 syscallarg(unsigned int) count
;
831 check_syscall_args(linux_sys_getdents64
)
833 struct linux_sys_set_tid_address_args
{
834 syscallarg(int *) tid
;
836 check_syscall_args(linux_sys_set_tid_address
)
838 struct linux_sys_clock_settime_args
{
839 syscallarg(clockid_t
) which
;
840 syscallarg(struct linux_timespec
*) tp
;
842 check_syscall_args(linux_sys_clock_settime
)
844 struct linux_sys_clock_gettime_args
{
845 syscallarg(clockid_t
) which
;
846 syscallarg(struct linux_timespec
*) tp
;
848 check_syscall_args(linux_sys_clock_gettime
)
850 struct linux_sys_clock_getres_args
{
851 syscallarg(clockid_t
) which
;
852 syscallarg(struct linux_timespec
*) tp
;
854 check_syscall_args(linux_sys_clock_getres
)
856 struct linux_sys_clock_nanosleep_args
{
857 syscallarg(clockid_t
) which
;
858 syscallarg(int) flags
;
859 syscallarg(struct linux_timespec
*) rqtp
;
860 syscallarg(struct linux_timespec
*) rmtp
;
862 check_syscall_args(linux_sys_clock_nanosleep
)
864 struct linux_sys_exit_group_args
{
865 syscallarg(int) error_code
;
867 check_syscall_args(linux_sys_exit_group
)
869 struct linux_sys_tgkill_args
{
870 syscallarg(int) tgid
;
874 check_syscall_args(linux_sys_tgkill
)
876 struct linux_sys_set_robust_list_args
{
877 syscallarg(struct linux_robust_list_head
*) head
;
878 syscallarg(size_t) len
;
880 check_syscall_args(linux_sys_set_robust_list
)
882 struct linux_sys_get_robust_list_args
{
884 syscallarg(struct linux_robust_list_head
**) head
;
885 syscallarg(size_t *) len
;
887 check_syscall_args(linux_sys_get_robust_list
)
890 * System call prototypes.
893 int sys_read(struct lwp
*, const struct sys_read_args
*, register_t
*);
895 int sys_write(struct lwp
*, const struct sys_write_args
*, register_t
*);
897 int linux_sys_open(struct lwp
*, const struct linux_sys_open_args
*, register_t
*);
899 int sys_close(struct lwp
*, const struct sys_close_args
*, register_t
*);
901 int linux_sys_stat64(struct lwp
*, const struct linux_sys_stat64_args
*, register_t
*);
903 int linux_sys_fstat64(struct lwp
*, const struct linux_sys_fstat64_args
*, register_t
*);
905 int linux_sys_lstat64(struct lwp
*, const struct linux_sys_lstat64_args
*, register_t
*);
907 int sys_poll(struct lwp
*, const struct sys_poll_args
*, register_t
*);
909 int compat_43_sys_lseek(struct lwp
*, const struct compat_43_sys_lseek_args
*, register_t
*);
911 int linux_sys_mmap(struct lwp
*, const struct linux_sys_mmap_args
*, register_t
*);
913 int linux_sys_mprotect(struct lwp
*, const struct linux_sys_mprotect_args
*, register_t
*);
915 int sys_munmap(struct lwp
*, const struct sys_munmap_args
*, register_t
*);
917 int linux_sys_brk(struct lwp
*, const struct linux_sys_brk_args
*, register_t
*);
919 int linux_sys_rt_sigaction(struct lwp
*, const struct linux_sys_rt_sigaction_args
*, register_t
*);
921 int linux_sys_rt_sigprocmask(struct lwp
*, const struct linux_sys_rt_sigprocmask_args
*, register_t
*);
923 int linux_sys_rt_sigreturn(struct lwp
*, const void *, register_t
*);
925 int linux_sys_ioctl(struct lwp
*, const struct linux_sys_ioctl_args
*, register_t
*);
927 int linux_sys_pread(struct lwp
*, const struct linux_sys_pread_args
*, register_t
*);
929 int linux_sys_pwrite(struct lwp
*, const struct linux_sys_pwrite_args
*, register_t
*);
931 int sys_readv(struct lwp
*, const struct sys_readv_args
*, register_t
*);
933 int sys_writev(struct lwp
*, const struct sys_writev_args
*, register_t
*);
935 int sys_access(struct lwp
*, const struct sys_access_args
*, register_t
*);
937 int linux_sys_pipe(struct lwp
*, const struct linux_sys_pipe_args
*, register_t
*);
939 int linux_sys_select(struct lwp
*, const struct linux_sys_select_args
*, register_t
*);
941 int linux_sys_sched_yield(struct lwp
*, const void *, register_t
*);
943 int linux_sys_mremap(struct lwp
*, const struct linux_sys_mremap_args
*, register_t
*);
945 int sys___msync13(struct lwp
*, const struct sys___msync13_args
*, register_t
*);
947 int sys_mincore(struct lwp
*, const struct sys_mincore_args
*, register_t
*);
949 int sys_madvise(struct lwp
*, const struct sys_madvise_args
*, register_t
*);
952 int linux_sys_shmget(struct lwp
*, const struct linux_sys_shmget_args
*, register_t
*);
954 int sys_shmat(struct lwp
*, const struct sys_shmat_args
*, register_t
*);
956 int linux_sys_shmctl(struct lwp
*, const struct linux_sys_shmctl_args
*, register_t
*);
960 int sys_dup(struct lwp
*, const struct sys_dup_args
*, register_t
*);
962 int sys_dup2(struct lwp
*, const struct sys_dup2_args
*, register_t
*);
964 int linux_sys_pause(struct lwp
*, const void *, register_t
*);
966 int linux_sys_nanosleep(struct lwp
*, const struct linux_sys_nanosleep_args
*, register_t
*);
968 int compat_50_sys_getitimer(struct lwp
*, const struct compat_50_sys_getitimer_args
*, register_t
*);
970 int linux_sys_alarm(struct lwp
*, const struct linux_sys_alarm_args
*, register_t
*);
972 int compat_50_sys_setitimer(struct lwp
*, const struct compat_50_sys_setitimer_args
*, register_t
*);
974 int linux_sys_getpid(struct lwp
*, const void *, register_t
*);
976 int linux_sys_socket(struct lwp
*, const struct linux_sys_socket_args
*, register_t
*);
978 int linux_sys_connect(struct lwp
*, const struct linux_sys_connect_args
*, register_t
*);
980 int linux_sys_accept(struct lwp
*, const struct linux_sys_accept_args
*, register_t
*);
982 int linux_sys_sendto(struct lwp
*, const struct linux_sys_sendto_args
*, register_t
*);
984 int linux_sys_recvfrom(struct lwp
*, const struct linux_sys_recvfrom_args
*, register_t
*);
986 int linux_sys_sendmsg(struct lwp
*, const struct linux_sys_sendmsg_args
*, register_t
*);
988 int linux_sys_recvmsg(struct lwp
*, const struct linux_sys_recvmsg_args
*, register_t
*);
990 int sys_shutdown(struct lwp
*, const struct sys_shutdown_args
*, register_t
*);
992 int linux_sys_bind(struct lwp
*, const struct linux_sys_bind_args
*, register_t
*);
994 int sys_listen(struct lwp
*, const struct sys_listen_args
*, register_t
*);
996 int linux_sys_getsockname(struct lwp
*, const struct linux_sys_getsockname_args
*, register_t
*);
998 int linux_sys_getpeername(struct lwp
*, const struct linux_sys_getpeername_args
*, register_t
*);
1000 int linux_sys_socketpair(struct lwp
*, const struct linux_sys_socketpair_args
*, register_t
*);
1002 int linux_sys_setsockopt(struct lwp
*, const struct linux_sys_setsockopt_args
*, register_t
*);
1004 int linux_sys_getsockopt(struct lwp
*, const struct linux_sys_getsockopt_args
*, register_t
*);
1006 int linux_sys_clone(struct lwp
*, const struct linux_sys_clone_args
*, register_t
*);
1008 int sys_fork(struct lwp
*, const void *, register_t
*);
1010 int sys___vfork14(struct lwp
*, const void *, register_t
*);
1012 int sys_execve(struct lwp
*, const struct sys_execve_args
*, register_t
*);
1014 int sys_exit(struct lwp
*, const struct sys_exit_args
*, register_t
*);
1016 int linux_sys_wait4(struct lwp
*, const struct linux_sys_wait4_args
*, register_t
*);
1018 int linux_sys_kill(struct lwp
*, const struct linux_sys_kill_args
*, register_t
*);
1020 int linux_sys_uname(struct lwp
*, const struct linux_sys_uname_args
*, register_t
*);
1023 int sys_semget(struct lwp
*, const struct sys_semget_args
*, register_t
*);
1025 int sys_semop(struct lwp
*, const struct sys_semop_args
*, register_t
*);
1027 int linux_sys_semctl(struct lwp
*, const struct linux_sys_semctl_args
*, register_t
*);
1032 int sys_shmdt(struct lwp
*, const struct sys_shmdt_args
*, register_t
*);
1037 int sys_msgget(struct lwp
*, const struct sys_msgget_args
*, register_t
*);
1039 int sys_msgsnd(struct lwp
*, const struct sys_msgsnd_args
*, register_t
*);
1041 int sys_msgrcv(struct lwp
*, const struct sys_msgrcv_args
*, register_t
*);
1043 int linux_sys_msgctl(struct lwp
*, const struct linux_sys_msgctl_args
*, register_t
*);
1047 int linux_sys_fcntl(struct lwp
*, const struct linux_sys_fcntl_args
*, register_t
*);
1049 int sys_flock(struct lwp
*, const struct sys_flock_args
*, register_t
*);
1051 int sys_fsync(struct lwp
*, const struct sys_fsync_args
*, register_t
*);
1053 int linux_sys_fdatasync(struct lwp
*, const struct linux_sys_fdatasync_args
*, register_t
*);
1055 int linux_sys_truncate64(struct lwp
*, const struct linux_sys_truncate64_args
*, register_t
*);
1057 int linux_sys_ftruncate64(struct lwp
*, const struct linux_sys_ftruncate64_args
*, register_t
*);
1059 int linux_sys_getdents(struct lwp
*, const struct linux_sys_getdents_args
*, register_t
*);
1061 int sys___getcwd(struct lwp
*, const struct sys___getcwd_args
*, register_t
*);
1063 int sys_chdir(struct lwp
*, const struct sys_chdir_args
*, register_t
*);
1065 int sys_fchdir(struct lwp
*, const struct sys_fchdir_args
*, register_t
*);
1067 int sys___posix_rename(struct lwp
*, const struct sys___posix_rename_args
*, register_t
*);
1069 int sys_mkdir(struct lwp
*, const struct sys_mkdir_args
*, register_t
*);
1071 int sys_rmdir(struct lwp
*, const struct sys_rmdir_args
*, register_t
*);
1073 int linux_sys_creat(struct lwp
*, const struct linux_sys_creat_args
*, register_t
*);
1075 int sys_link(struct lwp
*, const struct sys_link_args
*, register_t
*);
1077 int linux_sys_unlink(struct lwp
*, const struct linux_sys_unlink_args
*, register_t
*);
1079 int sys_symlink(struct lwp
*, const struct sys_symlink_args
*, register_t
*);
1081 int sys_readlink(struct lwp
*, const struct sys_readlink_args
*, register_t
*);
1083 int sys_chmod(struct lwp
*, const struct sys_chmod_args
*, register_t
*);
1085 int sys_fchmod(struct lwp
*, const struct sys_fchmod_args
*, register_t
*);
1087 int sys___posix_chown(struct lwp
*, const struct sys___posix_chown_args
*, register_t
*);
1089 int sys___posix_fchown(struct lwp
*, const struct sys___posix_fchown_args
*, register_t
*);
1091 int sys___posix_lchown(struct lwp
*, const struct sys___posix_lchown_args
*, register_t
*);
1093 int sys_umask(struct lwp
*, const struct sys_umask_args
*, register_t
*);
1095 int linux_sys_gettimeofday(struct lwp
*, const struct linux_sys_gettimeofday_args
*, register_t
*);
1097 int linux_sys_getrlimit(struct lwp
*, const struct linux_sys_getrlimit_args
*, register_t
*);
1099 int compat_50_sys_getrusage(struct lwp
*, const struct compat_50_sys_getrusage_args
*, register_t
*);
1101 int linux_sys_sysinfo(struct lwp
*, const struct linux_sys_sysinfo_args
*, register_t
*);
1103 int linux_sys_times(struct lwp
*, const struct linux_sys_times_args
*, register_t
*);
1105 int linux_sys_ptrace(struct lwp
*, const struct linux_sys_ptrace_args
*, register_t
*);
1107 int sys_getuid(struct lwp
*, const void *, register_t
*);
1109 int sys_getgid(struct lwp
*, const void *, register_t
*);
1111 int sys_setuid(struct lwp
*, const struct sys_setuid_args
*, register_t
*);
1113 int sys_setgid(struct lwp
*, const struct sys_setgid_args
*, register_t
*);
1115 int sys_geteuid(struct lwp
*, const void *, register_t
*);
1117 int sys_getegid(struct lwp
*, const void *, register_t
*);
1119 int sys_setpgid(struct lwp
*, const struct sys_setpgid_args
*, register_t
*);
1121 int linux_sys_getppid(struct lwp
*, const void *, register_t
*);
1123 int sys_getpgrp(struct lwp
*, const void *, register_t
*);
1125 int sys_setsid(struct lwp
*, const void *, register_t
*);
1127 int sys_setreuid(struct lwp
*, const struct sys_setreuid_args
*, register_t
*);
1129 int sys_setregid(struct lwp
*, const struct sys_setregid_args
*, register_t
*);
1131 int sys_getgroups(struct lwp
*, const struct sys_getgroups_args
*, register_t
*);
1133 int sys_setgroups(struct lwp
*, const struct sys_setgroups_args
*, register_t
*);
1135 int linux_sys_setresuid(struct lwp
*, const struct linux_sys_setresuid_args
*, register_t
*);
1137 int linux_sys_getresuid(struct lwp
*, const struct linux_sys_getresuid_args
*, register_t
*);
1139 int linux_sys_setresgid(struct lwp
*, const struct linux_sys_setresgid_args
*, register_t
*);
1141 int linux_sys_getresgid(struct lwp
*, const struct linux_sys_getresgid_args
*, register_t
*);
1143 int sys_getpgid(struct lwp
*, const struct sys_getpgid_args
*, register_t
*);
1145 int linux_sys_setfsuid(struct lwp
*, const struct linux_sys_setfsuid_args
*, register_t
*);
1147 int linux_sys_setfsgid(struct lwp
*, const struct linux_sys_setfsgid_args
*, register_t
*);
1149 int sys_getsid(struct lwp
*, const struct sys_getsid_args
*, register_t
*);
1151 int linux_sys_rt_sigpending(struct lwp
*, const struct linux_sys_rt_sigpending_args
*, register_t
*);
1153 int linux_sys_rt_queueinfo(struct lwp
*, const struct linux_sys_rt_queueinfo_args
*, register_t
*);
1155 int linux_sys_rt_sigsuspend(struct lwp
*, const struct linux_sys_rt_sigsuspend_args
*, register_t
*);
1157 int linux_sys_sigaltstack(struct lwp
*, const struct linux_sys_sigaltstack_args
*, register_t
*);
1159 int linux_sys_utime(struct lwp
*, const struct linux_sys_utime_args
*, register_t
*);
1161 int linux_sys_mknod(struct lwp
*, const struct linux_sys_mknod_args
*, register_t
*);
1164 int linux_sys_uselib(struct lwp
*, const struct linux_sys_uselib_args
*, register_t
*);
1168 int linux_sys_personality(struct lwp
*, const struct linux_sys_personality_args
*, register_t
*);
1170 int linux_sys_statfs(struct lwp
*, const struct linux_sys_statfs_args
*, register_t
*);
1172 int linux_sys_fstatfs(struct lwp
*, const struct linux_sys_fstatfs_args
*, register_t
*);
1174 int linux_sys_getpriority(struct lwp
*, const struct linux_sys_getpriority_args
*, register_t
*);
1176 int sys_setpriority(struct lwp
*, const struct sys_setpriority_args
*, register_t
*);
1178 int linux_sys_sched_setparam(struct lwp
*, const struct linux_sys_sched_setparam_args
*, register_t
*);
1180 int linux_sys_sched_getparam(struct lwp
*, const struct linux_sys_sched_getparam_args
*, register_t
*);
1182 int linux_sys_sched_setscheduler(struct lwp
*, const struct linux_sys_sched_setscheduler_args
*, register_t
*);
1184 int linux_sys_sched_getscheduler(struct lwp
*, const struct linux_sys_sched_getscheduler_args
*, register_t
*);
1186 int linux_sys_sched_get_priority_max(struct lwp
*, const struct linux_sys_sched_get_priority_max_args
*, register_t
*);
1188 int linux_sys_sched_get_priority_min(struct lwp
*, const struct linux_sys_sched_get_priority_min_args
*, register_t
*);
1190 int sys_mlock(struct lwp
*, const struct sys_mlock_args
*, register_t
*);
1192 int sys_munlock(struct lwp
*, const struct sys_munlock_args
*, register_t
*);
1194 int sys_mlockall(struct lwp
*, const struct sys_mlockall_args
*, register_t
*);
1196 int sys_munlockall(struct lwp
*, const void *, register_t
*);
1198 int linux_sys_modify_ldt(struct lwp
*, const struct linux_sys_modify_ldt_args
*, register_t
*);
1200 int linux_sys___sysctl(struct lwp
*, const struct linux_sys___sysctl_args
*, register_t
*);
1202 int linux_sys_arch_prctl(struct lwp
*, const struct linux_sys_arch_prctl_args
*, register_t
*);
1204 int linux_sys_setrlimit(struct lwp
*, const struct linux_sys_setrlimit_args
*, register_t
*);
1206 int sys_chroot(struct lwp
*, const struct sys_chroot_args
*, register_t
*);
1208 int sys_sync(struct lwp
*, const void *, register_t
*);
1210 int sys_acct(struct lwp
*, const struct sys_acct_args
*, register_t
*);
1212 int linux_sys_settimeofday(struct lwp
*, const struct linux_sys_settimeofday_args
*, register_t
*);
1214 int linux_sys_swapon(struct lwp
*, const struct linux_sys_swapon_args
*, register_t
*);
1216 int linux_sys_swapoff(struct lwp
*, const struct linux_sys_swapoff_args
*, register_t
*);
1218 int linux_sys_reboot(struct lwp
*, const struct linux_sys_reboot_args
*, register_t
*);
1220 int compat_43_sys_sethostname(struct lwp
*, const struct compat_43_sys_sethostname_args
*, register_t
*);
1222 int linux_sys_setdomainname(struct lwp
*, const struct linux_sys_setdomainname_args
*, register_t
*);
1224 int linux_sys_iopl(struct lwp
*, const struct linux_sys_iopl_args
*, register_t
*);
1226 int linux_sys_ioperm(struct lwp
*, const struct linux_sys_ioperm_args
*, register_t
*);
1228 int linux_sys_gettid(struct lwp
*, const void *, register_t
*);
1230 int linux_sys_setxattr(struct lwp
*, const struct linux_sys_setxattr_args
*, register_t
*);
1232 int linux_sys_lsetxattr(struct lwp
*, const struct linux_sys_lsetxattr_args
*, register_t
*);
1234 int linux_sys_fsetxattr(struct lwp
*, const struct linux_sys_fsetxattr_args
*, register_t
*);
1236 int linux_sys_getxattr(struct lwp
*, const struct linux_sys_getxattr_args
*, register_t
*);
1238 int linux_sys_lgetxattr(struct lwp
*, const struct linux_sys_lgetxattr_args
*, register_t
*);
1240 int linux_sys_fgetxattr(struct lwp
*, const struct linux_sys_fgetxattr_args
*, register_t
*);
1242 int linux_sys_listxattr(struct lwp
*, const struct linux_sys_listxattr_args
*, register_t
*);
1244 int linux_sys_llistxattr(struct lwp
*, const struct linux_sys_llistxattr_args
*, register_t
*);
1246 int linux_sys_flistxattr(struct lwp
*, const struct linux_sys_flistxattr_args
*, register_t
*);
1248 int linux_sys_removexattr(struct lwp
*, const struct linux_sys_removexattr_args
*, register_t
*);
1250 int linux_sys_lremovexattr(struct lwp
*, const struct linux_sys_lremovexattr_args
*, register_t
*);
1252 int linux_sys_fremovexattr(struct lwp
*, const struct linux_sys_fremovexattr_args
*, register_t
*);
1254 int linux_sys_tkill(struct lwp
*, const struct linux_sys_tkill_args
*, register_t
*);
1256 int linux_sys_time(struct lwp
*, const struct linux_sys_time_args
*, register_t
*);
1258 int linux_sys_futex(struct lwp
*, const struct linux_sys_futex_args
*, register_t
*);
1260 int linux_sys_sched_setaffinity(struct lwp
*, const struct linux_sys_sched_setaffinity_args
*, register_t
*);
1262 int linux_sys_sched_getaffinity(struct lwp
*, const struct linux_sys_sched_getaffinity_args
*, register_t
*);
1264 int linux_sys_getdents64(struct lwp
*, const struct linux_sys_getdents64_args
*, register_t
*);
1266 int linux_sys_set_tid_address(struct lwp
*, const struct linux_sys_set_tid_address_args
*, register_t
*);
1268 int linux_sys_clock_settime(struct lwp
*, const struct linux_sys_clock_settime_args
*, register_t
*);
1270 int linux_sys_clock_gettime(struct lwp
*, const struct linux_sys_clock_gettime_args
*, register_t
*);
1272 int linux_sys_clock_getres(struct lwp
*, const struct linux_sys_clock_getres_args
*, register_t
*);
1274 int linux_sys_clock_nanosleep(struct lwp
*, const struct linux_sys_clock_nanosleep_args
*, register_t
*);
1276 int linux_sys_exit_group(struct lwp
*, const struct linux_sys_exit_group_args
*, register_t
*);
1278 int linux_sys_tgkill(struct lwp
*, const struct linux_sys_tgkill_args
*, register_t
*);
1280 int linux_sys_set_robust_list(struct lwp
*, const struct linux_sys_set_robust_list_args
*, register_t
*);
1282 int linux_sys_get_robust_list(struct lwp
*, const struct linux_sys_get_robust_list_args
*, register_t
*);
1284 int linux_sys_nosys(struct lwp
*, const void *, register_t
*);
1286 #endif /* _LINUX_SYS_SYSCALLARGS_H_ */