xref: /netbsd-src/sys/compat/linux/arch/aarch64/linux_syscallargs.h (revision f905d8d65a219cefc3d70bbe4b4489f134576709)
1 /* $NetBSD: linux_syscallargs.h,v 1.13 2024/09/28 19:36:19 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.14 2024/09/28 19:35:55 christos Exp
8  */
9 
10 #ifndef _LINUX_SYS_SYSCALLARGS_H_
11 #define	_LINUX_SYS_SYSCALLARGS_H_
12 
13 /* Forward declaration */
14 struct 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 
37 struct linux_sys_setxattr_args {
38 	syscallarg(char *) path;
39 	syscallarg(char *) name;
40 	syscallarg(void *) value;
41 	syscallarg(size_t) size;
42 	syscallarg(int) flags;
43 };
44 check_syscall_args(linux_sys_setxattr)
45 
46 struct linux_sys_lsetxattr_args {
47 	syscallarg(char *) path;
48 	syscallarg(char *) name;
49 	syscallarg(void *) value;
50 	syscallarg(size_t) size;
51 	syscallarg(int) flags;
52 };
53 check_syscall_args(linux_sys_lsetxattr)
54 
55 struct linux_sys_fsetxattr_args {
56 	syscallarg(int) fd;
57 	syscallarg(char *) name;
58 	syscallarg(void *) value;
59 	syscallarg(size_t) size;
60 	syscallarg(int) flags;
61 };
62 check_syscall_args(linux_sys_fsetxattr)
63 
64 struct linux_sys_getxattr_args {
65 	syscallarg(char *) path;
66 	syscallarg(char *) name;
67 	syscallarg(void *) value;
68 	syscallarg(size_t) size;
69 };
70 check_syscall_args(linux_sys_getxattr)
71 
72 struct linux_sys_lgetxattr_args {
73 	syscallarg(char *) path;
74 	syscallarg(char *) name;
75 	syscallarg(void *) value;
76 	syscallarg(size_t) size;
77 };
78 check_syscall_args(linux_sys_lgetxattr)
79 
80 struct linux_sys_fgetxattr_args {
81 	syscallarg(int) fd;
82 	syscallarg(char *) name;
83 	syscallarg(void *) value;
84 	syscallarg(size_t) size;
85 };
86 check_syscall_args(linux_sys_fgetxattr)
87 
88 struct linux_sys_listxattr_args {
89 	syscallarg(char *) path;
90 	syscallarg(char *) list;
91 	syscallarg(size_t) size;
92 };
93 check_syscall_args(linux_sys_listxattr)
94 
95 struct linux_sys_llistxattr_args {
96 	syscallarg(char *) path;
97 	syscallarg(char *) list;
98 	syscallarg(size_t) size;
99 };
100 check_syscall_args(linux_sys_llistxattr)
101 
102 struct linux_sys_flistxattr_args {
103 	syscallarg(int) fd;
104 	syscallarg(char *) list;
105 	syscallarg(size_t) size;
106 };
107 check_syscall_args(linux_sys_flistxattr)
108 
109 struct linux_sys_removexattr_args {
110 	syscallarg(char *) path;
111 	syscallarg(char *) name;
112 };
113 check_syscall_args(linux_sys_removexattr)
114 
115 struct linux_sys_lremovexattr_args {
116 	syscallarg(char *) path;
117 	syscallarg(char *) name;
118 };
119 check_syscall_args(linux_sys_lremovexattr)
120 
121 struct linux_sys_fremovexattr_args {
122 	syscallarg(int) fd;
123 	syscallarg(char *) name;
124 };
125 check_syscall_args(linux_sys_fremovexattr)
126 
127 struct sys___getcwd_args;
128 
129 struct linux_sys_eventfd2_args {
130 	syscallarg(unsigned int) initval;
131 	syscallarg(int) flags;
132 };
133 check_syscall_args(linux_sys_eventfd2)
134 
135 struct linux_sys_epoll_create1_args {
136 	syscallarg(int) flags;
137 };
138 check_syscall_args(linux_sys_epoll_create1)
139 
140 struct linux_sys_epoll_ctl_args {
141 	syscallarg(int) epfd;
142 	syscallarg(int) op;
143 	syscallarg(int) fd;
144 	syscallarg(struct linux_epoll_event *) event;
145 };
146 check_syscall_args(linux_sys_epoll_ctl)
147 
148 struct linux_sys_epoll_pwait_args {
149 	syscallarg(int) epfd;
150 	syscallarg(struct linux_epoll_event *) events;
151 	syscallarg(int) maxevents;
152 	syscallarg(int) timeout;
153 	syscallarg(const linux_sigset_t *) sigmask;
154 };
155 check_syscall_args(linux_sys_epoll_pwait)
156 
157 struct sys_dup_args;
158 
159 struct linux_sys_dup3_args {
160 	syscallarg(int) from;
161 	syscallarg(int) to;
162 	syscallarg(int) flags;
163 };
164 check_syscall_args(linux_sys_dup3)
165 
166 struct linux_sys_fcntl_args {
167 	syscallarg(int) fd;
168 	syscallarg(int) cmd;
169 	syscallarg(void *) arg;
170 };
171 check_syscall_args(linux_sys_fcntl)
172 
173 struct linux_sys_inotify_init1_args {
174 	syscallarg(int) flags;
175 };
176 check_syscall_args(linux_sys_inotify_init1)
177 
178 struct linux_sys_inotify_add_watch_args {
179 	syscallarg(int) fd;
180 	syscallarg(const char *) pathname;
181 	syscallarg(uint32_t) mask;
182 };
183 check_syscall_args(linux_sys_inotify_add_watch)
184 
185 struct linux_sys_inotify_rm_watch_args {
186 	syscallarg(int) fd;
187 	syscallarg(int) wd;
188 };
189 check_syscall_args(linux_sys_inotify_rm_watch)
190 
191 struct linux_sys_ioctl_args {
192 	syscallarg(int) fd;
193 	syscallarg(u_long) com;
194 	syscallarg(void *) data;
195 };
196 check_syscall_args(linux_sys_ioctl)
197 
198 struct sys_flock_args;
199 
200 struct linux_sys_mknodat_args {
201 	syscallarg(int) fd;
202 	syscallarg(const char *) path;
203 	syscallarg(linux_umode_t) mode;
204 	syscallarg(unsigned) dev;
205 };
206 check_syscall_args(linux_sys_mknodat)
207 
208 struct sys_mkdirat_args;
209 
210 struct linux_sys_unlinkat_args {
211 	syscallarg(int) fd;
212 	syscallarg(const char *) path;
213 	syscallarg(int) flag;
214 };
215 check_syscall_args(linux_sys_unlinkat)
216 
217 struct sys_symlinkat_args;
218 
219 struct linux_sys_linkat_args {
220 	syscallarg(int) fd1;
221 	syscallarg(const char *) name1;
222 	syscallarg(int) fd2;
223 	syscallarg(const char *) name2;
224 	syscallarg(int) flags;
225 };
226 check_syscall_args(linux_sys_linkat)
227 
228 struct sys_renameat_args;
229 
230 struct linux_sys_statfs_args {
231 	syscallarg(const char *) path;
232 	syscallarg(struct linux_statfs *) sp;
233 };
234 check_syscall_args(linux_sys_statfs)
235 
236 struct linux_sys_fstatfs_args {
237 	syscallarg(int) fd;
238 	syscallarg(struct linux_statfs *) sp;
239 };
240 check_syscall_args(linux_sys_fstatfs)
241 
242 struct linux_sys_truncate64_args {
243 	syscallarg(const char *) path;
244 	syscallarg(off_t) length;
245 };
246 check_syscall_args(linux_sys_truncate64)
247 
248 struct linux_sys_ftruncate64_args {
249 	syscallarg(unsigned int) fd;
250 	syscallarg(off_t) length;
251 };
252 check_syscall_args(linux_sys_ftruncate64)
253 
254 struct linux_sys_fallocate_args {
255 	syscallarg(int) fd;
256 	syscallarg(int) mode;
257 	syscallarg(off_t) offset;
258 	syscallarg(off_t) len;
259 };
260 check_syscall_args(linux_sys_fallocate)
261 
262 struct linux_sys_faccessat_args {
263 	syscallarg(int) fd;
264 	syscallarg(const char *) path;
265 	syscallarg(int) amode;
266 };
267 check_syscall_args(linux_sys_faccessat)
268 
269 struct sys_chdir_args;
270 
271 struct sys_fchdir_args;
272 
273 struct sys_chroot_args;
274 
275 struct sys_fchmod_args;
276 
277 struct linux_sys_fchmodat_args {
278 	syscallarg(int) fd;
279 	syscallarg(const char *) path;
280 	syscallarg(linux_umode_t) mode;
281 };
282 check_syscall_args(linux_sys_fchmodat)
283 
284 struct linux_sys_fchownat_args {
285 	syscallarg(int) fd;
286 	syscallarg(const char *) path;
287 	syscallarg(uid_t) owner;
288 	syscallarg(gid_t) group;
289 	syscallarg(int) flag;
290 };
291 check_syscall_args(linux_sys_fchownat)
292 
293 struct sys___posix_fchown_args;
294 
295 struct linux_sys_openat_args {
296 	syscallarg(int) fd;
297 	syscallarg(const char *) path;
298 	syscallarg(int) flags;
299 	syscallarg(linux_umode_t) mode;
300 };
301 check_syscall_args(linux_sys_openat)
302 
303 struct sys_close_args;
304 
305 struct linux_sys_pipe2_args {
306 	syscallarg(int *) pfds;
307 	syscallarg(int) flags;
308 };
309 check_syscall_args(linux_sys_pipe2)
310 
311 struct linux_sys_getdents64_args {
312 	syscallarg(int) fd;
313 	syscallarg(struct linux_dirent64 *) dent;
314 	syscallarg(unsigned int) count;
315 };
316 check_syscall_args(linux_sys_getdents64)
317 
318 struct compat_43_sys_lseek_args;
319 
320 struct sys_read_args;
321 
322 struct sys_write_args;
323 
324 struct sys_readv_args;
325 
326 struct sys_writev_args;
327 
328 struct linux_sys_pread_args {
329 	syscallarg(int) fd;
330 	syscallarg(char *) buf;
331 	syscallarg(size_t) nbyte;
332 	syscallarg(off_t) offset;
333 };
334 check_syscall_args(linux_sys_pread)
335 
336 struct linux_sys_pwrite_args {
337 	syscallarg(int) fd;
338 	syscallarg(char *) buf;
339 	syscallarg(size_t) nbyte;
340 	syscallarg(off_t) offset;
341 };
342 check_syscall_args(linux_sys_pwrite)
343 
344 struct linux_sys_preadv_args {
345 	syscallarg(int) fd;
346 	syscallarg(const struct iovec *) iovp;
347 	syscallarg(int) iovcnt;
348 	syscallarg(unsigned long) off_lo;
349 	syscallarg(unsigned long) off_hi;
350 };
351 check_syscall_args(linux_sys_preadv)
352 
353 struct linux_sys_pwritev_args {
354 	syscallarg(int) fd;
355 	syscallarg(const struct iovcnt *) iovp;
356 	syscallarg(int) iovcnt;
357 	syscallarg(unsigned long) off_lo;
358 	syscallarg(unsigned long) off_hi;
359 };
360 check_syscall_args(linux_sys_pwritev)
361 
362 struct linux_sys_pselect6_args {
363 	syscallarg(int) nfds;
364 	syscallarg(fd_set *) readfds;
365 	syscallarg(fd_set *) writefds;
366 	syscallarg(fd_set *) exceptfds;
367 	syscallarg(struct linux_timespec *) timeout;
368 	syscallarg(linux_sized_sigset_t *) ss;
369 };
370 check_syscall_args(linux_sys_pselect6)
371 
372 struct linux_sys_ppoll_args {
373 	syscallarg(struct pollfd *) fds;
374 	syscallarg(u_int) nfds;
375 	syscallarg(struct linux_timespec *) timeout;
376 	syscallarg(linux_sigset_t *) sigset;
377 };
378 check_syscall_args(linux_sys_ppoll)
379 
380 struct sys_readlinkat_args;
381 
382 struct linux_sys_fstatat64_args {
383 	syscallarg(int) fd;
384 	syscallarg(const char *) path;
385 	syscallarg(struct linux_stat *) sp;
386 	syscallarg(int) flag;
387 };
388 check_syscall_args(linux_sys_fstatat64)
389 
390 struct linux_sys_fstat64_args {
391 	syscallarg(int) fd;
392 	syscallarg(struct linux_stat *) sp;
393 };
394 check_syscall_args(linux_sys_fstat64)
395 
396 struct sys_fsync_args;
397 
398 struct linux_sys_fdatasync_args {
399 	syscallarg(int) fd;
400 };
401 check_syscall_args(linux_sys_fdatasync)
402 
403 struct linux_sys_sync_file_range_args {
404 	syscallarg(int) fd;
405 	syscallarg(off_t) offset;
406 	syscallarg(off_t) nbytes;
407 	syscallarg(unsigned int) flags;
408 };
409 check_syscall_args(linux_sys_sync_file_range)
410 
411 struct linux_sys_timerfd_create_args {
412 	syscallarg(clockid_t) clock_id;
413 	syscallarg(int) flags;
414 };
415 check_syscall_args(linux_sys_timerfd_create)
416 
417 struct linux_sys_timerfd_settime_args {
418 	syscallarg(int) fd;
419 	syscallarg(int) flags;
420 	syscallarg(const struct linux_itimerspec *) tim;
421 	syscallarg(struct linux_itimerspec *) otim;
422 };
423 check_syscall_args(linux_sys_timerfd_settime)
424 
425 struct linux_sys_timerfd_gettime_args {
426 	syscallarg(int) fd;
427 	syscallarg(struct linux_itimerspec *) tim;
428 };
429 check_syscall_args(linux_sys_timerfd_gettime)
430 
431 struct linux_sys_utimensat_args {
432 	syscallarg(int) fd;
433 	syscallarg(const char *) path;
434 	syscallarg(struct linux_timespec *) times;
435 	syscallarg(int) flag;
436 };
437 check_syscall_args(linux_sys_utimensat)
438 
439 struct sys_acct_args;
440 
441 struct linux_sys_personality_args {
442 	syscallarg(unsigned long) per;
443 };
444 check_syscall_args(linux_sys_personality)
445 
446 struct linux_sys_exit_args {
447 	syscallarg(int) rval;
448 };
449 check_syscall_args(linux_sys_exit)
450 
451 struct linux_sys_exit_group_args {
452 	syscallarg(int) error_code;
453 };
454 check_syscall_args(linux_sys_exit_group)
455 
456 struct linux_sys_waitid_args {
457 	syscallarg(int) idtype;
458 	syscallarg(id_t) id;
459 	syscallarg(linux_siginfo_t *) infop;
460 	syscallarg(int) options;
461 	syscallarg(struct rusage50 *) rusage;
462 };
463 check_syscall_args(linux_sys_waitid)
464 
465 struct linux_sys_set_tid_address_args {
466 	syscallarg(int *) tid;
467 };
468 check_syscall_args(linux_sys_set_tid_address)
469 
470 struct linux_sys_futex_args {
471 	syscallarg(int *) uaddr;
472 	syscallarg(int) op;
473 	syscallarg(int) val;
474 	syscallarg(const struct linux_timespec *) timeout;
475 	syscallarg(int *) uaddr2;
476 	syscallarg(int) val3;
477 };
478 check_syscall_args(linux_sys_futex)
479 
480 struct sys___futex_set_robust_list_args;
481 
482 struct sys___futex_get_robust_list_args;
483 
484 struct linux_sys_nanosleep_args {
485 	syscallarg(const struct linux_timespec *) rqtp;
486 	syscallarg(struct linux_timespec *) rmtp;
487 };
488 check_syscall_args(linux_sys_nanosleep)
489 
490 struct compat_50_sys_getitimer_args;
491 
492 struct compat_50_sys_setitimer_args;
493 
494 struct linux_sys_timer_create_args {
495 	syscallarg(clockid_t) clockid;
496 	syscallarg(struct linux_sigevent *) evp;
497 	syscallarg(timer_t *) timerid;
498 };
499 check_syscall_args(linux_sys_timer_create)
500 
501 struct linux_sys_timer_gettime_args {
502 	syscallarg(timer_t) timerid;
503 	syscallarg(struct linux_itimerspec *) tim;
504 };
505 check_syscall_args(linux_sys_timer_gettime)
506 
507 struct sys_timer_getoverrun_args;
508 
509 struct linux_sys_timer_settime_args {
510 	syscallarg(timer_t) timerid;
511 	syscallarg(int) flags;
512 	syscallarg(const struct linux_itimerspec *) tim;
513 	syscallarg(struct linux_itimerspec *) otim;
514 };
515 check_syscall_args(linux_sys_timer_settime)
516 
517 struct sys_timer_delete_args;
518 
519 struct linux_sys_clock_settime_args {
520 	syscallarg(clockid_t) which;
521 	syscallarg(struct linux_timespec *) tp;
522 };
523 check_syscall_args(linux_sys_clock_settime)
524 
525 struct linux_sys_clock_gettime_args {
526 	syscallarg(clockid_t) which;
527 	syscallarg(struct linux_timespec *) tp;
528 };
529 check_syscall_args(linux_sys_clock_gettime)
530 
531 struct linux_sys_clock_getres_args {
532 	syscallarg(clockid_t) which;
533 	syscallarg(struct linux_timespec *) tp;
534 };
535 check_syscall_args(linux_sys_clock_getres)
536 
537 struct linux_sys_clock_nanosleep_args {
538 	syscallarg(clockid_t) which;
539 	syscallarg(int) flags;
540 	syscallarg(struct linux_timespec *) rqtp;
541 	syscallarg(struct linux_timespec *) rmtp;
542 };
543 check_syscall_args(linux_sys_clock_nanosleep)
544 
545 struct linux_sys_ptrace_args {
546 	syscallarg(long) request;
547 	syscallarg(long) pid;
548 	syscallarg(long) addr;
549 	syscallarg(long) data;
550 };
551 check_syscall_args(linux_sys_ptrace)
552 
553 struct linux_sys_sched_setparam_args {
554 	syscallarg(pid_t) pid;
555 	syscallarg(const struct linux_sched_param *) sp;
556 };
557 check_syscall_args(linux_sys_sched_setparam)
558 
559 struct linux_sys_sched_setscheduler_args {
560 	syscallarg(pid_t) pid;
561 	syscallarg(int) policy;
562 	syscallarg(const struct linux_sched_param *) sp;
563 };
564 check_syscall_args(linux_sys_sched_setscheduler)
565 
566 struct linux_sys_sched_getscheduler_args {
567 	syscallarg(pid_t) pid;
568 };
569 check_syscall_args(linux_sys_sched_getscheduler)
570 
571 struct linux_sys_sched_getparam_args {
572 	syscallarg(pid_t) pid;
573 	syscallarg(struct linux_sched_param *) sp;
574 };
575 check_syscall_args(linux_sys_sched_getparam)
576 
577 struct linux_sys_sched_setaffinity_args {
578 	syscallarg(pid_t) pid;
579 	syscallarg(unsigned int) len;
580 	syscallarg(unsigned long *) mask;
581 };
582 check_syscall_args(linux_sys_sched_setaffinity)
583 
584 struct linux_sys_sched_getaffinity_args {
585 	syscallarg(pid_t) pid;
586 	syscallarg(unsigned int) len;
587 	syscallarg(unsigned long *) mask;
588 };
589 check_syscall_args(linux_sys_sched_getaffinity)
590 
591 struct linux_sys_sched_get_priority_max_args {
592 	syscallarg(int) policy;
593 };
594 check_syscall_args(linux_sys_sched_get_priority_max)
595 
596 struct linux_sys_sched_get_priority_min_args {
597 	syscallarg(int) policy;
598 };
599 check_syscall_args(linux_sys_sched_get_priority_min)
600 
601 struct linux_sys_kill_args {
602 	syscallarg(int) pid;
603 	syscallarg(int) signum;
604 };
605 check_syscall_args(linux_sys_kill)
606 
607 struct linux_sys_tkill_args {
608 	syscallarg(int) tid;
609 	syscallarg(int) sig;
610 };
611 check_syscall_args(linux_sys_tkill)
612 
613 struct linux_sys_tgkill_args {
614 	syscallarg(int) tgid;
615 	syscallarg(int) tid;
616 	syscallarg(int) sig;
617 };
618 check_syscall_args(linux_sys_tgkill)
619 
620 struct linux_sys_sigaltstack_args {
621 	syscallarg(const struct linux_sigaltstack *) ss;
622 	syscallarg(struct linux_sigaltstack *) oss;
623 };
624 check_syscall_args(linux_sys_sigaltstack)
625 
626 struct linux_sys_rt_sigsuspend_args {
627 	syscallarg(linux_sigset_t *) unewset;
628 	syscallarg(size_t) sigsetsize;
629 };
630 check_syscall_args(linux_sys_rt_sigsuspend)
631 
632 struct linux_sys_rt_sigaction_args {
633 	syscallarg(int) signum;
634 	syscallarg(const struct linux_sigaction *) nsa;
635 	syscallarg(struct linux_sigaction *) osa;
636 	syscallarg(size_t) sigsetsize;
637 };
638 check_syscall_args(linux_sys_rt_sigaction)
639 
640 struct linux_sys_rt_sigprocmask_args {
641 	syscallarg(int) how;
642 	syscallarg(const linux_sigset_t *) set;
643 	syscallarg(linux_sigset_t *) oset;
644 	syscallarg(size_t) sigsetsize;
645 };
646 check_syscall_args(linux_sys_rt_sigprocmask)
647 
648 struct linux_sys_rt_sigpending_args {
649 	syscallarg(linux_sigset_t *) set;
650 	syscallarg(size_t) sigsetsize;
651 };
652 check_syscall_args(linux_sys_rt_sigpending)
653 
654 struct linux_sys_rt_sigtimedwait_args {
655 	syscallarg(const linux_sigset_t *) set;
656 	syscallarg(linux_siginfo_t *) info;
657 	syscallarg(const struct linux_timespec *) timeout;
658 };
659 check_syscall_args(linux_sys_rt_sigtimedwait)
660 
661 struct sys_setpriority_args;
662 
663 struct linux_sys_getpriority_args {
664 	syscallarg(int) which;
665 	syscallarg(int) who;
666 };
667 check_syscall_args(linux_sys_getpriority)
668 
669 struct linux_sys_reboot_args {
670 	syscallarg(int) magic1;
671 	syscallarg(int) magic2;
672 	syscallarg(int) cmd;
673 	syscallarg(void *) arg;
674 };
675 check_syscall_args(linux_sys_reboot)
676 
677 struct sys_setregid_args;
678 
679 struct sys_setgid_args;
680 
681 struct sys_setreuid_args;
682 
683 struct sys_setuid_args;
684 
685 struct linux_sys_setresuid_args {
686 	syscallarg(uid_t) ruid;
687 	syscallarg(uid_t) euid;
688 	syscallarg(uid_t) suid;
689 };
690 check_syscall_args(linux_sys_setresuid)
691 
692 struct linux_sys_getresuid_args {
693 	syscallarg(uid_t *) ruid;
694 	syscallarg(uid_t *) euid;
695 	syscallarg(uid_t *) suid;
696 };
697 check_syscall_args(linux_sys_getresuid)
698 
699 struct linux_sys_setresgid_args {
700 	syscallarg(gid_t) rgid;
701 	syscallarg(gid_t) egid;
702 	syscallarg(gid_t) sgid;
703 };
704 check_syscall_args(linux_sys_setresgid)
705 
706 struct linux_sys_getresgid_args {
707 	syscallarg(gid_t *) rgid;
708 	syscallarg(gid_t *) egid;
709 	syscallarg(gid_t *) sgid;
710 };
711 check_syscall_args(linux_sys_getresgid)
712 
713 struct linux_sys_setfsuid_args {
714 	syscallarg(uid_t) uid;
715 };
716 check_syscall_args(linux_sys_setfsuid)
717 
718 struct linux_sys_setfsgid_args {
719 	syscallarg(gid_t) gid;
720 };
721 check_syscall_args(linux_sys_setfsgid)
722 
723 struct linux_sys_times_args {
724 	syscallarg(struct times *) tms;
725 };
726 check_syscall_args(linux_sys_times)
727 
728 struct sys_setpgid_args;
729 
730 struct sys_getpgid_args;
731 
732 struct sys_getsid_args;
733 
734 struct sys_getgroups_args;
735 
736 struct sys_setgroups_args;
737 
738 struct linux_sys_uname_args {
739 	syscallarg(struct linux_utsname *) up;
740 };
741 check_syscall_args(linux_sys_uname)
742 
743 struct compat_43_sys_sethostname_args;
744 
745 struct linux_sys_setdomainname_args {
746 	syscallarg(char *) domainname;
747 	syscallarg(int) len;
748 };
749 check_syscall_args(linux_sys_setdomainname)
750 
751 struct linux_sys_getrlimit_args {
752 	syscallarg(int) which;
753 	syscallarg(struct rlimit *) rlp;
754 };
755 check_syscall_args(linux_sys_getrlimit)
756 
757 struct linux_sys_setrlimit_args {
758 	syscallarg(u_int) which;
759 	syscallarg(struct rlimit *) rlp;
760 };
761 check_syscall_args(linux_sys_setrlimit)
762 
763 struct compat_50_sys_getrusage_args;
764 
765 struct sys_umask_args;
766 
767 struct linux_sys_getcpu_args {
768 	syscallarg(unsigned int *) cpu;
769 	syscallarg(unsigned int *) node;
770 	syscallarg(struct linux_getcpu_cache *) tcache;
771 };
772 check_syscall_args(linux_sys_getcpu)
773 
774 struct linux_sys_gettimeofday_args {
775 	syscallarg(struct timeval50 *) tp;
776 	syscallarg(struct timezone *) tzp;
777 };
778 check_syscall_args(linux_sys_gettimeofday)
779 
780 struct linux_sys_settimeofday_args {
781 	syscallarg(struct timeval50 *) tp;
782 	syscallarg(struct timezone *) tzp;
783 };
784 check_syscall_args(linux_sys_settimeofday)
785 
786 struct linux_sys_sysinfo_args {
787 	syscallarg(struct linux_sysinfo *) arg;
788 };
789 check_syscall_args(linux_sys_sysinfo)
790 
791 struct linux_sys_mq_open_args {
792 	syscallarg(const char *) name;
793 	syscallarg(int) oflag;
794 	syscallarg(linux_umode_t) mode;
795 	syscallarg(struct linux_mq_attr *) attr;
796 };
797 check_syscall_args(linux_sys_mq_open)
798 
799 struct linux_sys_mq_unlink_args {
800 	syscallarg(const char *) name;
801 };
802 check_syscall_args(linux_sys_mq_unlink)
803 
804 struct linux_sys_mq_timedsend_args {
805 	syscallarg(linux_mqd_t) mqdes;
806 	syscallarg(const char *) msg_ptr;
807 	syscallarg(size_t) msg_len;
808 	syscallarg(unsigned int) msg_prio;
809 	syscallarg(const struct linux_timespec *) abs_timeout;
810 };
811 check_syscall_args(linux_sys_mq_timedsend)
812 
813 struct linux_sys_mq_timedreceive_args {
814 	syscallarg(linux_mqd_t) mqdes;
815 	syscallarg(char *) msg_ptr;
816 	syscallarg(size_t) msg_len;
817 	syscallarg(unsigned int *) msg_prio;
818 	syscallarg(const struct linux_timespec *) abs_timeout;
819 };
820 check_syscall_args(linux_sys_mq_timedreceive)
821 
822 struct linux_sys_mq_notify_args {
823 	syscallarg(linux_mqd_t) mqdes;
824 	syscallarg(const struct linux_sigevent *) sevp;
825 };
826 check_syscall_args(linux_sys_mq_notify)
827 
828 struct linux_sys_mq_getsetattr_args {
829 	syscallarg(linux_mqd_t) mqdes;
830 	syscallarg(const struct linux_mq_attr *) newattr;
831 	syscallarg(struct linux_mq_attr *) oldattr;
832 };
833 check_syscall_args(linux_sys_mq_getsetattr)
834 #ifdef SYSVMSG
835 
836 struct sys_msgget_args;
837 
838 struct linux_sys_msgctl_args;
839 
840 struct sys_msgrcv_args;
841 
842 struct sys_msgsnd_args;
843 #else
844 #endif
845 #ifdef SYSVSEM
846 
847 struct sys_semget_args;
848 
849 struct linux_sys_semctl_args {
850 	syscallarg(int) semid;
851 	syscallarg(int) semnum;
852 	syscallarg(int) cmd;
853 	syscallarg(union linux_semun) arg;
854 };
855 check_syscall_args(linux_sys_semctl)
856 
857 struct sys_semop_args;
858 #else
859 #endif
860 #ifdef SYSVSEM
861 
862 struct linux_sys_shmget_args;
863 
864 struct linux_sys_shmctl_args;
865 
866 struct sys_shmat_args;
867 
868 struct sys_shmdt_args;
869 #else
870 #endif
871 
872 struct linux_sys_socket_args {
873 	syscallarg(int) domain;
874 	syscallarg(int) type;
875 	syscallarg(int) protocol;
876 };
877 check_syscall_args(linux_sys_socket)
878 
879 struct linux_sys_socketpair_args {
880 	syscallarg(int) domain;
881 	syscallarg(int) type;
882 	syscallarg(int) protocol;
883 	syscallarg(int *) rsv;
884 };
885 check_syscall_args(linux_sys_socketpair)
886 
887 struct linux_sys_bind_args {
888 	syscallarg(int) s;
889 	syscallarg(const struct osockaddr *) name;
890 	syscallarg(unsigned int) namelen;
891 };
892 check_syscall_args(linux_sys_bind)
893 
894 struct sys_listen_args;
895 
896 struct linux_sys_accept_args {
897 	syscallarg(int) s;
898 	syscallarg(struct osockaddr *) name;
899 	syscallarg(int *) anamelen;
900 };
901 check_syscall_args(linux_sys_accept)
902 
903 struct linux_sys_connect_args {
904 	syscallarg(int) s;
905 	syscallarg(const struct osockaddr *) name;
906 	syscallarg(unsigned int) namelen;
907 };
908 check_syscall_args(linux_sys_connect)
909 
910 struct linux_sys_getsockname_args {
911 	syscallarg(int) fdec;
912 	syscallarg(void *) asa;
913 	syscallarg(int *) alen;
914 };
915 check_syscall_args(linux_sys_getsockname)
916 
917 struct linux_sys_getpeername_args {
918 	syscallarg(int) fdes;
919 	syscallarg(struct sockaddr *) asa;
920 	syscallarg(unsigned int *) alen;
921 };
922 check_syscall_args(linux_sys_getpeername)
923 
924 struct linux_sys_sendto_args {
925 	syscallarg(int) s;
926 	syscallarg(void *) msg;
927 	syscallarg(int) len;
928 	syscallarg(int) flags;
929 	syscallarg(struct osockaddr *) to;
930 	syscallarg(int) tolen;
931 };
932 check_syscall_args(linux_sys_sendto)
933 
934 struct linux_sys_recvfrom_args {
935 	syscallarg(int) s;
936 	syscallarg(void *) buf;
937 	syscallarg(size_t) len;
938 	syscallarg(int) flags;
939 	syscallarg(struct osockaddr *) from;
940 	syscallarg(unsigned int *) fromlenaddr;
941 };
942 check_syscall_args(linux_sys_recvfrom)
943 
944 struct linux_sys_setsockopt_args {
945 	syscallarg(int) s;
946 	syscallarg(int) level;
947 	syscallarg(int) optname;
948 	syscallarg(void *) optval;
949 	syscallarg(int) optlen;
950 };
951 check_syscall_args(linux_sys_setsockopt)
952 
953 struct linux_sys_getsockopt_args {
954 	syscallarg(int) s;
955 	syscallarg(int) level;
956 	syscallarg(int) optname;
957 	syscallarg(void *) optval;
958 	syscallarg(int *) optlen;
959 };
960 check_syscall_args(linux_sys_getsockopt)
961 
962 struct sys_shutdown_args;
963 
964 struct linux_sys_sendmsg_args {
965 	syscallarg(int) s;
966 	syscallarg(const struct linux_msghdr *) msg;
967 	syscallarg(int) flags;
968 };
969 check_syscall_args(linux_sys_sendmsg)
970 
971 struct linux_sys_recvmsg_args {
972 	syscallarg(int) s;
973 	syscallarg(struct linux_msghdr *) msg;
974 	syscallarg(int) flags;
975 };
976 check_syscall_args(linux_sys_recvmsg)
977 
978 struct linux_sys_readahead_args {
979 	syscallarg(int) fd;
980 	syscallarg(off_t) offset;
981 	syscallarg(size_t) count;
982 };
983 check_syscall_args(linux_sys_readahead)
984 
985 struct linux_sys_brk_args {
986 	syscallarg(char *) nsize;
987 };
988 check_syscall_args(linux_sys_brk)
989 
990 struct sys_munmap_args;
991 
992 struct linux_sys_mremap_args {
993 	syscallarg(void *) old_address;
994 	syscallarg(size_t) old_size;
995 	syscallarg(size_t) new_size;
996 	syscallarg(u_long) flags;
997 };
998 check_syscall_args(linux_sys_mremap)
999 
1000 struct linux_sys_clone_args {
1001 	syscallarg(int) flags;
1002 	syscallarg(void *) stack;
1003 	syscallarg(void *) parent_tidptr;
1004 	syscallarg(void *) child_tidptr;
1005 	syscallarg(void *) tls;
1006 };
1007 check_syscall_args(linux_sys_clone)
1008 
1009 struct sys_execve_args;
1010 
1011 struct linux_sys_mmap_args;
1012 
1013 struct linux_sys_fadvise64_args {
1014 	syscallarg(int) fd;
1015 	syscallarg(off_t) offset;
1016 	syscallarg(size_t) len;
1017 	syscallarg(int) advice;
1018 };
1019 check_syscall_args(linux_sys_fadvise64)
1020 
1021 struct linux_sys_swapon_args {
1022 	syscallarg(char *) name;
1023 };
1024 check_syscall_args(linux_sys_swapon)
1025 
1026 struct linux_sys_swapoff_args {
1027 	syscallarg(const char *) path;
1028 };
1029 check_syscall_args(linux_sys_swapoff)
1030 
1031 struct linux_sys_mprotect_args {
1032 	syscallarg(const void *) start;
1033 	syscallarg(unsigned long) len;
1034 	syscallarg(int) prot;
1035 };
1036 check_syscall_args(linux_sys_mprotect)
1037 
1038 struct sys___msync13_args;
1039 
1040 struct sys_mlock_args;
1041 
1042 struct sys_munlock_args;
1043 
1044 struct sys_mlockall_args;
1045 
1046 struct sys_mincore_args;
1047 
1048 struct sys_madvise_args;
1049 
1050 struct linux_sys_accept4_args {
1051 	syscallarg(int) s;
1052 	syscallarg(struct osockaddr *) name;
1053 	syscallarg(int *) anamelen;
1054 	syscallarg(int) flags;
1055 };
1056 check_syscall_args(linux_sys_accept4)
1057 
1058 struct linux_sys_recvmmsg_args {
1059 	syscallarg(int) s;
1060 	syscallarg(struct linux_mmsghdr *) msgvec;
1061 	syscallarg(unsigned int) vlen;
1062 	syscallarg(unsigned int) flags;
1063 	syscallarg(struct timespec *) timeout;
1064 };
1065 check_syscall_args(linux_sys_recvmmsg)
1066 
1067 struct linux_sys_wait4_args {
1068 	syscallarg(int) pid;
1069 	syscallarg(int *) status;
1070 	syscallarg(int) options;
1071 	syscallarg(struct rusage50 *) rusage;
1072 };
1073 check_syscall_args(linux_sys_wait4)
1074 
1075 struct linux_sys_prlimit64_args {
1076 	syscallarg(pid_t) pid;
1077 	syscallarg(int) which;
1078 	syscallarg(struct rlimit *) new_rlp;
1079 	syscallarg(struct rlimit *) old_rlp;
1080 };
1081 check_syscall_args(linux_sys_prlimit64)
1082 
1083 struct linux_sys_syncfs_args {
1084 	syscallarg(int) fd;
1085 };
1086 check_syscall_args(linux_sys_syncfs)
1087 
1088 struct linux_sys_sendmmsg_args {
1089 	syscallarg(int) s;
1090 	syscallarg(struct linux_mmsghdr *) msgvec;
1091 	syscallarg(unsigned int) vlen;
1092 	syscallarg(unsigned int) flags;
1093 };
1094 check_syscall_args(linux_sys_sendmmsg)
1095 
1096 struct linux_sys_renameat2_args {
1097 	syscallarg(int) fromfd;
1098 	syscallarg(const char *) from;
1099 	syscallarg(int) tofd;
1100 	syscallarg(const char *) to;
1101 	syscallarg(unsigned int) flags;
1102 };
1103 check_syscall_args(linux_sys_renameat2)
1104 
1105 struct sys_getrandom_args;
1106 
1107 struct linux_sys_memfd_create_args {
1108 	syscallarg(const char *) name;
1109 	syscallarg(unsigned int) flags;
1110 };
1111 check_syscall_args(linux_sys_memfd_create)
1112 
1113 struct linux_sys_copy_file_range_args {
1114 	syscallarg(int) fd_in;
1115 	syscallarg(off_t *) off_in;
1116 	syscallarg(int) fd_out;
1117 	syscallarg(off_t *) off_out;
1118 	syscallarg(size_t) len;
1119 	syscallarg(unsigned int) flags;
1120 };
1121 check_syscall_args(linux_sys_copy_file_range)
1122 
1123 struct linux_sys_statx_args {
1124 	syscallarg(int) fd;
1125 	syscallarg(const char *) path;
1126 	syscallarg(int) flag;
1127 	syscallarg(unsigned int) mask;
1128 	syscallarg(struct linux_statx *) sp;
1129 };
1130 check_syscall_args(linux_sys_statx)
1131 
1132 struct linux_sys_clone3_args {
1133 	syscallarg(struct linux_user_clone3_args *) cl_args;
1134 	syscallarg(size_t) size;
1135 };
1136 check_syscall_args(linux_sys_clone3)
1137 
1138 struct linux_sys_close_range_args {
1139 	syscallarg(unsigned int) first;
1140 	syscallarg(unsigned int) last;
1141 	syscallarg(unsigned int) flags;
1142 };
1143 check_syscall_args(linux_sys_close_range)
1144 
1145 struct linux_sys_faccessat2_args {
1146 	syscallarg(int) fd;
1147 	syscallarg(const char *) path;
1148 	syscallarg(int) amode;
1149 	syscallarg(int) flags;
1150 };
1151 check_syscall_args(linux_sys_faccessat2)
1152 
1153 struct linux_sys_epoll_pwait2_args {
1154 	syscallarg(int) epfd;
1155 	syscallarg(struct linux_epoll_event *) events;
1156 	syscallarg(int) maxevents;
1157 	syscallarg(const struct linux_timespec *) timeout;
1158 	syscallarg(const linux_sigset_t *) sigmask;
1159 };
1160 check_syscall_args(linux_sys_epoll_pwait2)
1161 
1162 /*
1163  * System call prototypes.
1164  */
1165 
1166 int	linux_sys_setxattr(struct lwp *, const struct linux_sys_setxattr_args *, register_t *);
1167 
1168 int	linux_sys_lsetxattr(struct lwp *, const struct linux_sys_lsetxattr_args *, register_t *);
1169 
1170 int	linux_sys_fsetxattr(struct lwp *, const struct linux_sys_fsetxattr_args *, register_t *);
1171 
1172 int	linux_sys_getxattr(struct lwp *, const struct linux_sys_getxattr_args *, register_t *);
1173 
1174 int	linux_sys_lgetxattr(struct lwp *, const struct linux_sys_lgetxattr_args *, register_t *);
1175 
1176 int	linux_sys_fgetxattr(struct lwp *, const struct linux_sys_fgetxattr_args *, register_t *);
1177 
1178 int	linux_sys_listxattr(struct lwp *, const struct linux_sys_listxattr_args *, register_t *);
1179 
1180 int	linux_sys_llistxattr(struct lwp *, const struct linux_sys_llistxattr_args *, register_t *);
1181 
1182 int	linux_sys_flistxattr(struct lwp *, const struct linux_sys_flistxattr_args *, register_t *);
1183 
1184 int	linux_sys_removexattr(struct lwp *, const struct linux_sys_removexattr_args *, register_t *);
1185 
1186 int	linux_sys_lremovexattr(struct lwp *, const struct linux_sys_lremovexattr_args *, register_t *);
1187 
1188 int	linux_sys_fremovexattr(struct lwp *, const struct linux_sys_fremovexattr_args *, register_t *);
1189 
1190 int	sys___getcwd(struct lwp *, const struct sys___getcwd_args *, register_t *);
1191 
1192 int	linux_sys_eventfd2(struct lwp *, const struct linux_sys_eventfd2_args *, register_t *);
1193 
1194 int	linux_sys_epoll_create1(struct lwp *, const struct linux_sys_epoll_create1_args *, register_t *);
1195 
1196 int	linux_sys_epoll_ctl(struct lwp *, const struct linux_sys_epoll_ctl_args *, register_t *);
1197 
1198 int	linux_sys_epoll_pwait(struct lwp *, const struct linux_sys_epoll_pwait_args *, register_t *);
1199 
1200 int	sys_dup(struct lwp *, const struct sys_dup_args *, register_t *);
1201 
1202 int	linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *);
1203 
1204 int	linux_sys_fcntl(struct lwp *, const struct linux_sys_fcntl_args *, register_t *);
1205 
1206 int	linux_sys_inotify_init1(struct lwp *, const struct linux_sys_inotify_init1_args *, register_t *);
1207 
1208 int	linux_sys_inotify_add_watch(struct lwp *, const struct linux_sys_inotify_add_watch_args *, register_t *);
1209 
1210 int	linux_sys_inotify_rm_watch(struct lwp *, const struct linux_sys_inotify_rm_watch_args *, register_t *);
1211 
1212 int	linux_sys_ioctl(struct lwp *, const struct linux_sys_ioctl_args *, register_t *);
1213 
1214 int	sys_flock(struct lwp *, const struct sys_flock_args *, register_t *);
1215 
1216 int	linux_sys_mknodat(struct lwp *, const struct linux_sys_mknodat_args *, register_t *);
1217 
1218 int	sys_mkdirat(struct lwp *, const struct sys_mkdirat_args *, register_t *);
1219 
1220 int	linux_sys_unlinkat(struct lwp *, const struct linux_sys_unlinkat_args *, register_t *);
1221 
1222 int	sys_symlinkat(struct lwp *, const struct sys_symlinkat_args *, register_t *);
1223 
1224 int	linux_sys_linkat(struct lwp *, const struct linux_sys_linkat_args *, register_t *);
1225 
1226 int	sys_renameat(struct lwp *, const struct sys_renameat_args *, register_t *);
1227 
1228 int	linux_sys_statfs(struct lwp *, const struct linux_sys_statfs_args *, register_t *);
1229 
1230 int	linux_sys_fstatfs(struct lwp *, const struct linux_sys_fstatfs_args *, register_t *);
1231 
1232 int	linux_sys_truncate64(struct lwp *, const struct linux_sys_truncate64_args *, register_t *);
1233 
1234 int	linux_sys_ftruncate64(struct lwp *, const struct linux_sys_ftruncate64_args *, register_t *);
1235 
1236 int	linux_sys_fallocate(struct lwp *, const struct linux_sys_fallocate_args *, register_t *);
1237 
1238 int	linux_sys_faccessat(struct lwp *, const struct linux_sys_faccessat_args *, register_t *);
1239 
1240 int	sys_chdir(struct lwp *, const struct sys_chdir_args *, register_t *);
1241 
1242 int	sys_fchdir(struct lwp *, const struct sys_fchdir_args *, register_t *);
1243 
1244 int	sys_chroot(struct lwp *, const struct sys_chroot_args *, register_t *);
1245 
1246 int	sys_fchmod(struct lwp *, const struct sys_fchmod_args *, register_t *);
1247 
1248 int	linux_sys_fchmodat(struct lwp *, const struct linux_sys_fchmodat_args *, register_t *);
1249 
1250 int	linux_sys_fchownat(struct lwp *, const struct linux_sys_fchownat_args *, register_t *);
1251 
1252 int	sys___posix_fchown(struct lwp *, const struct sys___posix_fchown_args *, register_t *);
1253 
1254 int	linux_sys_openat(struct lwp *, const struct linux_sys_openat_args *, register_t *);
1255 
1256 int	sys_close(struct lwp *, const struct sys_close_args *, register_t *);
1257 
1258 int	linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *);
1259 
1260 int	linux_sys_getdents64(struct lwp *, const struct linux_sys_getdents64_args *, register_t *);
1261 
1262 int	compat_43_sys_lseek(struct lwp *, const struct compat_43_sys_lseek_args *, register_t *);
1263 
1264 int	sys_read(struct lwp *, const struct sys_read_args *, register_t *);
1265 
1266 int	sys_write(struct lwp *, const struct sys_write_args *, register_t *);
1267 
1268 int	sys_readv(struct lwp *, const struct sys_readv_args *, register_t *);
1269 
1270 int	sys_writev(struct lwp *, const struct sys_writev_args *, register_t *);
1271 
1272 int	linux_sys_pread(struct lwp *, const struct linux_sys_pread_args *, register_t *);
1273 
1274 int	linux_sys_pwrite(struct lwp *, const struct linux_sys_pwrite_args *, register_t *);
1275 
1276 int	linux_sys_preadv(struct lwp *, const struct linux_sys_preadv_args *, register_t *);
1277 
1278 int	linux_sys_pwritev(struct lwp *, const struct linux_sys_pwritev_args *, register_t *);
1279 
1280 int	linux_sys_pselect6(struct lwp *, const struct linux_sys_pselect6_args *, register_t *);
1281 
1282 int	linux_sys_ppoll(struct lwp *, const struct linux_sys_ppoll_args *, register_t *);
1283 
1284 int	sys_readlinkat(struct lwp *, const struct sys_readlinkat_args *, register_t *);
1285 
1286 int	linux_sys_fstatat64(struct lwp *, const struct linux_sys_fstatat64_args *, register_t *);
1287 
1288 int	linux_sys_fstat64(struct lwp *, const struct linux_sys_fstat64_args *, register_t *);
1289 
1290 int	sys_sync(struct lwp *, const void *, register_t *);
1291 
1292 int	sys_fsync(struct lwp *, const struct sys_fsync_args *, register_t *);
1293 
1294 int	linux_sys_fdatasync(struct lwp *, const struct linux_sys_fdatasync_args *, register_t *);
1295 
1296 int	linux_sys_sync_file_range(struct lwp *, const struct linux_sys_sync_file_range_args *, register_t *);
1297 
1298 int	linux_sys_timerfd_create(struct lwp *, const struct linux_sys_timerfd_create_args *, register_t *);
1299 
1300 int	linux_sys_timerfd_settime(struct lwp *, const struct linux_sys_timerfd_settime_args *, register_t *);
1301 
1302 int	linux_sys_timerfd_gettime(struct lwp *, const struct linux_sys_timerfd_gettime_args *, register_t *);
1303 
1304 int	linux_sys_utimensat(struct lwp *, const struct linux_sys_utimensat_args *, register_t *);
1305 
1306 int	sys_acct(struct lwp *, const struct sys_acct_args *, register_t *);
1307 
1308 int	linux_sys_personality(struct lwp *, const struct linux_sys_personality_args *, register_t *);
1309 
1310 int	linux_sys_exit(struct lwp *, const struct linux_sys_exit_args *, register_t *);
1311 
1312 int	linux_sys_exit_group(struct lwp *, const struct linux_sys_exit_group_args *, register_t *);
1313 
1314 int	linux_sys_waitid(struct lwp *, const struct linux_sys_waitid_args *, register_t *);
1315 
1316 int	linux_sys_set_tid_address(struct lwp *, const struct linux_sys_set_tid_address_args *, register_t *);
1317 
1318 int	linux_sys_futex(struct lwp *, const struct linux_sys_futex_args *, register_t *);
1319 
1320 int	sys___futex_set_robust_list(struct lwp *, const struct sys___futex_set_robust_list_args *, register_t *);
1321 
1322 int	sys___futex_get_robust_list(struct lwp *, const struct sys___futex_get_robust_list_args *, register_t *);
1323 
1324 int	linux_sys_nanosleep(struct lwp *, const struct linux_sys_nanosleep_args *, register_t *);
1325 
1326 int	compat_50_sys_getitimer(struct lwp *, const struct compat_50_sys_getitimer_args *, register_t *);
1327 
1328 int	compat_50_sys_setitimer(struct lwp *, const struct compat_50_sys_setitimer_args *, register_t *);
1329 
1330 int	linux_sys_timer_create(struct lwp *, const struct linux_sys_timer_create_args *, register_t *);
1331 
1332 int	linux_sys_timer_gettime(struct lwp *, const struct linux_sys_timer_gettime_args *, register_t *);
1333 
1334 int	sys_timer_getoverrun(struct lwp *, const struct sys_timer_getoverrun_args *, register_t *);
1335 
1336 int	linux_sys_timer_settime(struct lwp *, const struct linux_sys_timer_settime_args *, register_t *);
1337 
1338 int	sys_timer_delete(struct lwp *, const struct sys_timer_delete_args *, register_t *);
1339 
1340 int	linux_sys_clock_settime(struct lwp *, const struct linux_sys_clock_settime_args *, register_t *);
1341 
1342 int	linux_sys_clock_gettime(struct lwp *, const struct linux_sys_clock_gettime_args *, register_t *);
1343 
1344 int	linux_sys_clock_getres(struct lwp *, const struct linux_sys_clock_getres_args *, register_t *);
1345 
1346 int	linux_sys_clock_nanosleep(struct lwp *, const struct linux_sys_clock_nanosleep_args *, register_t *);
1347 
1348 int	linux_sys_ptrace(struct lwp *, const struct linux_sys_ptrace_args *, register_t *);
1349 
1350 int	linux_sys_sched_setparam(struct lwp *, const struct linux_sys_sched_setparam_args *, register_t *);
1351 
1352 int	linux_sys_sched_setscheduler(struct lwp *, const struct linux_sys_sched_setscheduler_args *, register_t *);
1353 
1354 int	linux_sys_sched_getscheduler(struct lwp *, const struct linux_sys_sched_getscheduler_args *, register_t *);
1355 
1356 int	linux_sys_sched_getparam(struct lwp *, const struct linux_sys_sched_getparam_args *, register_t *);
1357 
1358 int	linux_sys_sched_setaffinity(struct lwp *, const struct linux_sys_sched_setaffinity_args *, register_t *);
1359 
1360 int	linux_sys_sched_getaffinity(struct lwp *, const struct linux_sys_sched_getaffinity_args *, register_t *);
1361 
1362 int	linux_sys_sched_yield(struct lwp *, const void *, register_t *);
1363 
1364 int	linux_sys_sched_get_priority_max(struct lwp *, const struct linux_sys_sched_get_priority_max_args *, register_t *);
1365 
1366 int	linux_sys_sched_get_priority_min(struct lwp *, const struct linux_sys_sched_get_priority_min_args *, register_t *);
1367 
1368 int	linux_sys_kill(struct lwp *, const struct linux_sys_kill_args *, register_t *);
1369 
1370 int	linux_sys_tkill(struct lwp *, const struct linux_sys_tkill_args *, register_t *);
1371 
1372 int	linux_sys_tgkill(struct lwp *, const struct linux_sys_tgkill_args *, register_t *);
1373 
1374 int	linux_sys_sigaltstack(struct lwp *, const struct linux_sys_sigaltstack_args *, register_t *);
1375 
1376 int	linux_sys_rt_sigsuspend(struct lwp *, const struct linux_sys_rt_sigsuspend_args *, register_t *);
1377 
1378 int	linux_sys_rt_sigaction(struct lwp *, const struct linux_sys_rt_sigaction_args *, register_t *);
1379 
1380 int	linux_sys_rt_sigprocmask(struct lwp *, const struct linux_sys_rt_sigprocmask_args *, register_t *);
1381 
1382 int	linux_sys_rt_sigpending(struct lwp *, const struct linux_sys_rt_sigpending_args *, register_t *);
1383 
1384 int	linux_sys_rt_sigtimedwait(struct lwp *, const struct linux_sys_rt_sigtimedwait_args *, register_t *);
1385 
1386 int	linux_sys_rt_sigreturn(struct lwp *, const void *, register_t *);
1387 
1388 int	sys_setpriority(struct lwp *, const struct sys_setpriority_args *, register_t *);
1389 
1390 int	linux_sys_getpriority(struct lwp *, const struct linux_sys_getpriority_args *, register_t *);
1391 
1392 int	linux_sys_reboot(struct lwp *, const struct linux_sys_reboot_args *, register_t *);
1393 
1394 int	sys_setregid(struct lwp *, const struct sys_setregid_args *, register_t *);
1395 
1396 int	sys_setgid(struct lwp *, const struct sys_setgid_args *, register_t *);
1397 
1398 int	sys_setreuid(struct lwp *, const struct sys_setreuid_args *, register_t *);
1399 
1400 int	sys_setuid(struct lwp *, const struct sys_setuid_args *, register_t *);
1401 
1402 int	linux_sys_setresuid(struct lwp *, const struct linux_sys_setresuid_args *, register_t *);
1403 
1404 int	linux_sys_getresuid(struct lwp *, const struct linux_sys_getresuid_args *, register_t *);
1405 
1406 int	linux_sys_setresgid(struct lwp *, const struct linux_sys_setresgid_args *, register_t *);
1407 
1408 int	linux_sys_getresgid(struct lwp *, const struct linux_sys_getresgid_args *, register_t *);
1409 
1410 int	linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *);
1411 
1412 int	linux_sys_setfsgid(struct lwp *, const struct linux_sys_setfsgid_args *, register_t *);
1413 
1414 int	linux_sys_times(struct lwp *, const struct linux_sys_times_args *, register_t *);
1415 
1416 int	sys_setpgid(struct lwp *, const struct sys_setpgid_args *, register_t *);
1417 
1418 int	sys_getpgid(struct lwp *, const struct sys_getpgid_args *, register_t *);
1419 
1420 int	sys_getsid(struct lwp *, const struct sys_getsid_args *, register_t *);
1421 
1422 int	sys_setsid(struct lwp *, const void *, register_t *);
1423 
1424 int	sys_getgroups(struct lwp *, const struct sys_getgroups_args *, register_t *);
1425 
1426 int	sys_setgroups(struct lwp *, const struct sys_setgroups_args *, register_t *);
1427 
1428 int	linux_sys_uname(struct lwp *, const struct linux_sys_uname_args *, register_t *);
1429 
1430 int	compat_43_sys_sethostname(struct lwp *, const struct compat_43_sys_sethostname_args *, register_t *);
1431 
1432 int	linux_sys_setdomainname(struct lwp *, const struct linux_sys_setdomainname_args *, register_t *);
1433 
1434 int	linux_sys_getrlimit(struct lwp *, const struct linux_sys_getrlimit_args *, register_t *);
1435 
1436 int	linux_sys_setrlimit(struct lwp *, const struct linux_sys_setrlimit_args *, register_t *);
1437 
1438 int	compat_50_sys_getrusage(struct lwp *, const struct compat_50_sys_getrusage_args *, register_t *);
1439 
1440 int	sys_umask(struct lwp *, const struct sys_umask_args *, register_t *);
1441 
1442 int	linux_sys_getcpu(struct lwp *, const struct linux_sys_getcpu_args *, register_t *);
1443 
1444 int	linux_sys_gettimeofday(struct lwp *, const struct linux_sys_gettimeofday_args *, register_t *);
1445 
1446 int	linux_sys_settimeofday(struct lwp *, const struct linux_sys_settimeofday_args *, register_t *);
1447 
1448 int	sys_getpid(struct lwp *, const void *, register_t *);
1449 
1450 int	sys_getppid(struct lwp *, const void *, register_t *);
1451 
1452 int	sys_getuid(struct lwp *, const void *, register_t *);
1453 
1454 int	sys_geteuid(struct lwp *, const void *, register_t *);
1455 
1456 int	sys_getgid(struct lwp *, const void *, register_t *);
1457 
1458 int	sys_getegid(struct lwp *, const void *, register_t *);
1459 
1460 int	linux_sys_gettid(struct lwp *, const void *, register_t *);
1461 
1462 int	linux_sys_sysinfo(struct lwp *, const struct linux_sys_sysinfo_args *, register_t *);
1463 
1464 int	linux_sys_mq_open(struct lwp *, const struct linux_sys_mq_open_args *, register_t *);
1465 
1466 int	linux_sys_mq_unlink(struct lwp *, const struct linux_sys_mq_unlink_args *, register_t *);
1467 
1468 int	linux_sys_mq_timedsend(struct lwp *, const struct linux_sys_mq_timedsend_args *, register_t *);
1469 
1470 int	linux_sys_mq_timedreceive(struct lwp *, const struct linux_sys_mq_timedreceive_args *, register_t *);
1471 
1472 int	linux_sys_mq_notify(struct lwp *, const struct linux_sys_mq_notify_args *, register_t *);
1473 
1474 int	linux_sys_mq_getsetattr(struct lwp *, const struct linux_sys_mq_getsetattr_args *, register_t *);
1475 
1476 #ifdef SYSVMSG
1477 int	sys_msgget(struct lwp *, const struct sys_msgget_args *, register_t *);
1478 
1479 int	linux_sys_msgctl(struct lwp *, const struct linux_sys_msgctl_args *, register_t *);
1480 
1481 int	sys_msgrcv(struct lwp *, const struct sys_msgrcv_args *, register_t *);
1482 
1483 int	sys_msgsnd(struct lwp *, const struct sys_msgsnd_args *, register_t *);
1484 
1485 #else
1486 #endif
1487 #ifdef SYSVSEM
1488 int	sys_semget(struct lwp *, const struct sys_semget_args *, register_t *);
1489 
1490 int	linux_sys_semctl(struct lwp *, const struct linux_sys_semctl_args *, register_t *);
1491 
1492 int	sys_semop(struct lwp *, const struct sys_semop_args *, register_t *);
1493 
1494 #else
1495 #endif
1496 #ifdef SYSVSEM
1497 int	linux_sys_shmget(struct lwp *, const struct linux_sys_shmget_args *, register_t *);
1498 
1499 int	linux_sys_shmctl(struct lwp *, const struct linux_sys_shmctl_args *, register_t *);
1500 
1501 int	sys_shmat(struct lwp *, const struct sys_shmat_args *, register_t *);
1502 
1503 int	sys_shmdt(struct lwp *, const struct sys_shmdt_args *, register_t *);
1504 
1505 #else
1506 #endif
1507 int	linux_sys_socket(struct lwp *, const struct linux_sys_socket_args *, register_t *);
1508 
1509 int	linux_sys_socketpair(struct lwp *, const struct linux_sys_socketpair_args *, register_t *);
1510 
1511 int	linux_sys_bind(struct lwp *, const struct linux_sys_bind_args *, register_t *);
1512 
1513 int	sys_listen(struct lwp *, const struct sys_listen_args *, register_t *);
1514 
1515 int	linux_sys_accept(struct lwp *, const struct linux_sys_accept_args *, register_t *);
1516 
1517 int	linux_sys_connect(struct lwp *, const struct linux_sys_connect_args *, register_t *);
1518 
1519 int	linux_sys_getsockname(struct lwp *, const struct linux_sys_getsockname_args *, register_t *);
1520 
1521 int	linux_sys_getpeername(struct lwp *, const struct linux_sys_getpeername_args *, register_t *);
1522 
1523 int	linux_sys_sendto(struct lwp *, const struct linux_sys_sendto_args *, register_t *);
1524 
1525 int	linux_sys_recvfrom(struct lwp *, const struct linux_sys_recvfrom_args *, register_t *);
1526 
1527 int	linux_sys_setsockopt(struct lwp *, const struct linux_sys_setsockopt_args *, register_t *);
1528 
1529 int	linux_sys_getsockopt(struct lwp *, const struct linux_sys_getsockopt_args *, register_t *);
1530 
1531 int	sys_shutdown(struct lwp *, const struct sys_shutdown_args *, register_t *);
1532 
1533 int	linux_sys_sendmsg(struct lwp *, const struct linux_sys_sendmsg_args *, register_t *);
1534 
1535 int	linux_sys_recvmsg(struct lwp *, const struct linux_sys_recvmsg_args *, register_t *);
1536 
1537 int	linux_sys_readahead(struct lwp *, const struct linux_sys_readahead_args *, register_t *);
1538 
1539 int	linux_sys_brk(struct lwp *, const struct linux_sys_brk_args *, register_t *);
1540 
1541 int	sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *);
1542 
1543 int	linux_sys_mremap(struct lwp *, const struct linux_sys_mremap_args *, register_t *);
1544 
1545 int	linux_sys_clone(struct lwp *, const struct linux_sys_clone_args *, register_t *);
1546 
1547 int	sys_execve(struct lwp *, const struct sys_execve_args *, register_t *);
1548 
1549 int	linux_sys_mmap(struct lwp *, const struct linux_sys_mmap_args *, register_t *);
1550 
1551 int	linux_sys_fadvise64(struct lwp *, const struct linux_sys_fadvise64_args *, register_t *);
1552 
1553 int	linux_sys_swapon(struct lwp *, const struct linux_sys_swapon_args *, register_t *);
1554 
1555 int	linux_sys_swapoff(struct lwp *, const struct linux_sys_swapoff_args *, register_t *);
1556 
1557 int	linux_sys_mprotect(struct lwp *, const struct linux_sys_mprotect_args *, register_t *);
1558 
1559 int	sys___msync13(struct lwp *, const struct sys___msync13_args *, register_t *);
1560 
1561 int	sys_mlock(struct lwp *, const struct sys_mlock_args *, register_t *);
1562 
1563 int	sys_munlock(struct lwp *, const struct sys_munlock_args *, register_t *);
1564 
1565 int	sys_mlockall(struct lwp *, const struct sys_mlockall_args *, register_t *);
1566 
1567 int	sys_munlockall(struct lwp *, const void *, register_t *);
1568 
1569 int	sys_mincore(struct lwp *, const struct sys_mincore_args *, register_t *);
1570 
1571 int	sys_madvise(struct lwp *, const struct sys_madvise_args *, register_t *);
1572 
1573 int	linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *);
1574 
1575 int	linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, register_t *);
1576 
1577 int	linux_sys_wait4(struct lwp *, const struct linux_sys_wait4_args *, register_t *);
1578 
1579 int	linux_sys_prlimit64(struct lwp *, const struct linux_sys_prlimit64_args *, register_t *);
1580 
1581 int	linux_sys_syncfs(struct lwp *, const struct linux_sys_syncfs_args *, register_t *);
1582 
1583 int	linux_sys_sendmmsg(struct lwp *, const struct linux_sys_sendmmsg_args *, register_t *);
1584 
1585 int	linux_sys_renameat2(struct lwp *, const struct linux_sys_renameat2_args *, register_t *);
1586 
1587 int	sys_getrandom(struct lwp *, const struct sys_getrandom_args *, register_t *);
1588 
1589 int	linux_sys_memfd_create(struct lwp *, const struct linux_sys_memfd_create_args *, register_t *);
1590 
1591 int	linux_sys_copy_file_range(struct lwp *, const struct linux_sys_copy_file_range_args *, register_t *);
1592 
1593 int	linux_sys_statx(struct lwp *, const struct linux_sys_statx_args *, register_t *);
1594 
1595 int	linux_sys_clone3(struct lwp *, const struct linux_sys_clone3_args *, register_t *);
1596 
1597 int	linux_sys_close_range(struct lwp *, const struct linux_sys_close_range_args *, register_t *);
1598 
1599 int	linux_sys_faccessat2(struct lwp *, const struct linux_sys_faccessat2_args *, register_t *);
1600 
1601 int	linux_sys_nosys(struct lwp *, const void *, register_t *);
1602 
1603 int	linux_sys_epoll_pwait2(struct lwp *, const struct linux_sys_epoll_pwait2_args *, register_t *);
1604 
1605 #endif /* _LINUX_SYS_SYSCALLARGS_H_ */
1606