1/* $NetBSD: linux_syscallargs.h,v 1.118 2023/08/19 17:50:24 christos 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.106 2023/08/19 17:49:49 christos Exp
8 */
9
10#ifndef _LINUX_SYS_SYSCALLARGS_H_
11#define	_LINUX_SYS_SYSCALLARGS_H_
12
13/* Forward declaration */
14struct lwp;
15
16#define	LINUX_SYS_MAXSYSARGS	8
17
18#undef	syscallarg
19#define	syscallarg(x)							\
20	union {								\
21		register_t pad;						\
22		struct { x datum; } le;					\
23		struct { /* LINTED zero array dimension */		\
24			int8_t pad[  /* CONSTCOND */			\
25				(sizeof (register_t) < sizeof (x))	\
26				? 0					\
27				: sizeof (register_t) - sizeof (x)];	\
28			x datum;					\
29		} be;							\
30	}
31
32#undef check_syscall_args
33#define check_syscall_args(call) /*LINTED*/ \
34	typedef char call##_check_args[sizeof (struct call##_args) \
35		<= LINUX_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1];
36
37struct linux_sys_exit_args {
38	syscallarg(int) rval;
39};
40check_syscall_args(linux_sys_exit)
41
42struct sys_read_args;
43
44struct sys_write_args;
45
46struct sys_close_args;
47
48struct linux_sys_osf1_wait4_args {
49	syscallarg(int) pid;
50	syscallarg(int *) status;
51	syscallarg(int) options;
52	syscallarg(struct osf1_rusage *) rusage;
53};
54check_syscall_args(linux_sys_osf1_wait4)
55
56struct linux_sys_creat_args {
57	syscallarg(const char *) path;
58	syscallarg(linux_umode_t) mode;
59};
60check_syscall_args(linux_sys_creat)
61
62struct sys_link_args;
63
64struct linux_sys_unlink_args {
65	syscallarg(const char *) path;
66};
67check_syscall_args(linux_sys_unlink)
68
69struct sys_chdir_args;
70
71struct sys_fchdir_args;
72
73struct linux_sys_mknod_args {
74	syscallarg(const char *) path;
75	syscallarg(linux_umode_t) mode;
76	syscallarg(unsigned) dev;
77};
78check_syscall_args(linux_sys_mknod)
79
80struct sys_chmod_args;
81
82struct sys___posix_chown_args;
83
84struct linux_sys_brk_args {
85	syscallarg(char *) nsize;
86};
87check_syscall_args(linux_sys_brk)
88
89struct compat_43_sys_lseek_args;
90
91struct linux_sys_osf1_mount_args {
92	syscallarg(int) type;
93	syscallarg(const char *) path;
94	syscallarg(int) flags;
95	syscallarg(void *) data;
96};
97check_syscall_args(linux_sys_osf1_mount)
98
99struct sys_setuid_args;
100
101struct linux_sys_ptrace_args {
102	syscallarg(long) request;
103	syscallarg(long) pid;
104	syscallarg(long) addr;
105	syscallarg(long) data;
106};
107check_syscall_args(linux_sys_ptrace)
108
109struct sys_access_args;
110
111struct linux_sys_kill_args {
112	syscallarg(int) pid;
113	syscallarg(int) signum;
114};
115check_syscall_args(linux_sys_kill)
116
117struct sys_setpgid_args;
118
119struct sys_dup_args;
120
121struct linux_sys_osf1_set_program_attributes_args {
122	syscallarg(void *) taddr;
123	syscallarg(unsigned long) tsize;
124	syscallarg(void *) daddr;
125	syscallarg(unsigned long) dsize;
126};
127check_syscall_args(linux_sys_osf1_set_program_attributes)
128
129struct linux_sys_open_args {
130	syscallarg(const char *) path;
131	syscallarg(int) flags;
132	syscallarg(linux_umode_t) mode;
133};
134check_syscall_args(linux_sys_open)
135
136struct compat_13_sys_sigprocmask_args;
137
138struct sys_acct_args;
139
140struct linux_sys_sigpending_args {
141	syscallarg(linux_old_sigset_t *) set;
142};
143check_syscall_args(linux_sys_sigpending)
144
145struct linux_sys_ioctl_args {
146	syscallarg(int) fd;
147	syscallarg(u_long) com;
148	syscallarg(void *) data;
149};
150check_syscall_args(linux_sys_ioctl)
151
152struct sys_symlink_args;
153
154struct sys_readlink_args;
155
156struct sys_execve_args;
157
158struct sys_umask_args;
159
160struct sys_chroot_args;
161
162struct linux_sys_stat_args {
163	syscallarg(const char *) path;
164	syscallarg(struct linux_stat *) sp;
165};
166check_syscall_args(linux_sys_stat)
167
168struct linux_sys_lstat_args {
169	syscallarg(const char *) path;
170	syscallarg(struct linux_stat *) sp;
171};
172check_syscall_args(linux_sys_lstat)
173
174struct linux_sys_mmap_args;
175
176struct sys_munmap_args;
177
178struct linux_sys_mprotect_args {
179	syscallarg(const void *) start;
180	syscallarg(unsigned long) len;
181	syscallarg(int) prot;
182};
183check_syscall_args(linux_sys_mprotect)
184
185struct sys_madvise_args;
186
187struct sys_getgroups_args;
188
189struct sys_setgroups_args;
190
191struct linux_sys_osf1_setitimer_args {
192	syscallarg(int) which;
193	syscallarg(struct osf1_itimerval *) itv;
194	syscallarg(struct osf1_itimerval *) oitv;
195};
196check_syscall_args(linux_sys_osf1_setitimer)
197
198struct compat_43_sys_gethostname_args;
199
200struct compat_43_sys_sethostname_args;
201
202struct sys_dup2_args;
203
204struct linux_sys_fstat_args {
205	syscallarg(int) fd;
206	syscallarg(struct linux_stat *) sp;
207};
208check_syscall_args(linux_sys_fstat)
209
210struct linux_sys_fcntl_args {
211	syscallarg(int) fd;
212	syscallarg(int) cmd;
213	syscallarg(void *) arg;
214};
215check_syscall_args(linux_sys_fcntl)
216
217struct linux_sys_osf1_select_args {
218	syscallarg(u_int) nd;
219	syscallarg(fd_set *) in;
220	syscallarg(fd_set *) ou;
221	syscallarg(fd_set *) ex;
222	syscallarg(struct osf1_timeval *) tv;
223};
224check_syscall_args(linux_sys_osf1_select)
225
226struct sys_poll_args;
227
228struct sys_fsync_args;
229
230struct sys_setpriority_args;
231
232struct linux_sys_socket_args {
233	syscallarg(int) domain;
234	syscallarg(int) type;
235	syscallarg(int) protocol;
236};
237check_syscall_args(linux_sys_socket)
238
239struct linux_sys_connect_args {
240	syscallarg(int) s;
241	syscallarg(const struct osockaddr *) name;
242	syscallarg(unsigned int) namelen;
243};
244check_syscall_args(linux_sys_connect)
245
246struct linux_sys_accept_args {
247	syscallarg(int) s;
248	syscallarg(struct osockaddr *) name;
249	syscallarg(int *) anamelen;
250};
251check_syscall_args(linux_sys_accept)
252
253struct linux_sys_getpriority_args {
254	syscallarg(int) which;
255	syscallarg(int) who;
256};
257check_syscall_args(linux_sys_getpriority)
258
259struct linux_sys_send_args {
260	syscallarg(int) s;
261	syscallarg(void *) buf;
262	syscallarg(int) len;
263	syscallarg(int) flags;
264};
265check_syscall_args(linux_sys_send)
266
267struct linux_sys_recv_args {
268	syscallarg(int) s;
269	syscallarg(void *) buf;
270	syscallarg(int) len;
271	syscallarg(int) flags;
272};
273check_syscall_args(linux_sys_recv)
274
275struct linux_sys_sigreturn_args {
276	syscallarg(struct linux_sigframe *) sfp;
277};
278check_syscall_args(linux_sys_sigreturn)
279
280struct linux_sys_bind_args {
281	syscallarg(int) s;
282	syscallarg(const struct osockaddr *) name;
283	syscallarg(unsigned int) namelen;
284};
285check_syscall_args(linux_sys_bind)
286
287struct linux_sys_setsockopt_args {
288	syscallarg(int) s;
289	syscallarg(int) level;
290	syscallarg(int) optname;
291	syscallarg(void *) optval;
292	syscallarg(int) optlen;
293};
294check_syscall_args(linux_sys_setsockopt)
295
296struct sys_listen_args;
297
298struct linux_sys_sigsuspend_args {
299	syscallarg(void *) restart;
300	syscallarg(int) oldmask;
301	syscallarg(int) mask;
302};
303check_syscall_args(linux_sys_sigsuspend)
304
305struct compat_43_sys_sigstack_args;
306
307struct linux_sys_recvmsg_args {
308	syscallarg(int) s;
309	syscallarg(struct linux_msghdr *) msg;
310	syscallarg(int) flags;
311};
312check_syscall_args(linux_sys_recvmsg)
313
314struct linux_sys_sendmsg_args {
315	syscallarg(int) s;
316	syscallarg(const struct linux_msghdr *) msg;
317	syscallarg(int) flags;
318};
319check_syscall_args(linux_sys_sendmsg)
320
321struct linux_sys_osf1_gettimeofday_args {
322	syscallarg(struct osf1_timeval *) tv;
323	syscallarg(struct osf1_timezone *) tzp;
324};
325check_syscall_args(linux_sys_osf1_gettimeofday)
326
327struct linux_sys_osf1_getrusage_args {
328	syscallarg(int) who;
329	syscallarg(struct osf1_rusage *) rusage;
330};
331check_syscall_args(linux_sys_osf1_getrusage)
332
333struct linux_sys_getsockopt_args {
334	syscallarg(int) s;
335	syscallarg(int) level;
336	syscallarg(int) optname;
337	syscallarg(void *) optval;
338	syscallarg(int *) optlen;
339};
340check_syscall_args(linux_sys_getsockopt)
341
342struct sys_readv_args;
343
344struct sys_writev_args;
345
346struct linux_sys_osf1_settimeofday_args {
347	syscallarg(struct osf1_timeval *) tv;
348	syscallarg(struct osf1_timezone *) tzp;
349};
350check_syscall_args(linux_sys_osf1_settimeofday)
351
352struct sys___posix_fchown_args;
353
354struct sys_fchmod_args;
355
356struct linux_sys_recvfrom_args {
357	syscallarg(int) s;
358	syscallarg(void *) buf;
359	syscallarg(int) len;
360	syscallarg(int) flags;
361	syscallarg(struct osockaddr *) from;
362	syscallarg(int *) fromlenaddr;
363};
364check_syscall_args(linux_sys_recvfrom)
365
366struct sys_setreuid_args;
367
368struct sys_setregid_args;
369
370struct sys___posix_rename_args;
371
372struct compat_43_sys_truncate_args;
373
374struct compat_43_sys_ftruncate_args;
375
376struct sys_flock_args;
377
378struct sys_setgid_args;
379
380struct linux_sys_sendto_args {
381	syscallarg(int) s;
382	syscallarg(void *) msg;
383	syscallarg(int) len;
384	syscallarg(int) flags;
385	syscallarg(struct osockaddr *) to;
386	syscallarg(int) tolen;
387};
388check_syscall_args(linux_sys_sendto)
389
390struct sys_shutdown_args;
391
392struct linux_sys_socketpair_args {
393	syscallarg(int) domain;
394	syscallarg(int) type;
395	syscallarg(int) protocol;
396	syscallarg(int *) rsv;
397};
398check_syscall_args(linux_sys_socketpair)
399
400struct sys_mkdir_args;
401
402struct sys_rmdir_args;
403
404struct linux_sys_osf1_utimes_args {
405	syscallarg(const char *) path;
406	syscallarg(const struct osf1_timeval *) tptr;
407};
408check_syscall_args(linux_sys_osf1_utimes)
409
410struct linux_sys_getpeername_args {
411	syscallarg(int) fdes;
412	syscallarg(void *) asa;
413	syscallarg(int *) alen;
414};
415check_syscall_args(linux_sys_getpeername)
416
417struct linux_sys_getrlimit_args {
418	syscallarg(int) which;
419	syscallarg(struct orlimit *) rlp;
420};
421check_syscall_args(linux_sys_getrlimit)
422
423struct linux_sys_setrlimit_args {
424	syscallarg(int) which;
425	syscallarg(const struct orlimit *) rlp;
426};
427check_syscall_args(linux_sys_setrlimit)
428
429struct linux_sys_getsockname_args {
430	syscallarg(int) fdec;
431	syscallarg(void *) asa;
432	syscallarg(int *) alen;
433};
434check_syscall_args(linux_sys_getsockname)
435
436struct linux_sys_sigaction_args {
437	syscallarg(int) signum;
438	syscallarg(const struct linux_old_sigaction *) nsa;
439	syscallarg(struct linux_old_sigaction *) osa;
440};
441check_syscall_args(linux_sys_sigaction)
442
443struct compat_43_sys_getdirentries_args;
444
445struct linux_sys_osf1_statfs_args {
446	syscallarg(const char *) path;
447	syscallarg(struct osf1_statfs *) buf;
448	syscallarg(int) len;
449};
450check_syscall_args(linux_sys_osf1_statfs)
451
452struct linux_sys_osf1_fstatfs_args {
453	syscallarg(int) fd;
454	syscallarg(struct osf1_statfs *) buf;
455	syscallarg(int) len;
456};
457check_syscall_args(linux_sys_osf1_fstatfs)
458
459struct compat_09_sys_getdomainname_args;
460
461struct linux_sys_setdomainname_args {
462	syscallarg(char *) domainname;
463	syscallarg(int) len;
464};
465check_syscall_args(linux_sys_setdomainname)
466
467struct linux_sys_ugetrlimit_args {
468	syscallarg(int) which;
469	syscallarg(struct rlimit *) rlp;
470};
471check_syscall_args(linux_sys_ugetrlimit)
472#ifdef SYSVMSG
473
474struct linux_sys_msgctl_args;
475
476struct sys_msgget_args;
477
478struct sys_msgrcv_args;
479
480struct sys_msgsnd_args;
481#else
482#endif
483#ifdef SYSVSEM
484
485struct linux_sys_semctl_args;
486
487struct sys_semget_args;
488
489struct sys_semop_args;
490#else
491#endif
492
493struct linux_sys_olduname_args {
494	syscallarg(struct linux_old_utsname *) up;
495};
496check_syscall_args(linux_sys_olduname)
497
498struct sys___posix_lchown_args;
499#ifdef SYSVSHM
500
501struct linux_sys_shmat_args;
502
503struct linux_sys_shmctl_args;
504
505struct sys_shmdt_args;
506
507struct linux_sys_shmget_args;
508#else
509#endif
510
511struct sys___msync13_args;
512
513struct sys_getpgid_args;
514
515struct sys_getsid_args;
516
517struct linux_sys_osf1_sysinfo_args {
518	syscallarg(int) cmd;
519	syscallarg(char *) buf;
520	syscallarg(long) len;
521};
522check_syscall_args(linux_sys_osf1_sysinfo)
523
524struct linux_sys_osf1_usleep_thread_args {
525	syscallarg(struct osf1_timeval *) sleep;
526	syscallarg(struct osf1_timeval *) slept;
527};
528check_syscall_args(linux_sys_osf1_usleep_thread)
529
530struct linux_sys_osf1_getsysinfo_args {
531	syscallarg(u_long) op;
532	syscallarg(void *) buffer;
533	syscallarg(u_long) nbytes;
534	syscallarg(void *) arg;
535	syscallarg(u_long) flag;
536};
537check_syscall_args(linux_sys_osf1_getsysinfo)
538
539struct linux_sys_osf1_setsysinfo_args {
540	syscallarg(u_long) op;
541	syscallarg(void *) buffer;
542	syscallarg(u_long) nbytes;
543	syscallarg(void *) arg;
544	syscallarg(u_long) flag;
545};
546check_syscall_args(linux_sys_osf1_setsysinfo)
547
548struct linux_sys_fdatasync_args {
549	syscallarg(int) fd;
550};
551check_syscall_args(linux_sys_fdatasync)
552
553struct linux_sys_swapoff_args {
554	syscallarg(const char *) path;
555};
556check_syscall_args(linux_sys_swapoff)
557
558struct linux_sys_getdents_args {
559	syscallarg(int) fd;
560	syscallarg(struct linux_dirent *) dent;
561	syscallarg(unsigned int) count;
562};
563check_syscall_args(linux_sys_getdents)
564
565struct linux_sys_reboot_args {
566	syscallarg(int) magic1;
567	syscallarg(int) magic2;
568	syscallarg(int) cmd;
569	syscallarg(void *) arg;
570};
571check_syscall_args(linux_sys_reboot)
572
573struct linux_sys_clone_args {
574	syscallarg(int) flags;
575	syscallarg(void *) stack;
576	syscallarg(void *) parent_tidptr;
577	syscallarg(void *) child_tidptr;
578	syscallarg(void *) tls;
579};
580check_syscall_args(linux_sys_clone)
581#ifdef EXEC_AOUT
582
583struct linux_sys_uselib_args {
584	syscallarg(const char *) path;
585};
586check_syscall_args(linux_sys_uselib)
587#else
588#endif
589
590struct sys_mlock_args;
591
592struct sys_munlock_args;
593
594struct sys_mlockall_args;
595
596struct linux_sys_sysinfo_args {
597	syscallarg(struct linux_sysinfo *) arg;
598};
599check_syscall_args(linux_sys_sysinfo)
600
601struct linux_sys___sysctl_args {
602	syscallarg(struct linux___sysctl *) lsp;
603};
604check_syscall_args(linux_sys___sysctl)
605
606struct linux_sys_swapon_args {
607	syscallarg(const char *) name;
608};
609check_syscall_args(linux_sys_swapon)
610
611struct linux_sys_times_args {
612	syscallarg(struct times *) tms;
613};
614check_syscall_args(linux_sys_times)
615
616struct linux_sys_personality_args {
617	syscallarg(unsigned long) per;
618};
619check_syscall_args(linux_sys_personality)
620
621struct linux_sys_setfsuid_args {
622	syscallarg(uid_t) uid;
623};
624check_syscall_args(linux_sys_setfsuid)
625
626struct linux_sys_setfsgid_args {
627	syscallarg(gid_t) gid;
628};
629check_syscall_args(linux_sys_setfsgid)
630
631struct linux_sys_statfs_args {
632	syscallarg(const char *) path;
633	syscallarg(struct linux_statfs *) sp;
634};
635check_syscall_args(linux_sys_statfs)
636
637struct linux_sys_fstatfs_args {
638	syscallarg(int) fd;
639	syscallarg(struct linux_statfs *) sp;
640};
641check_syscall_args(linux_sys_fstatfs)
642
643struct linux_sys_sched_setparam_args {
644	syscallarg(pid_t) pid;
645	syscallarg(const struct linux_sched_param *) sp;
646};
647check_syscall_args(linux_sys_sched_setparam)
648
649struct linux_sys_sched_getparam_args {
650	syscallarg(pid_t) pid;
651	syscallarg(struct linux_sched_param *) sp;
652};
653check_syscall_args(linux_sys_sched_getparam)
654
655struct linux_sys_sched_setscheduler_args {
656	syscallarg(pid_t) pid;
657	syscallarg(int) policy;
658	syscallarg(const struct linux_sched_param *) sp;
659};
660check_syscall_args(linux_sys_sched_setscheduler)
661
662struct linux_sys_sched_getscheduler_args {
663	syscallarg(pid_t) pid;
664};
665check_syscall_args(linux_sys_sched_getscheduler)
666
667struct linux_sys_sched_get_priority_max_args {
668	syscallarg(int) policy;
669};
670check_syscall_args(linux_sys_sched_get_priority_max)
671
672struct linux_sys_sched_get_priority_min_args {
673	syscallarg(int) policy;
674};
675check_syscall_args(linux_sys_sched_get_priority_min)
676
677struct linux_sys_uname_args {
678	syscallarg(struct linux_utsname *) up;
679};
680check_syscall_args(linux_sys_uname)
681
682struct linux_sys_nanosleep_args {
683	syscallarg(const struct linux_timespec *) rqtp;
684	syscallarg(struct linux_timespec *) rmtp;
685};
686check_syscall_args(linux_sys_nanosleep)
687
688struct linux_sys_mremap_args {
689	syscallarg(void *) old_address;
690	syscallarg(size_t) old_size;
691	syscallarg(size_t) new_size;
692	syscallarg(u_long) flags;
693};
694check_syscall_args(linux_sys_mremap)
695
696struct linux_sys_setresuid_args {
697	syscallarg(uid_t) ruid;
698	syscallarg(uid_t) euid;
699	syscallarg(uid_t) suid;
700};
701check_syscall_args(linux_sys_setresuid)
702
703struct linux_sys_getresuid_args {
704	syscallarg(uid_t *) ruid;
705	syscallarg(uid_t *) euid;
706	syscallarg(uid_t *) suid;
707};
708check_syscall_args(linux_sys_getresuid)
709
710struct linux_sys_pread_args {
711	syscallarg(int) fd;
712	syscallarg(char *) buf;
713	syscallarg(size_t) nbyte;
714	syscallarg(off_t) offset;
715};
716check_syscall_args(linux_sys_pread)
717
718struct linux_sys_pwrite_args {
719	syscallarg(int) fd;
720	syscallarg(char *) buf;
721	syscallarg(size_t) nbyte;
722	syscallarg(off_t) offset;
723};
724check_syscall_args(linux_sys_pwrite)
725
726struct linux_sys_rt_sigreturn_args {
727	syscallarg(struct linux_rt_sigframe *) sfp;
728};
729check_syscall_args(linux_sys_rt_sigreturn)
730
731struct linux_sys_rt_sigaction_args {
732	syscallarg(int) signum;
733	syscallarg(const struct linux_sigaction *) nsa;
734	syscallarg(struct linux_sigaction *) osa;
735	syscallarg(size_t) sigsetsize;
736};
737check_syscall_args(linux_sys_rt_sigaction)
738
739struct linux_sys_rt_sigprocmask_args {
740	syscallarg(int) how;
741	syscallarg(const linux_sigset_t *) set;
742	syscallarg(linux_sigset_t *) oset;
743	syscallarg(size_t) sigsetsize;
744};
745check_syscall_args(linux_sys_rt_sigprocmask)
746
747struct linux_sys_rt_sigpending_args {
748	syscallarg(linux_sigset_t *) set;
749	syscallarg(size_t) sigsetsize;
750};
751check_syscall_args(linux_sys_rt_sigpending)
752
753struct linux_sys_rt_sigtimedwait_args {
754	syscallarg(const linux_sigset_t *) set;
755	syscallarg(linux_siginfo_t *) info;
756	syscallarg(const struct linux_timespec *) timeout;
757};
758check_syscall_args(linux_sys_rt_sigtimedwait)
759
760struct linux_sys_rt_queueinfo_args {
761	syscallarg(int) pid;
762	syscallarg(int) signum;
763	syscallarg(linux_siginfo_t *) uinfo;
764};
765check_syscall_args(linux_sys_rt_queueinfo)
766
767struct linux_sys_rt_sigsuspend_args {
768	syscallarg(linux_sigset_t *) unewset;
769	syscallarg(size_t) sigsetsize;
770};
771check_syscall_args(linux_sys_rt_sigsuspend)
772
773struct linux_sys_select_args {
774	syscallarg(int) nfds;
775	syscallarg(fd_set *) readfds;
776	syscallarg(fd_set *) writefds;
777	syscallarg(fd_set *) exceptfds;
778	syscallarg(struct timeval50 *) timeout;
779};
780check_syscall_args(linux_sys_select)
781
782struct linux_sys_gettimeofday_args {
783	syscallarg(struct timeval50 *) tp;
784	syscallarg(struct timezone *) tzp;
785};
786check_syscall_args(linux_sys_gettimeofday)
787
788struct linux_sys_settimeofday_args {
789	syscallarg(struct timeval50 *) tp;
790	syscallarg(struct timezone *) tzp;
791};
792check_syscall_args(linux_sys_settimeofday)
793
794struct compat_50_sys_getitimer_args;
795
796struct compat_50_sys_setitimer_args;
797
798struct compat_50_sys_utimes_args;
799
800struct compat_50_sys_getrusage_args;
801
802struct linux_sys_wait4_args {
803	syscallarg(int) pid;
804	syscallarg(int *) status;
805	syscallarg(int) options;
806	syscallarg(struct rusage50 *) rusage;
807};
808check_syscall_args(linux_sys_wait4)
809
810struct sys___getcwd_args;
811
812struct sys_mincore_args;
813
814struct linux_sys_getdents64_args {
815	syscallarg(int) fd;
816	syscallarg(struct linux_dirent64 *) dent;
817	syscallarg(unsigned int) count;
818};
819check_syscall_args(linux_sys_getdents64)
820
821struct linux_sys_readahead_args {
822	syscallarg(int) fd;
823	syscallarg(off_t) offset;
824	syscallarg(size_t) count;
825};
826check_syscall_args(linux_sys_readahead)
827
828struct linux_sys_tkill_args {
829	syscallarg(int) tid;
830	syscallarg(int) sig;
831};
832check_syscall_args(linux_sys_tkill)
833
834struct linux_sys_setxattr_args {
835	syscallarg(char *) path;
836	syscallarg(char *) name;
837	syscallarg(void *) value;
838	syscallarg(size_t) size;
839	syscallarg(int) flags;
840};
841check_syscall_args(linux_sys_setxattr)
842
843struct linux_sys_lsetxattr_args {
844	syscallarg(char *) path;
845	syscallarg(char *) name;
846	syscallarg(void *) value;
847	syscallarg(size_t) size;
848	syscallarg(int) flags;
849};
850check_syscall_args(linux_sys_lsetxattr)
851
852struct linux_sys_fsetxattr_args {
853	syscallarg(int) fd;
854	syscallarg(char *) name;
855	syscallarg(void *) value;
856	syscallarg(size_t) size;
857	syscallarg(int) flags;
858};
859check_syscall_args(linux_sys_fsetxattr)
860
861struct linux_sys_getxattr_args {
862	syscallarg(char *) path;
863	syscallarg(char *) name;
864	syscallarg(void *) value;
865	syscallarg(size_t) size;
866};
867check_syscall_args(linux_sys_getxattr)
868
869struct linux_sys_lgetxattr_args {
870	syscallarg(char *) path;
871	syscallarg(char *) name;
872	syscallarg(void *) value;
873	syscallarg(size_t) size;
874};
875check_syscall_args(linux_sys_lgetxattr)
876
877struct linux_sys_fgetxattr_args {
878	syscallarg(int) fd;
879	syscallarg(char *) name;
880	syscallarg(void *) value;
881	syscallarg(size_t) size;
882};
883check_syscall_args(linux_sys_fgetxattr)
884
885struct linux_sys_listxattr_args {
886	syscallarg(char *) path;
887	syscallarg(char *) list;
888	syscallarg(size_t) size;
889};
890check_syscall_args(linux_sys_listxattr)
891
892struct linux_sys_llistxattr_args {
893	syscallarg(char *) path;
894	syscallarg(char *) list;
895	syscallarg(size_t) size;
896};
897check_syscall_args(linux_sys_llistxattr)
898
899struct linux_sys_flistxattr_args {
900	syscallarg(int) fd;
901	syscallarg(char *) list;
902	syscallarg(size_t) size;
903};
904check_syscall_args(linux_sys_flistxattr)
905
906struct linux_sys_removexattr_args {
907	syscallarg(char *) path;
908	syscallarg(char *) name;
909};
910check_syscall_args(linux_sys_removexattr)
911
912struct linux_sys_lremovexattr_args {
913	syscallarg(char *) path;
914	syscallarg(char *) name;
915};
916check_syscall_args(linux_sys_lremovexattr)
917
918struct linux_sys_fremovexattr_args {
919	syscallarg(int) fd;
920	syscallarg(char *) name;
921};
922check_syscall_args(linux_sys_fremovexattr)
923
924struct linux_sys_futex_args {
925	syscallarg(int *) uaddr;
926	syscallarg(int) op;
927	syscallarg(int) val;
928	syscallarg(const struct linux_timespec *) timeout;
929	syscallarg(int *) uaddr2;
930	syscallarg(int) val3;
931};
932check_syscall_args(linux_sys_futex)
933
934struct linux_sys_sched_setaffinity_args {
935	syscallarg(pid_t) pid;
936	syscallarg(unsigned int) len;
937	syscallarg(unsigned long *) mask;
938};
939check_syscall_args(linux_sys_sched_setaffinity)
940
941struct linux_sys_sched_getaffinity_args {
942	syscallarg(pid_t) pid;
943	syscallarg(unsigned int) len;
944	syscallarg(unsigned long *) mask;
945};
946check_syscall_args(linux_sys_sched_getaffinity)
947
948struct linux_sys_exit_group_args {
949	syscallarg(int) error_code;
950};
951check_syscall_args(linux_sys_exit_group)
952
953struct linux_sys_epoll_create_args {
954	syscallarg(int) size;
955};
956check_syscall_args(linux_sys_epoll_create)
957
958struct linux_sys_epoll_ctl_args {
959	syscallarg(int) epfd;
960	syscallarg(int) op;
961	syscallarg(int) fd;
962	syscallarg(struct linux_epoll_event *) event;
963};
964check_syscall_args(linux_sys_epoll_ctl)
965
966struct linux_sys_epoll_wait_args {
967	syscallarg(int) epfd;
968	syscallarg(struct linux_epoll_event *) events;
969	syscallarg(int) maxevents;
970	syscallarg(int) timeout;
971};
972check_syscall_args(linux_sys_epoll_wait)
973
974struct linux_sys_set_tid_address_args {
975	syscallarg(int *) tid;
976};
977check_syscall_args(linux_sys_set_tid_address)
978
979struct linux_sys_fadvise64_args {
980	syscallarg(int) fd;
981	syscallarg(off_t) offset;
982	syscallarg(size_t) len;
983	syscallarg(int) advice;
984};
985check_syscall_args(linux_sys_fadvise64)
986
987struct linux_sys_timer_create_args {
988	syscallarg(clockid_t) clockid;
989	syscallarg(struct linux_sigevent *) evp;
990	syscallarg(timer_t *) timerid;
991};
992check_syscall_args(linux_sys_timer_create)
993
994struct linux_sys_timer_settime_args {
995	syscallarg(timer_t) timerid;
996	syscallarg(int) flags;
997	syscallarg(const struct linux_itimerspec *) tim;
998	syscallarg(struct linux_itimerspec *) otim;
999};
1000check_syscall_args(linux_sys_timer_settime)
1001
1002struct linux_sys_timer_gettime_args {
1003	syscallarg(timer_t) timerid;
1004	syscallarg(struct linux_itimerspec *) tim;
1005};
1006check_syscall_args(linux_sys_timer_gettime)
1007
1008struct sys_timer_getoverrun_args;
1009
1010struct sys_timer_delete_args;
1011
1012struct linux_sys_clock_settime_args {
1013	syscallarg(clockid_t) which;
1014	syscallarg(struct linux_timespec *) tp;
1015};
1016check_syscall_args(linux_sys_clock_settime)
1017
1018struct linux_sys_clock_gettime_args {
1019	syscallarg(clockid_t) which;
1020	syscallarg(struct linux_timespec *) tp;
1021};
1022check_syscall_args(linux_sys_clock_gettime)
1023
1024struct linux_sys_clock_getres_args {
1025	syscallarg(clockid_t) which;
1026	syscallarg(struct linux_timespec *) tp;
1027};
1028check_syscall_args(linux_sys_clock_getres)
1029
1030struct linux_sys_clock_nanosleep_args {
1031	syscallarg(clockid_t) which;
1032	syscallarg(int) flags;
1033	syscallarg(struct linux_timespec *) rqtp;
1034	syscallarg(struct linux_timespec *) rmtp;
1035};
1036check_syscall_args(linux_sys_clock_nanosleep)
1037
1038struct linux_sys_tgkill_args {
1039	syscallarg(int) tgid;
1040	syscallarg(int) tid;
1041	syscallarg(int) sig;
1042};
1043check_syscall_args(linux_sys_tgkill)
1044
1045struct linux_sys_stat64_args {
1046	syscallarg(const char *) path;
1047	syscallarg(struct linux_stat64 *) sp;
1048};
1049check_syscall_args(linux_sys_stat64)
1050
1051struct linux_sys_lstat64_args {
1052	syscallarg(const char *) path;
1053	syscallarg(struct linux_stat64 *) sp;
1054};
1055check_syscall_args(linux_sys_lstat64)
1056
1057struct linux_sys_fstat64_args {
1058	syscallarg(int) fd;
1059	syscallarg(struct linux_stat64 *) sp;
1060};
1061check_syscall_args(linux_sys_fstat64)
1062
1063struct linux_sys_waitid_args {
1064	syscallarg(int) idtype;
1065	syscallarg(id_t) id;
1066	syscallarg(linux_siginfo_t *) infop;
1067	syscallarg(int) options;
1068	syscallarg(struct rusage50 *) rusage;
1069};
1070check_syscall_args(linux_sys_waitid)
1071
1072struct linux_sys_inotify_add_watch_args {
1073	syscallarg(int) fd;
1074	syscallarg(const char *) pathname;
1075	syscallarg(uint32_t) mask;
1076};
1077check_syscall_args(linux_sys_inotify_add_watch)
1078
1079struct linux_sys_inotify_rm_watch_args {
1080	syscallarg(int) fd;
1081	syscallarg(int) wd;
1082};
1083check_syscall_args(linux_sys_inotify_rm_watch)
1084
1085struct linux_sys_openat_args {
1086	syscallarg(int) fd;
1087	syscallarg(const char *) path;
1088	syscallarg(int) flags;
1089	syscallarg(linux_umode_t) mode;
1090};
1091check_syscall_args(linux_sys_openat)
1092
1093struct sys_mkdirat_args;
1094
1095struct linux_sys_mknodat_args {
1096	syscallarg(int) fd;
1097	syscallarg(const char *) path;
1098	syscallarg(linux_umode_t) mode;
1099	syscallarg(unsigned) dev;
1100};
1101check_syscall_args(linux_sys_mknodat)
1102
1103struct linux_sys_fchownat_args {
1104	syscallarg(int) fd;
1105	syscallarg(const char *) path;
1106	syscallarg(uid_t) owner;
1107	syscallarg(gid_t) group;
1108	syscallarg(int) flag;
1109};
1110check_syscall_args(linux_sys_fchownat)
1111
1112struct linux_sys_fstatat64_args {
1113	syscallarg(int) fd;
1114	syscallarg(const char *) path;
1115	syscallarg(struct linux_stat64 *) sp;
1116	syscallarg(int) flag;
1117};
1118check_syscall_args(linux_sys_fstatat64)
1119
1120struct linux_sys_unlinkat_args {
1121	syscallarg(int) fd;
1122	syscallarg(const char *) path;
1123	syscallarg(int) flag;
1124};
1125check_syscall_args(linux_sys_unlinkat)
1126
1127struct sys_renameat_args;
1128
1129struct linux_sys_linkat_args {
1130	syscallarg(int) fd1;
1131	syscallarg(const char *) name1;
1132	syscallarg(int) fd2;
1133	syscallarg(const char *) name2;
1134	syscallarg(int) flags;
1135};
1136check_syscall_args(linux_sys_linkat)
1137
1138struct sys_symlinkat_args;
1139
1140struct sys_readlinkat_args;
1141
1142struct linux_sys_fchmodat_args {
1143	syscallarg(int) fd;
1144	syscallarg(const char *) path;
1145	syscallarg(linux_umode_t) mode;
1146};
1147check_syscall_args(linux_sys_fchmodat)
1148
1149struct linux_sys_faccessat_args {
1150	syscallarg(int) fd;
1151	syscallarg(const char *) path;
1152	syscallarg(int) amode;
1153};
1154check_syscall_args(linux_sys_faccessat)
1155
1156struct linux_sys_pselect6_args {
1157	syscallarg(int) nfds;
1158	syscallarg(fd_set *) readfds;
1159	syscallarg(fd_set *) writefds;
1160	syscallarg(fd_set *) exceptfds;
1161	syscallarg(struct linux_timespec *) timeout;
1162	syscallarg(linux_sized_sigset_t *) ss;
1163};
1164check_syscall_args(linux_sys_pselect6)
1165
1166struct linux_sys_ppoll_args {
1167	syscallarg(struct pollfd *) fds;
1168	syscallarg(u_int) nfds;
1169	syscallarg(struct linux_timespec *) timeout;
1170	syscallarg(linux_sigset_t *) sigset;
1171};
1172check_syscall_args(linux_sys_ppoll)
1173
1174struct sys___futex_set_robust_list_args;
1175
1176struct sys___futex_get_robust_list_args;
1177
1178struct linux_sys_epoll_pwait_args {
1179	syscallarg(int) epfd;
1180	syscallarg(struct linux_epoll_event *) events;
1181	syscallarg(int) maxevents;
1182	syscallarg(int) timeout;
1183	syscallarg(const linux_sigset_t *) sigmask;
1184};
1185check_syscall_args(linux_sys_epoll_pwait)
1186
1187struct linux_sys_utimensat_args {
1188	syscallarg(int) fd;
1189	syscallarg(const char *) path;
1190	syscallarg(struct linux_timespec *) times;
1191	syscallarg(int) flag;
1192};
1193check_syscall_args(linux_sys_utimensat)
1194
1195struct linux_sys_eventfd_args {
1196	syscallarg(unsigned int) initval;
1197};
1198check_syscall_args(linux_sys_eventfd)
1199
1200struct linux_sys_recvmmsg_args {
1201	syscallarg(int) s;
1202	syscallarg(struct linux_mmsghdr *) msgvec;
1203	syscallarg(unsigned int) vlen;
1204	syscallarg(unsigned int) flags;
1205	syscallarg(struct timespec *) timeout;
1206};
1207check_syscall_args(linux_sys_recvmmsg)
1208
1209struct linux_sys_fallocate_args {
1210	syscallarg(int) fd;
1211	syscallarg(int) mode;
1212	syscallarg(off_t) offset;
1213	syscallarg(off_t) len;
1214};
1215check_syscall_args(linux_sys_fallocate)
1216
1217struct linux_sys_timerfd_create_args {
1218	syscallarg(clockid_t) clock_id;
1219	syscallarg(int) flags;
1220};
1221check_syscall_args(linux_sys_timerfd_create)
1222
1223struct linux_sys_timerfd_settime_args {
1224	syscallarg(int) fd;
1225	syscallarg(int) flags;
1226	syscallarg(const struct linux_itimerspec *) tim;
1227	syscallarg(struct linux_itimerspec *) otim;
1228};
1229check_syscall_args(linux_sys_timerfd_settime)
1230
1231struct linux_sys_timerfd_gettime_args {
1232	syscallarg(int) fd;
1233	syscallarg(struct linux_itimerspec *) tim;
1234};
1235check_syscall_args(linux_sys_timerfd_gettime)
1236
1237struct linux_sys_eventfd2_args {
1238	syscallarg(unsigned int) initval;
1239	syscallarg(int) flags;
1240};
1241check_syscall_args(linux_sys_eventfd2)
1242
1243struct linux_sys_epoll_create1_args {
1244	syscallarg(int) flags;
1245};
1246check_syscall_args(linux_sys_epoll_create1)
1247
1248struct linux_sys_dup3_args {
1249	syscallarg(int) from;
1250	syscallarg(int) to;
1251	syscallarg(int) flags;
1252};
1253check_syscall_args(linux_sys_dup3)
1254
1255struct linux_sys_pipe2_args {
1256	syscallarg(int *) pfds;
1257	syscallarg(int) flags;
1258};
1259check_syscall_args(linux_sys_pipe2)
1260
1261struct linux_sys_inotify_init1_args {
1262	syscallarg(int) flags;
1263};
1264check_syscall_args(linux_sys_inotify_init1)
1265
1266struct linux_sys_preadv_args {
1267	syscallarg(int) fd;
1268	syscallarg(const struct iovec *) iovp;
1269	syscallarg(int) iovcnt;
1270	syscallarg(unsigned long) off_lo;
1271	syscallarg(unsigned long) off_hi;
1272};
1273check_syscall_args(linux_sys_preadv)
1274
1275struct linux_sys_pwritev_args {
1276	syscallarg(int) fd;
1277	syscallarg(const struct iovcnt *) iovp;
1278	syscallarg(int) iovcnt;
1279	syscallarg(unsigned long) off_lo;
1280	syscallarg(unsigned long) off_hi;
1281};
1282check_syscall_args(linux_sys_pwritev)
1283
1284struct linux_sys_prlimit64_args {
1285	syscallarg(pid_t) pid;
1286	syscallarg(int) which;
1287	syscallarg(struct rlimit *) new_rlp;
1288	syscallarg(struct rlimit *) old_rlp;
1289};
1290check_syscall_args(linux_sys_prlimit64)
1291
1292struct linux_sys_accept4_args {
1293	syscallarg(int) s;
1294	syscallarg(struct osockaddr *) name;
1295	syscallarg(int *) anamelen;
1296	syscallarg(int) flags;
1297};
1298check_syscall_args(linux_sys_accept4)
1299
1300struct linux_sys_sendmmsg_args {
1301	syscallarg(int) s;
1302	syscallarg(struct linux_mmsghdr *) msgvec;
1303	syscallarg(unsigned int) vlen;
1304	syscallarg(unsigned int) flags;
1305};
1306check_syscall_args(linux_sys_sendmmsg)
1307
1308struct linux_sys_statx_args {
1309	syscallarg(int) fd;
1310	syscallarg(const char *) path;
1311	syscallarg(int) flag;
1312	syscallarg(unsigned int) mask;
1313	syscallarg(struct linux_statx *) sp;
1314};
1315check_syscall_args(linux_sys_statx)
1316
1317struct linux_sys_close_range_args {
1318	syscallarg(unsigned int) first;
1319	syscallarg(unsigned int) last;
1320	syscallarg(unsigned int) flags;
1321};
1322check_syscall_args(linux_sys_close_range)
1323
1324struct linux_sys_epoll_pwait2_args {
1325	syscallarg(int) epfd;
1326	syscallarg(struct linux_epoll_event *) events;
1327	syscallarg(int) maxevents;
1328	syscallarg(const struct linux_timespec *) timeout;
1329	syscallarg(const linux_sigset_t *) sigmask;
1330};
1331check_syscall_args(linux_sys_epoll_pwait2)
1332
1333/*
1334 * System call prototypes.
1335 */
1336
1337int	linux_sys_nosys(struct lwp *, const void *, register_t *);
1338
1339int	linux_sys_exit(struct lwp *, const struct linux_sys_exit_args *, register_t *);
1340
1341int	sys_fork(struct lwp *, const void *, register_t *);
1342
1343int	sys_read(struct lwp *, const struct sys_read_args *, register_t *);
1344
1345int	sys_write(struct lwp *, const struct sys_write_args *, register_t *);
1346
1347int	sys_close(struct lwp *, const struct sys_close_args *, register_t *);
1348
1349int	linux_sys_osf1_wait4(struct lwp *, const struct linux_sys_osf1_wait4_args *, register_t *);
1350
1351int	linux_sys_creat(struct lwp *, const struct linux_sys_creat_args *, register_t *);
1352
1353int	sys_link(struct lwp *, const struct sys_link_args *, register_t *);
1354
1355int	linux_sys_unlink(struct lwp *, const struct linux_sys_unlink_args *, register_t *);
1356
1357int	sys_chdir(struct lwp *, const struct sys_chdir_args *, register_t *);
1358
1359int	sys_fchdir(struct lwp *, const struct sys_fchdir_args *, register_t *);
1360
1361int	linux_sys_mknod(struct lwp *, const struct linux_sys_mknod_args *, register_t *);
1362
1363int	sys_chmod(struct lwp *, const struct sys_chmod_args *, register_t *);
1364
1365int	sys___posix_chown(struct lwp *, const struct sys___posix_chown_args *, register_t *);
1366
1367int	linux_sys_brk(struct lwp *, const struct linux_sys_brk_args *, register_t *);
1368
1369int	compat_43_sys_lseek(struct lwp *, const struct compat_43_sys_lseek_args *, register_t *);
1370
1371int	sys_getpid_with_ppid(struct lwp *, const void *, register_t *);
1372
1373int	linux_sys_osf1_mount(struct lwp *, const struct linux_sys_osf1_mount_args *, register_t *);
1374
1375int	sys_setuid(struct lwp *, const struct sys_setuid_args *, register_t *);
1376
1377int	sys_getuid_with_euid(struct lwp *, const void *, register_t *);
1378
1379int	linux_sys_ptrace(struct lwp *, const struct linux_sys_ptrace_args *, register_t *);
1380
1381int	sys_access(struct lwp *, const struct sys_access_args *, register_t *);
1382
1383int	sys_sync(struct lwp *, const void *, register_t *);
1384
1385int	linux_sys_kill(struct lwp *, const struct linux_sys_kill_args *, register_t *);
1386
1387int	sys_setpgid(struct lwp *, const struct sys_setpgid_args *, register_t *);
1388
1389int	sys_dup(struct lwp *, const struct sys_dup_args *, register_t *);
1390
1391int	linux_sys_pipe(struct lwp *, const void *, register_t *);
1392
1393int	linux_sys_osf1_set_program_attributes(struct lwp *, const struct linux_sys_osf1_set_program_attributes_args *, register_t *);
1394
1395int	linux_sys_open(struct lwp *, const struct linux_sys_open_args *, register_t *);
1396
1397int	sys_getgid_with_egid(struct lwp *, const void *, register_t *);
1398
1399int	compat_13_sys_sigprocmask(struct lwp *, const struct compat_13_sys_sigprocmask_args *, register_t *);
1400
1401int	sys_acct(struct lwp *, const struct sys_acct_args *, register_t *);
1402
1403int	linux_sys_sigpending(struct lwp *, const struct linux_sys_sigpending_args *, register_t *);
1404
1405int	linux_sys_ioctl(struct lwp *, const struct linux_sys_ioctl_args *, register_t *);
1406
1407int	sys_symlink(struct lwp *, const struct sys_symlink_args *, register_t *);
1408
1409int	sys_readlink(struct lwp *, const struct sys_readlink_args *, register_t *);
1410
1411int	sys_execve(struct lwp *, const struct sys_execve_args *, register_t *);
1412
1413int	sys_umask(struct lwp *, const struct sys_umask_args *, register_t *);
1414
1415int	sys_chroot(struct lwp *, const struct sys_chroot_args *, register_t *);
1416
1417int	sys_getpgrp(struct lwp *, const void *, register_t *);
1418
1419int	compat_43_sys_getpagesize(struct lwp *, const void *, register_t *);
1420
1421int	sys___vfork14(struct lwp *, const void *, register_t *);
1422
1423int	linux_sys_stat(struct lwp *, const struct linux_sys_stat_args *, register_t *);
1424
1425int	linux_sys_lstat(struct lwp *, const struct linux_sys_lstat_args *, register_t *);
1426
1427int	linux_sys_mmap(struct lwp *, const struct linux_sys_mmap_args *, register_t *);
1428
1429int	sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *);
1430
1431int	linux_sys_mprotect(struct lwp *, const struct linux_sys_mprotect_args *, register_t *);
1432
1433int	sys_madvise(struct lwp *, const struct sys_madvise_args *, register_t *);
1434
1435int	sys_getgroups(struct lwp *, const struct sys_getgroups_args *, register_t *);
1436
1437int	sys_setgroups(struct lwp *, const struct sys_setgroups_args *, register_t *);
1438
1439int	linux_sys_osf1_setitimer(struct lwp *, const struct linux_sys_osf1_setitimer_args *, register_t *);
1440
1441int	compat_43_sys_gethostname(struct lwp *, const struct compat_43_sys_gethostname_args *, register_t *);
1442
1443int	compat_43_sys_sethostname(struct lwp *, const struct compat_43_sys_sethostname_args *, register_t *);
1444
1445int	sys_dup2(struct lwp *, const struct sys_dup2_args *, register_t *);
1446
1447int	linux_sys_fstat(struct lwp *, const struct linux_sys_fstat_args *, register_t *);
1448
1449int	linux_sys_fcntl(struct lwp *, const struct linux_sys_fcntl_args *, register_t *);
1450
1451int	linux_sys_osf1_select(struct lwp *, const struct linux_sys_osf1_select_args *, register_t *);
1452
1453int	sys_poll(struct lwp *, const struct sys_poll_args *, register_t *);
1454
1455int	sys_fsync(struct lwp *, const struct sys_fsync_args *, register_t *);
1456
1457int	sys_setpriority(struct lwp *, const struct sys_setpriority_args *, register_t *);
1458
1459int	linux_sys_socket(struct lwp *, const struct linux_sys_socket_args *, register_t *);
1460
1461int	linux_sys_connect(struct lwp *, const struct linux_sys_connect_args *, register_t *);
1462
1463int	linux_sys_accept(struct lwp *, const struct linux_sys_accept_args *, register_t *);
1464
1465int	linux_sys_getpriority(struct lwp *, const struct linux_sys_getpriority_args *, register_t *);
1466
1467int	linux_sys_send(struct lwp *, const struct linux_sys_send_args *, register_t *);
1468
1469int	linux_sys_recv(struct lwp *, const struct linux_sys_recv_args *, register_t *);
1470
1471int	linux_sys_sigreturn(struct lwp *, const struct linux_sys_sigreturn_args *, register_t *);
1472
1473int	linux_sys_bind(struct lwp *, const struct linux_sys_bind_args *, register_t *);
1474
1475int	linux_sys_setsockopt(struct lwp *, const struct linux_sys_setsockopt_args *, register_t *);
1476
1477int	sys_listen(struct lwp *, const struct sys_listen_args *, register_t *);
1478
1479int	linux_sys_sigsuspend(struct lwp *, const struct linux_sys_sigsuspend_args *, register_t *);
1480
1481int	compat_43_sys_sigstack(struct lwp *, const struct compat_43_sys_sigstack_args *, register_t *);
1482
1483int	linux_sys_recvmsg(struct lwp *, const struct linux_sys_recvmsg_args *, register_t *);
1484
1485int	linux_sys_sendmsg(struct lwp *, const struct linux_sys_sendmsg_args *, register_t *);
1486
1487int	linux_sys_osf1_gettimeofday(struct lwp *, const struct linux_sys_osf1_gettimeofday_args *, register_t *);
1488
1489int	linux_sys_osf1_getrusage(struct lwp *, const struct linux_sys_osf1_getrusage_args *, register_t *);
1490
1491int	linux_sys_getsockopt(struct lwp *, const struct linux_sys_getsockopt_args *, register_t *);
1492
1493int	sys_readv(struct lwp *, const struct sys_readv_args *, register_t *);
1494
1495int	sys_writev(struct lwp *, const struct sys_writev_args *, register_t *);
1496
1497int	linux_sys_osf1_settimeofday(struct lwp *, const struct linux_sys_osf1_settimeofday_args *, register_t *);
1498
1499int	sys___posix_fchown(struct lwp *, const struct sys___posix_fchown_args *, register_t *);
1500
1501int	sys_fchmod(struct lwp *, const struct sys_fchmod_args *, register_t *);
1502
1503int	linux_sys_recvfrom(struct lwp *, const struct linux_sys_recvfrom_args *, register_t *);
1504
1505int	sys_setreuid(struct lwp *, const struct sys_setreuid_args *, register_t *);
1506
1507int	sys_setregid(struct lwp *, const struct sys_setregid_args *, register_t *);
1508
1509int	sys___posix_rename(struct lwp *, const struct sys___posix_rename_args *, register_t *);
1510
1511int	compat_43_sys_truncate(struct lwp *, const struct compat_43_sys_truncate_args *, register_t *);
1512
1513int	compat_43_sys_ftruncate(struct lwp *, const struct compat_43_sys_ftruncate_args *, register_t *);
1514
1515int	sys_flock(struct lwp *, const struct sys_flock_args *, register_t *);
1516
1517int	sys_setgid(struct lwp *, const struct sys_setgid_args *, register_t *);
1518
1519int	linux_sys_sendto(struct lwp *, const struct linux_sys_sendto_args *, register_t *);
1520
1521int	sys_shutdown(struct lwp *, const struct sys_shutdown_args *, register_t *);
1522
1523int	linux_sys_socketpair(struct lwp *, const struct linux_sys_socketpair_args *, register_t *);
1524
1525int	sys_mkdir(struct lwp *, const struct sys_mkdir_args *, register_t *);
1526
1527int	sys_rmdir(struct lwp *, const struct sys_rmdir_args *, register_t *);
1528
1529int	linux_sys_osf1_utimes(struct lwp *, const struct linux_sys_osf1_utimes_args *, register_t *);
1530
1531int	linux_sys_getpeername(struct lwp *, const struct linux_sys_getpeername_args *, register_t *);
1532
1533int	linux_sys_getrlimit(struct lwp *, const struct linux_sys_getrlimit_args *, register_t *);
1534
1535int	linux_sys_setrlimit(struct lwp *, const struct linux_sys_setrlimit_args *, register_t *);
1536
1537int	sys_setsid(struct lwp *, const void *, register_t *);
1538
1539int	linux_sys_getsockname(struct lwp *, const struct linux_sys_getsockname_args *, register_t *);
1540
1541int	linux_sys_sigaction(struct lwp *, const struct linux_sys_sigaction_args *, register_t *);
1542
1543int	compat_43_sys_getdirentries(struct lwp *, const struct compat_43_sys_getdirentries_args *, register_t *);
1544
1545int	linux_sys_osf1_statfs(struct lwp *, const struct linux_sys_osf1_statfs_args *, register_t *);
1546
1547int	linux_sys_osf1_fstatfs(struct lwp *, const struct linux_sys_osf1_fstatfs_args *, register_t *);
1548
1549int	compat_09_sys_getdomainname(struct lwp *, const struct compat_09_sys_getdomainname_args *, register_t *);
1550
1551int	linux_sys_setdomainname(struct lwp *, const struct linux_sys_setdomainname_args *, register_t *);
1552
1553int	linux_sys_ugetrlimit(struct lwp *, const struct linux_sys_ugetrlimit_args *, register_t *);
1554
1555#ifdef SYSVMSG
1556int	linux_sys_msgctl(struct lwp *, const struct linux_sys_msgctl_args *, register_t *);
1557
1558int	sys_msgget(struct lwp *, const struct sys_msgget_args *, register_t *);
1559
1560int	sys_msgrcv(struct lwp *, const struct sys_msgrcv_args *, register_t *);
1561
1562int	sys_msgsnd(struct lwp *, const struct sys_msgsnd_args *, register_t *);
1563
1564#else
1565#endif
1566#ifdef SYSVSEM
1567int	linux_sys_semctl(struct lwp *, const struct linux_sys_semctl_args *, register_t *);
1568
1569int	sys_semget(struct lwp *, const struct sys_semget_args *, register_t *);
1570
1571int	sys_semop(struct lwp *, const struct sys_semop_args *, register_t *);
1572
1573#else
1574#endif
1575int	linux_sys_olduname(struct lwp *, const struct linux_sys_olduname_args *, register_t *);
1576
1577int	sys___posix_lchown(struct lwp *, const struct sys___posix_lchown_args *, register_t *);
1578
1579#ifdef SYSVSHM
1580int	linux_sys_shmat(struct lwp *, const struct linux_sys_shmat_args *, register_t *);
1581
1582int	linux_sys_shmctl(struct lwp *, const struct linux_sys_shmctl_args *, register_t *);
1583
1584int	sys_shmdt(struct lwp *, const struct sys_shmdt_args *, register_t *);
1585
1586int	linux_sys_shmget(struct lwp *, const struct linux_sys_shmget_args *, register_t *);
1587
1588#else
1589#endif
1590int	sys___msync13(struct lwp *, const struct sys___msync13_args *, register_t *);
1591
1592int	sys_getpgid(struct lwp *, const struct sys_getpgid_args *, register_t *);
1593
1594int	sys_getsid(struct lwp *, const struct sys_getsid_args *, register_t *);
1595
1596int	linux_sys_osf1_sysinfo(struct lwp *, const struct linux_sys_osf1_sysinfo_args *, register_t *);
1597
1598int	linux_sys_osf1_usleep_thread(struct lwp *, const struct linux_sys_osf1_usleep_thread_args *, register_t *);
1599
1600int	linux_sys_osf1_getsysinfo(struct lwp *, const struct linux_sys_osf1_getsysinfo_args *, register_t *);
1601
1602int	linux_sys_osf1_setsysinfo(struct lwp *, const struct linux_sys_osf1_setsysinfo_args *, register_t *);
1603
1604int	linux_sys_fdatasync(struct lwp *, const struct linux_sys_fdatasync_args *, register_t *);
1605
1606int	linux_sys_swapoff(struct lwp *, const struct linux_sys_swapoff_args *, register_t *);
1607
1608int	linux_sys_getdents(struct lwp *, const struct linux_sys_getdents_args *, register_t *);
1609
1610int	linux_sys_reboot(struct lwp *, const struct linux_sys_reboot_args *, register_t *);
1611
1612int	linux_sys_clone(struct lwp *, const struct linux_sys_clone_args *, register_t *);
1613
1614#ifdef EXEC_AOUT
1615int	linux_sys_uselib(struct lwp *, const struct linux_sys_uselib_args *, register_t *);
1616
1617#else
1618#endif
1619int	sys_mlock(struct lwp *, const struct sys_mlock_args *, register_t *);
1620
1621int	sys_munlock(struct lwp *, const struct sys_munlock_args *, register_t *);
1622
1623int	sys_mlockall(struct lwp *, const struct sys_mlockall_args *, register_t *);
1624
1625int	sys_munlockall(struct lwp *, const void *, register_t *);
1626
1627int	linux_sys_sysinfo(struct lwp *, const struct linux_sys_sysinfo_args *, register_t *);
1628
1629int	linux_sys___sysctl(struct lwp *, const struct linux_sys___sysctl_args *, register_t *);
1630
1631int	linux_sys_swapon(struct lwp *, const struct linux_sys_swapon_args *, register_t *);
1632
1633int	linux_sys_times(struct lwp *, const struct linux_sys_times_args *, register_t *);
1634
1635int	linux_sys_personality(struct lwp *, const struct linux_sys_personality_args *, register_t *);
1636
1637int	linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *);
1638
1639int	linux_sys_setfsgid(struct lwp *, const struct linux_sys_setfsgid_args *, register_t *);
1640
1641int	linux_sys_statfs(struct lwp *, const struct linux_sys_statfs_args *, register_t *);
1642
1643int	linux_sys_fstatfs(struct lwp *, const struct linux_sys_fstatfs_args *, register_t *);
1644
1645int	linux_sys_sched_setparam(struct lwp *, const struct linux_sys_sched_setparam_args *, register_t *);
1646
1647int	linux_sys_sched_getparam(struct lwp *, const struct linux_sys_sched_getparam_args *, register_t *);
1648
1649int	linux_sys_sched_setscheduler(struct lwp *, const struct linux_sys_sched_setscheduler_args *, register_t *);
1650
1651int	linux_sys_sched_getscheduler(struct lwp *, const struct linux_sys_sched_getscheduler_args *, register_t *);
1652
1653int	linux_sys_sched_yield(struct lwp *, const void *, register_t *);
1654
1655int	linux_sys_sched_get_priority_max(struct lwp *, const struct linux_sys_sched_get_priority_max_args *, register_t *);
1656
1657int	linux_sys_sched_get_priority_min(struct lwp *, const struct linux_sys_sched_get_priority_min_args *, register_t *);
1658
1659int	linux_sys_uname(struct lwp *, const struct linux_sys_uname_args *, register_t *);
1660
1661int	linux_sys_nanosleep(struct lwp *, const struct linux_sys_nanosleep_args *, register_t *);
1662
1663int	linux_sys_mremap(struct lwp *, const struct linux_sys_mremap_args *, register_t *);
1664
1665int	linux_sys_setresuid(struct lwp *, const struct linux_sys_setresuid_args *, register_t *);
1666
1667int	linux_sys_getresuid(struct lwp *, const struct linux_sys_getresuid_args *, register_t *);
1668
1669int	linux_sys_pread(struct lwp *, const struct linux_sys_pread_args *, register_t *);
1670
1671int	linux_sys_pwrite(struct lwp *, const struct linux_sys_pwrite_args *, register_t *);
1672
1673int	linux_sys_rt_sigreturn(struct lwp *, const struct linux_sys_rt_sigreturn_args *, register_t *);
1674
1675int	linux_sys_rt_sigaction(struct lwp *, const struct linux_sys_rt_sigaction_args *, register_t *);
1676
1677int	linux_sys_rt_sigprocmask(struct lwp *, const struct linux_sys_rt_sigprocmask_args *, register_t *);
1678
1679int	linux_sys_rt_sigpending(struct lwp *, const struct linux_sys_rt_sigpending_args *, register_t *);
1680
1681int	linux_sys_rt_sigtimedwait(struct lwp *, const struct linux_sys_rt_sigtimedwait_args *, register_t *);
1682
1683int	linux_sys_rt_queueinfo(struct lwp *, const struct linux_sys_rt_queueinfo_args *, register_t *);
1684
1685int	linux_sys_rt_sigsuspend(struct lwp *, const struct linux_sys_rt_sigsuspend_args *, register_t *);
1686
1687int	linux_sys_select(struct lwp *, const struct linux_sys_select_args *, register_t *);
1688
1689int	linux_sys_gettimeofday(struct lwp *, const struct linux_sys_gettimeofday_args *, register_t *);
1690
1691int	linux_sys_settimeofday(struct lwp *, const struct linux_sys_settimeofday_args *, register_t *);
1692
1693int	compat_50_sys_getitimer(struct lwp *, const struct compat_50_sys_getitimer_args *, register_t *);
1694
1695int	compat_50_sys_setitimer(struct lwp *, const struct compat_50_sys_setitimer_args *, register_t *);
1696
1697int	compat_50_sys_utimes(struct lwp *, const struct compat_50_sys_utimes_args *, register_t *);
1698
1699int	compat_50_sys_getrusage(struct lwp *, const struct compat_50_sys_getrusage_args *, register_t *);
1700
1701int	linux_sys_wait4(struct lwp *, const struct linux_sys_wait4_args *, register_t *);
1702
1703int	sys___getcwd(struct lwp *, const struct sys___getcwd_args *, register_t *);
1704
1705int	sys_mincore(struct lwp *, const struct sys_mincore_args *, register_t *);
1706
1707int	linux_sys_getdents64(struct lwp *, const struct linux_sys_getdents64_args *, register_t *);
1708
1709int	linux_sys_gettid(struct lwp *, const void *, register_t *);
1710
1711int	linux_sys_readahead(struct lwp *, const struct linux_sys_readahead_args *, register_t *);
1712
1713int	linux_sys_tkill(struct lwp *, const struct linux_sys_tkill_args *, register_t *);
1714
1715int	linux_sys_setxattr(struct lwp *, const struct linux_sys_setxattr_args *, register_t *);
1716
1717int	linux_sys_lsetxattr(struct lwp *, const struct linux_sys_lsetxattr_args *, register_t *);
1718
1719int	linux_sys_fsetxattr(struct lwp *, const struct linux_sys_fsetxattr_args *, register_t *);
1720
1721int	linux_sys_getxattr(struct lwp *, const struct linux_sys_getxattr_args *, register_t *);
1722
1723int	linux_sys_lgetxattr(struct lwp *, const struct linux_sys_lgetxattr_args *, register_t *);
1724
1725int	linux_sys_fgetxattr(struct lwp *, const struct linux_sys_fgetxattr_args *, register_t *);
1726
1727int	linux_sys_listxattr(struct lwp *, const struct linux_sys_listxattr_args *, register_t *);
1728
1729int	linux_sys_llistxattr(struct lwp *, const struct linux_sys_llistxattr_args *, register_t *);
1730
1731int	linux_sys_flistxattr(struct lwp *, const struct linux_sys_flistxattr_args *, register_t *);
1732
1733int	linux_sys_removexattr(struct lwp *, const struct linux_sys_removexattr_args *, register_t *);
1734
1735int	linux_sys_lremovexattr(struct lwp *, const struct linux_sys_lremovexattr_args *, register_t *);
1736
1737int	linux_sys_fremovexattr(struct lwp *, const struct linux_sys_fremovexattr_args *, register_t *);
1738
1739int	linux_sys_futex(struct lwp *, const struct linux_sys_futex_args *, register_t *);
1740
1741int	linux_sys_sched_setaffinity(struct lwp *, const struct linux_sys_sched_setaffinity_args *, register_t *);
1742
1743int	linux_sys_sched_getaffinity(struct lwp *, const struct linux_sys_sched_getaffinity_args *, register_t *);
1744
1745int	linux_sys_exit_group(struct lwp *, const struct linux_sys_exit_group_args *, register_t *);
1746
1747int	linux_sys_epoll_create(struct lwp *, const struct linux_sys_epoll_create_args *, register_t *);
1748
1749int	linux_sys_epoll_ctl(struct lwp *, const struct linux_sys_epoll_ctl_args *, register_t *);
1750
1751int	linux_sys_epoll_wait(struct lwp *, const struct linux_sys_epoll_wait_args *, register_t *);
1752
1753int	linux_sys_set_tid_address(struct lwp *, const struct linux_sys_set_tid_address_args *, register_t *);
1754
1755int	linux_sys_fadvise64(struct lwp *, const struct linux_sys_fadvise64_args *, register_t *);
1756
1757int	linux_sys_timer_create(struct lwp *, const struct linux_sys_timer_create_args *, register_t *);
1758
1759int	linux_sys_timer_settime(struct lwp *, const struct linux_sys_timer_settime_args *, register_t *);
1760
1761int	linux_sys_timer_gettime(struct lwp *, const struct linux_sys_timer_gettime_args *, register_t *);
1762
1763int	sys_timer_getoverrun(struct lwp *, const struct sys_timer_getoverrun_args *, register_t *);
1764
1765int	sys_timer_delete(struct lwp *, const struct sys_timer_delete_args *, register_t *);
1766
1767int	linux_sys_clock_settime(struct lwp *, const struct linux_sys_clock_settime_args *, register_t *);
1768
1769int	linux_sys_clock_gettime(struct lwp *, const struct linux_sys_clock_gettime_args *, register_t *);
1770
1771int	linux_sys_clock_getres(struct lwp *, const struct linux_sys_clock_getres_args *, register_t *);
1772
1773int	linux_sys_clock_nanosleep(struct lwp *, const struct linux_sys_clock_nanosleep_args *, register_t *);
1774
1775int	linux_sys_tgkill(struct lwp *, const struct linux_sys_tgkill_args *, register_t *);
1776
1777int	linux_sys_stat64(struct lwp *, const struct linux_sys_stat64_args *, register_t *);
1778
1779int	linux_sys_lstat64(struct lwp *, const struct linux_sys_lstat64_args *, register_t *);
1780
1781int	linux_sys_fstat64(struct lwp *, const struct linux_sys_fstat64_args *, register_t *);
1782
1783int	linux_sys_waitid(struct lwp *, const struct linux_sys_waitid_args *, register_t *);
1784
1785int	linux_sys_inotify_init(struct lwp *, const void *, register_t *);
1786
1787int	linux_sys_inotify_add_watch(struct lwp *, const struct linux_sys_inotify_add_watch_args *, register_t *);
1788
1789int	linux_sys_inotify_rm_watch(struct lwp *, const struct linux_sys_inotify_rm_watch_args *, register_t *);
1790
1791int	linux_sys_openat(struct lwp *, const struct linux_sys_openat_args *, register_t *);
1792
1793int	sys_mkdirat(struct lwp *, const struct sys_mkdirat_args *, register_t *);
1794
1795int	linux_sys_mknodat(struct lwp *, const struct linux_sys_mknodat_args *, register_t *);
1796
1797int	linux_sys_fchownat(struct lwp *, const struct linux_sys_fchownat_args *, register_t *);
1798
1799int	linux_sys_fstatat64(struct lwp *, const struct linux_sys_fstatat64_args *, register_t *);
1800
1801int	linux_sys_unlinkat(struct lwp *, const struct linux_sys_unlinkat_args *, register_t *);
1802
1803int	sys_renameat(struct lwp *, const struct sys_renameat_args *, register_t *);
1804
1805int	linux_sys_linkat(struct lwp *, const struct linux_sys_linkat_args *, register_t *);
1806
1807int	sys_symlinkat(struct lwp *, const struct sys_symlinkat_args *, register_t *);
1808
1809int	sys_readlinkat(struct lwp *, const struct sys_readlinkat_args *, register_t *);
1810
1811int	linux_sys_fchmodat(struct lwp *, const struct linux_sys_fchmodat_args *, register_t *);
1812
1813int	linux_sys_faccessat(struct lwp *, const struct linux_sys_faccessat_args *, register_t *);
1814
1815int	linux_sys_pselect6(struct lwp *, const struct linux_sys_pselect6_args *, register_t *);
1816
1817int	linux_sys_ppoll(struct lwp *, const struct linux_sys_ppoll_args *, register_t *);
1818
1819int	sys___futex_set_robust_list(struct lwp *, const struct sys___futex_set_robust_list_args *, register_t *);
1820
1821int	sys___futex_get_robust_list(struct lwp *, const struct sys___futex_get_robust_list_args *, register_t *);
1822
1823int	linux_sys_epoll_pwait(struct lwp *, const struct linux_sys_epoll_pwait_args *, register_t *);
1824
1825int	linux_sys_utimensat(struct lwp *, const struct linux_sys_utimensat_args *, register_t *);
1826
1827int	linux_sys_eventfd(struct lwp *, const struct linux_sys_eventfd_args *, register_t *);
1828
1829int	linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, register_t *);
1830
1831int	linux_sys_fallocate(struct lwp *, const struct linux_sys_fallocate_args *, register_t *);
1832
1833int	linux_sys_timerfd_create(struct lwp *, const struct linux_sys_timerfd_create_args *, register_t *);
1834
1835int	linux_sys_timerfd_settime(struct lwp *, const struct linux_sys_timerfd_settime_args *, register_t *);
1836
1837int	linux_sys_timerfd_gettime(struct lwp *, const struct linux_sys_timerfd_gettime_args *, register_t *);
1838
1839int	linux_sys_eventfd2(struct lwp *, const struct linux_sys_eventfd2_args *, register_t *);
1840
1841int	linux_sys_epoll_create1(struct lwp *, const struct linux_sys_epoll_create1_args *, register_t *);
1842
1843int	linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *);
1844
1845int	linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *);
1846
1847int	linux_sys_inotify_init1(struct lwp *, const struct linux_sys_inotify_init1_args *, register_t *);
1848
1849int	linux_sys_preadv(struct lwp *, const struct linux_sys_preadv_args *, register_t *);
1850
1851int	linux_sys_pwritev(struct lwp *, const struct linux_sys_pwritev_args *, register_t *);
1852
1853int	linux_sys_prlimit64(struct lwp *, const struct linux_sys_prlimit64_args *, register_t *);
1854
1855int	linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *);
1856
1857int	linux_sys_sendmmsg(struct lwp *, const struct linux_sys_sendmmsg_args *, register_t *);
1858
1859int	linux_sys_statx(struct lwp *, const struct linux_sys_statx_args *, register_t *);
1860
1861int	linux_sys_close_range(struct lwp *, const struct linux_sys_close_range_args *, register_t *);
1862
1863int	linux_sys_epoll_pwait2(struct lwp *, const struct linux_sys_epoll_pwait2_args *, register_t *);
1864
1865#endif /* _LINUX_SYS_SYSCALLARGS_H_ */
1866