linux_syscallargs.h revision 1.10 1 /* $NetBSD: linux_syscallargs.h,v 1.10 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.11 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 */
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_timerfd_create_args {
404 syscallarg(clockid_t) clock_id;
405 syscallarg(int) flags;
406 };
407 check_syscall_args(linux_sys_timerfd_create)
408
409 struct linux_sys_timerfd_settime_args {
410 syscallarg(int) fd;
411 syscallarg(int) flags;
412 syscallarg(const struct linux_itimerspec *) tim;
413 syscallarg(struct linux_itimerspec *) otim;
414 };
415 check_syscall_args(linux_sys_timerfd_settime)
416
417 struct linux_sys_timerfd_gettime_args {
418 syscallarg(int) fd;
419 syscallarg(struct linux_itimerspec *) tim;
420 };
421 check_syscall_args(linux_sys_timerfd_gettime)
422
423 struct linux_sys_utimensat_args {
424 syscallarg(int) fd;
425 syscallarg(const char *) path;
426 syscallarg(struct linux_timespec *) times;
427 syscallarg(int) flag;
428 };
429 check_syscall_args(linux_sys_utimensat)
430
431 struct sys_acct_args;
432
433 struct linux_sys_personality_args {
434 syscallarg(unsigned long) per;
435 };
436 check_syscall_args(linux_sys_personality)
437
438 struct linux_sys_exit_args {
439 syscallarg(int) rval;
440 };
441 check_syscall_args(linux_sys_exit)
442
443 struct linux_sys_exit_group_args {
444 syscallarg(int) error_code;
445 };
446 check_syscall_args(linux_sys_exit_group)
447
448 struct linux_sys_waitid_args {
449 syscallarg(int) idtype;
450 syscallarg(id_t) id;
451 syscallarg(linux_siginfo_t *) infop;
452 syscallarg(int) options;
453 syscallarg(struct rusage50 *) rusage;
454 };
455 check_syscall_args(linux_sys_waitid)
456
457 struct linux_sys_set_tid_address_args {
458 syscallarg(int *) tid;
459 };
460 check_syscall_args(linux_sys_set_tid_address)
461
462 struct linux_sys_futex_args {
463 syscallarg(int *) uaddr;
464 syscallarg(int) op;
465 syscallarg(int) val;
466 syscallarg(const struct linux_timespec *) timeout;
467 syscallarg(int *) uaddr2;
468 syscallarg(int) val3;
469 };
470 check_syscall_args(linux_sys_futex)
471
472 struct sys___futex_set_robust_list_args;
473
474 struct sys___futex_get_robust_list_args;
475
476 struct linux_sys_nanosleep_args {
477 syscallarg(const struct linux_timespec *) rqtp;
478 syscallarg(struct linux_timespec *) rmtp;
479 };
480 check_syscall_args(linux_sys_nanosleep)
481
482 struct compat_50_sys_getitimer_args;
483
484 struct compat_50_sys_setitimer_args;
485
486 struct linux_sys_timer_create_args {
487 syscallarg(clockid_t) clockid;
488 syscallarg(struct linux_sigevent *) evp;
489 syscallarg(timer_t *) timerid;
490 };
491 check_syscall_args(linux_sys_timer_create)
492
493 struct linux_sys_timer_gettime_args {
494 syscallarg(timer_t) timerid;
495 syscallarg(struct linux_itimerspec *) tim;
496 };
497 check_syscall_args(linux_sys_timer_gettime)
498
499 struct sys_timer_getoverrun_args;
500
501 struct linux_sys_timer_settime_args {
502 syscallarg(timer_t) timerid;
503 syscallarg(int) flags;
504 syscallarg(const struct linux_itimerspec *) tim;
505 syscallarg(struct linux_itimerspec *) otim;
506 };
507 check_syscall_args(linux_sys_timer_settime)
508
509 struct sys_timer_delete_args;
510
511 struct linux_sys_clock_settime_args {
512 syscallarg(clockid_t) which;
513 syscallarg(struct linux_timespec *) tp;
514 };
515 check_syscall_args(linux_sys_clock_settime)
516
517 struct linux_sys_clock_gettime_args {
518 syscallarg(clockid_t) which;
519 syscallarg(struct linux_timespec *) tp;
520 };
521 check_syscall_args(linux_sys_clock_gettime)
522
523 struct linux_sys_clock_getres_args {
524 syscallarg(clockid_t) which;
525 syscallarg(struct linux_timespec *) tp;
526 };
527 check_syscall_args(linux_sys_clock_getres)
528
529 struct linux_sys_clock_nanosleep_args {
530 syscallarg(clockid_t) which;
531 syscallarg(int) flags;
532 syscallarg(struct linux_timespec *) rqtp;
533 syscallarg(struct linux_timespec *) rmtp;
534 };
535 check_syscall_args(linux_sys_clock_nanosleep)
536
537 struct linux_sys_ptrace_args {
538 syscallarg(long) request;
539 syscallarg(long) pid;
540 syscallarg(long) addr;
541 syscallarg(long) data;
542 };
543 check_syscall_args(linux_sys_ptrace)
544
545 struct linux_sys_sched_setparam_args {
546 syscallarg(pid_t) pid;
547 syscallarg(const struct linux_sched_param *) sp;
548 };
549 check_syscall_args(linux_sys_sched_setparam)
550
551 struct linux_sys_sched_setscheduler_args {
552 syscallarg(pid_t) pid;
553 syscallarg(int) policy;
554 syscallarg(const struct linux_sched_param *) sp;
555 };
556 check_syscall_args(linux_sys_sched_setscheduler)
557
558 struct linux_sys_sched_getscheduler_args {
559 syscallarg(pid_t) pid;
560 };
561 check_syscall_args(linux_sys_sched_getscheduler)
562
563 struct linux_sys_sched_getparam_args {
564 syscallarg(pid_t) pid;
565 syscallarg(struct linux_sched_param *) sp;
566 };
567 check_syscall_args(linux_sys_sched_getparam)
568
569 struct linux_sys_sched_setaffinity_args {
570 syscallarg(pid_t) pid;
571 syscallarg(unsigned int) len;
572 syscallarg(unsigned long *) mask;
573 };
574 check_syscall_args(linux_sys_sched_setaffinity)
575
576 struct linux_sys_sched_getaffinity_args {
577 syscallarg(pid_t) pid;
578 syscallarg(unsigned int) len;
579 syscallarg(unsigned long *) mask;
580 };
581 check_syscall_args(linux_sys_sched_getaffinity)
582
583 struct linux_sys_sched_get_priority_max_args {
584 syscallarg(int) policy;
585 };
586 check_syscall_args(linux_sys_sched_get_priority_max)
587
588 struct linux_sys_sched_get_priority_min_args {
589 syscallarg(int) policy;
590 };
591 check_syscall_args(linux_sys_sched_get_priority_min)
592
593 struct linux_sys_kill_args {
594 syscallarg(int) pid;
595 syscallarg(int) signum;
596 };
597 check_syscall_args(linux_sys_kill)
598
599 struct linux_sys_tkill_args {
600 syscallarg(int) tid;
601 syscallarg(int) sig;
602 };
603 check_syscall_args(linux_sys_tkill)
604
605 struct linux_sys_tgkill_args {
606 syscallarg(int) tgid;
607 syscallarg(int) tid;
608 syscallarg(int) sig;
609 };
610 check_syscall_args(linux_sys_tgkill)
611
612 struct linux_sys_sigaltstack_args {
613 syscallarg(const struct linux_sigaltstack *) ss;
614 syscallarg(struct linux_sigaltstack *) oss;
615 };
616 check_syscall_args(linux_sys_sigaltstack)
617
618 struct linux_sys_rt_sigsuspend_args {
619 syscallarg(linux_sigset_t *) unewset;
620 syscallarg(size_t) sigsetsize;
621 };
622 check_syscall_args(linux_sys_rt_sigsuspend)
623
624 struct linux_sys_rt_sigaction_args {
625 syscallarg(int) signum;
626 syscallarg(const struct linux_sigaction *) nsa;
627 syscallarg(struct linux_sigaction *) osa;
628 syscallarg(size_t) sigsetsize;
629 };
630 check_syscall_args(linux_sys_rt_sigaction)
631
632 struct linux_sys_rt_sigprocmask_args {
633 syscallarg(int) how;
634 syscallarg(const linux_sigset_t *) set;
635 syscallarg(linux_sigset_t *) oset;
636 syscallarg(size_t) sigsetsize;
637 };
638 check_syscall_args(linux_sys_rt_sigprocmask)
639
640 struct linux_sys_rt_sigpending_args {
641 syscallarg(linux_sigset_t *) set;
642 syscallarg(size_t) sigsetsize;
643 };
644 check_syscall_args(linux_sys_rt_sigpending)
645
646 struct linux_sys_rt_sigtimedwait_args {
647 syscallarg(const linux_sigset_t *) set;
648 syscallarg(linux_siginfo_t *) info;
649 syscallarg(const struct linux_timespec *) timeout;
650 };
651 check_syscall_args(linux_sys_rt_sigtimedwait)
652
653 struct sys_setpriority_args;
654
655 struct linux_sys_getpriority_args {
656 syscallarg(int) which;
657 syscallarg(int) who;
658 };
659 check_syscall_args(linux_sys_getpriority)
660
661 struct linux_sys_reboot_args {
662 syscallarg(int) magic1;
663 syscallarg(int) magic2;
664 syscallarg(int) cmd;
665 syscallarg(void *) arg;
666 };
667 check_syscall_args(linux_sys_reboot)
668
669 struct sys_setregid_args;
670
671 struct sys_setgid_args;
672
673 struct sys_setreuid_args;
674
675 struct sys_setuid_args;
676
677 struct linux_sys_setresuid_args {
678 syscallarg(uid_t) ruid;
679 syscallarg(uid_t) euid;
680 syscallarg(uid_t) suid;
681 };
682 check_syscall_args(linux_sys_setresuid)
683
684 struct linux_sys_getresuid_args {
685 syscallarg(uid_t *) ruid;
686 syscallarg(uid_t *) euid;
687 syscallarg(uid_t *) suid;
688 };
689 check_syscall_args(linux_sys_getresuid)
690
691 struct linux_sys_setresgid_args {
692 syscallarg(gid_t) rgid;
693 syscallarg(gid_t) egid;
694 syscallarg(gid_t) sgid;
695 };
696 check_syscall_args(linux_sys_setresgid)
697
698 struct linux_sys_getresgid_args {
699 syscallarg(gid_t *) rgid;
700 syscallarg(gid_t *) egid;
701 syscallarg(gid_t *) sgid;
702 };
703 check_syscall_args(linux_sys_getresgid)
704
705 struct linux_sys_setfsuid_args {
706 syscallarg(uid_t) uid;
707 };
708 check_syscall_args(linux_sys_setfsuid)
709
710 struct linux_sys_setfsgid_args {
711 syscallarg(gid_t) gid;
712 };
713 check_syscall_args(linux_sys_setfsgid)
714
715 struct linux_sys_times_args {
716 syscallarg(struct times *) tms;
717 };
718 check_syscall_args(linux_sys_times)
719
720 struct sys_setpgid_args;
721
722 struct sys_getpgid_args;
723
724 struct sys_getsid_args;
725
726 struct sys_getgroups_args;
727
728 struct sys_setgroups_args;
729
730 struct linux_sys_uname_args {
731 syscallarg(struct linux_utsname *) up;
732 };
733 check_syscall_args(linux_sys_uname)
734
735 struct compat_43_sys_sethostname_args;
736
737 struct linux_sys_setdomainname_args {
738 syscallarg(char *) domainname;
739 syscallarg(int) len;
740 };
741 check_syscall_args(linux_sys_setdomainname)
742
743 struct linux_sys_getrlimit_args {
744 syscallarg(int) which;
745 syscallarg(struct rlimit *) rlp;
746 };
747 check_syscall_args(linux_sys_getrlimit)
748
749 struct linux_sys_setrlimit_args {
750 syscallarg(u_int) which;
751 syscallarg(struct rlimit *) rlp;
752 };
753 check_syscall_args(linux_sys_setrlimit)
754
755 struct compat_50_sys_getrusage_args;
756
757 struct sys_umask_args;
758
759 struct linux_sys_gettimeofday_args {
760 syscallarg(struct timeval50 *) tp;
761 syscallarg(struct timezone *) tzp;
762 };
763 check_syscall_args(linux_sys_gettimeofday)
764
765 struct linux_sys_settimeofday_args {
766 syscallarg(struct timeval50 *) tp;
767 syscallarg(struct timezone *) tzp;
768 };
769 check_syscall_args(linux_sys_settimeofday)
770
771 struct linux_sys_sysinfo_args {
772 syscallarg(struct linux_sysinfo *) arg;
773 };
774 check_syscall_args(linux_sys_sysinfo)
775 #ifdef SYSVMSG
776
777 struct sys_msgget_args;
778
779 struct linux_sys_msgctl_args;
780
781 struct sys_msgrcv_args;
782
783 struct sys_msgsnd_args;
784 #else
785 #endif
786 #ifdef SYSVSEM
787
788 struct sys_semget_args;
789
790 struct linux_sys_semctl_args {
791 syscallarg(int) semid;
792 syscallarg(int) semnum;
793 syscallarg(int) cmd;
794 syscallarg(union linux_semun) arg;
795 };
796 check_syscall_args(linux_sys_semctl)
797
798 struct sys_semop_args;
799 #else
800 #endif
801 #ifdef SYSVSEM
802
803 struct linux_sys_shmget_args;
804
805 struct linux_sys_shmctl_args;
806
807 struct sys_shmat_args;
808
809 struct sys_shmdt_args;
810 #else
811 #endif
812
813 struct linux_sys_socket_args {
814 syscallarg(int) domain;
815 syscallarg(int) type;
816 syscallarg(int) protocol;
817 };
818 check_syscall_args(linux_sys_socket)
819
820 struct linux_sys_socketpair_args {
821 syscallarg(int) domain;
822 syscallarg(int) type;
823 syscallarg(int) protocol;
824 syscallarg(int *) rsv;
825 };
826 check_syscall_args(linux_sys_socketpair)
827
828 struct linux_sys_bind_args {
829 syscallarg(int) s;
830 syscallarg(const struct osockaddr *) name;
831 syscallarg(unsigned int) namelen;
832 };
833 check_syscall_args(linux_sys_bind)
834
835 struct sys_listen_args;
836
837 struct linux_sys_accept_args {
838 syscallarg(int) s;
839 syscallarg(struct osockaddr *) name;
840 syscallarg(int *) anamelen;
841 };
842 check_syscall_args(linux_sys_accept)
843
844 struct linux_sys_connect_args {
845 syscallarg(int) s;
846 syscallarg(const struct osockaddr *) name;
847 syscallarg(unsigned int) namelen;
848 };
849 check_syscall_args(linux_sys_connect)
850
851 struct linux_sys_getsockname_args {
852 syscallarg(int) fdec;
853 syscallarg(void *) asa;
854 syscallarg(int *) alen;
855 };
856 check_syscall_args(linux_sys_getsockname)
857
858 struct linux_sys_getpeername_args {
859 syscallarg(int) fdes;
860 syscallarg(struct sockaddr *) asa;
861 syscallarg(unsigned int *) alen;
862 };
863 check_syscall_args(linux_sys_getpeername)
864
865 struct linux_sys_sendto_args {
866 syscallarg(int) s;
867 syscallarg(void *) msg;
868 syscallarg(int) len;
869 syscallarg(int) flags;
870 syscallarg(struct osockaddr *) to;
871 syscallarg(int) tolen;
872 };
873 check_syscall_args(linux_sys_sendto)
874
875 struct linux_sys_recvfrom_args {
876 syscallarg(int) s;
877 syscallarg(void *) buf;
878 syscallarg(size_t) len;
879 syscallarg(int) flags;
880 syscallarg(struct osockaddr *) from;
881 syscallarg(unsigned int *) fromlenaddr;
882 };
883 check_syscall_args(linux_sys_recvfrom)
884
885 struct linux_sys_setsockopt_args {
886 syscallarg(int) s;
887 syscallarg(int) level;
888 syscallarg(int) optname;
889 syscallarg(void *) optval;
890 syscallarg(int) optlen;
891 };
892 check_syscall_args(linux_sys_setsockopt)
893
894 struct linux_sys_getsockopt_args {
895 syscallarg(int) s;
896 syscallarg(int) level;
897 syscallarg(int) optname;
898 syscallarg(void *) optval;
899 syscallarg(int *) optlen;
900 };
901 check_syscall_args(linux_sys_getsockopt)
902
903 struct sys_shutdown_args;
904
905 struct linux_sys_sendmsg_args {
906 syscallarg(int) s;
907 syscallarg(const struct linux_msghdr *) msg;
908 syscallarg(int) flags;
909 };
910 check_syscall_args(linux_sys_sendmsg)
911
912 struct linux_sys_recvmsg_args {
913 syscallarg(int) s;
914 syscallarg(struct linux_msghdr *) msg;
915 syscallarg(int) flags;
916 };
917 check_syscall_args(linux_sys_recvmsg)
918
919 struct linux_sys_readahead_args {
920 syscallarg(int) fd;
921 syscallarg(off_t) offset;
922 syscallarg(size_t) count;
923 };
924 check_syscall_args(linux_sys_readahead)
925
926 struct linux_sys_brk_args {
927 syscallarg(char *) nsize;
928 };
929 check_syscall_args(linux_sys_brk)
930
931 struct sys_munmap_args;
932
933 struct linux_sys_mremap_args {
934 syscallarg(void *) old_address;
935 syscallarg(size_t) old_size;
936 syscallarg(size_t) new_size;
937 syscallarg(u_long) flags;
938 };
939 check_syscall_args(linux_sys_mremap)
940
941 struct linux_sys_clone_args {
942 syscallarg(int) flags;
943 syscallarg(void *) stack;
944 syscallarg(void *) parent_tidptr;
945 syscallarg(void *) child_tidptr;
946 syscallarg(void *) tls;
947 };
948 check_syscall_args(linux_sys_clone)
949
950 struct sys_execve_args;
951
952 struct linux_sys_mmap_args;
953
954 struct linux_sys_fadvise64_args {
955 syscallarg(int) fd;
956 syscallarg(off_t) offset;
957 syscallarg(size_t) len;
958 syscallarg(int) advice;
959 };
960 check_syscall_args(linux_sys_fadvise64)
961
962 struct linux_sys_swapon_args {
963 syscallarg(char *) name;
964 };
965 check_syscall_args(linux_sys_swapon)
966
967 struct linux_sys_swapoff_args {
968 syscallarg(const char *) path;
969 };
970 check_syscall_args(linux_sys_swapoff)
971
972 struct linux_sys_mprotect_args {
973 syscallarg(const void *) start;
974 syscallarg(unsigned long) len;
975 syscallarg(int) prot;
976 };
977 check_syscall_args(linux_sys_mprotect)
978
979 struct sys___msync13_args;
980
981 struct sys_mlock_args;
982
983 struct sys_munlock_args;
984
985 struct sys_mlockall_args;
986
987 struct sys_mincore_args;
988
989 struct sys_madvise_args;
990
991 struct linux_sys_accept4_args {
992 syscallarg(int) s;
993 syscallarg(struct osockaddr *) name;
994 syscallarg(int *) anamelen;
995 syscallarg(int) flags;
996 };
997 check_syscall_args(linux_sys_accept4)
998
999 struct linux_sys_recvmmsg_args {
1000 syscallarg(int) s;
1001 syscallarg(struct linux_mmsghdr *) msgvec;
1002 syscallarg(unsigned int) vlen;
1003 syscallarg(unsigned int) flags;
1004 syscallarg(struct timespec *) timeout;
1005 };
1006 check_syscall_args(linux_sys_recvmmsg)
1007
1008 struct linux_sys_wait4_args {
1009 syscallarg(int) pid;
1010 syscallarg(int *) status;
1011 syscallarg(int) options;
1012 syscallarg(struct rusage50 *) rusage;
1013 };
1014 check_syscall_args(linux_sys_wait4)
1015
1016 struct linux_sys_prlimit64_args {
1017 syscallarg(pid_t) pid;
1018 syscallarg(int) which;
1019 syscallarg(struct rlimit *) new_rlp;
1020 syscallarg(struct rlimit *) old_rlp;
1021 };
1022 check_syscall_args(linux_sys_prlimit64)
1023
1024 struct linux_sys_sendmmsg_args {
1025 syscallarg(int) s;
1026 syscallarg(struct linux_mmsghdr *) msgvec;
1027 syscallarg(unsigned int) vlen;
1028 syscallarg(unsigned int) flags;
1029 };
1030 check_syscall_args(linux_sys_sendmmsg)
1031
1032 struct sys_getrandom_args;
1033
1034 struct linux_sys_memfd_create_args {
1035 syscallarg(const char *) name;
1036 syscallarg(unsigned int) flags;
1037 };
1038 check_syscall_args(linux_sys_memfd_create)
1039
1040 struct linux_sys_statx_args {
1041 syscallarg(int) fd;
1042 syscallarg(const char *) path;
1043 syscallarg(int) flag;
1044 syscallarg(unsigned int) mask;
1045 syscallarg(struct linux_statx *) sp;
1046 };
1047 check_syscall_args(linux_sys_statx)
1048
1049 struct linux_sys_close_range_args {
1050 syscallarg(unsigned int) first;
1051 syscallarg(unsigned int) last;
1052 syscallarg(unsigned int) flags;
1053 };
1054 check_syscall_args(linux_sys_close_range)
1055
1056 struct linux_sys_epoll_pwait2_args {
1057 syscallarg(int) epfd;
1058 syscallarg(struct linux_epoll_event *) events;
1059 syscallarg(int) maxevents;
1060 syscallarg(const struct linux_timespec *) timeout;
1061 syscallarg(const linux_sigset_t *) sigmask;
1062 };
1063 check_syscall_args(linux_sys_epoll_pwait2)
1064
1065 /*
1066 * System call prototypes.
1067 */
1068
1069 int linux_sys_setxattr(struct lwp *, const struct linux_sys_setxattr_args *, register_t *);
1070
1071 int linux_sys_lsetxattr(struct lwp *, const struct linux_sys_lsetxattr_args *, register_t *);
1072
1073 int linux_sys_fsetxattr(struct lwp *, const struct linux_sys_fsetxattr_args *, register_t *);
1074
1075 int linux_sys_getxattr(struct lwp *, const struct linux_sys_getxattr_args *, register_t *);
1076
1077 int linux_sys_lgetxattr(struct lwp *, const struct linux_sys_lgetxattr_args *, register_t *);
1078
1079 int linux_sys_fgetxattr(struct lwp *, const struct linux_sys_fgetxattr_args *, register_t *);
1080
1081 int linux_sys_listxattr(struct lwp *, const struct linux_sys_listxattr_args *, register_t *);
1082
1083 int linux_sys_llistxattr(struct lwp *, const struct linux_sys_llistxattr_args *, register_t *);
1084
1085 int linux_sys_flistxattr(struct lwp *, const struct linux_sys_flistxattr_args *, register_t *);
1086
1087 int linux_sys_removexattr(struct lwp *, const struct linux_sys_removexattr_args *, register_t *);
1088
1089 int linux_sys_lremovexattr(struct lwp *, const struct linux_sys_lremovexattr_args *, register_t *);
1090
1091 int linux_sys_fremovexattr(struct lwp *, const struct linux_sys_fremovexattr_args *, register_t *);
1092
1093 int sys___getcwd(struct lwp *, const struct sys___getcwd_args *, register_t *);
1094
1095 int linux_sys_eventfd2(struct lwp *, const struct linux_sys_eventfd2_args *, register_t *);
1096
1097 int linux_sys_epoll_create1(struct lwp *, const struct linux_sys_epoll_create1_args *, register_t *);
1098
1099 int linux_sys_epoll_ctl(struct lwp *, const struct linux_sys_epoll_ctl_args *, register_t *);
1100
1101 int linux_sys_epoll_pwait(struct lwp *, const struct linux_sys_epoll_pwait_args *, register_t *);
1102
1103 int sys_dup(struct lwp *, const struct sys_dup_args *, register_t *);
1104
1105 int linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *);
1106
1107 int linux_sys_fcntl(struct lwp *, const struct linux_sys_fcntl_args *, register_t *);
1108
1109 int linux_sys_inotify_init1(struct lwp *, const struct linux_sys_inotify_init1_args *, register_t *);
1110
1111 int linux_sys_inotify_add_watch(struct lwp *, const struct linux_sys_inotify_add_watch_args *, register_t *);
1112
1113 int linux_sys_inotify_rm_watch(struct lwp *, const struct linux_sys_inotify_rm_watch_args *, register_t *);
1114
1115 int linux_sys_ioctl(struct lwp *, const struct linux_sys_ioctl_args *, register_t *);
1116
1117 int sys_flock(struct lwp *, const struct sys_flock_args *, register_t *);
1118
1119 int linux_sys_mknodat(struct lwp *, const struct linux_sys_mknodat_args *, register_t *);
1120
1121 int sys_mkdirat(struct lwp *, const struct sys_mkdirat_args *, register_t *);
1122
1123 int linux_sys_unlinkat(struct lwp *, const struct linux_sys_unlinkat_args *, register_t *);
1124
1125 int sys_symlinkat(struct lwp *, const struct sys_symlinkat_args *, register_t *);
1126
1127 int linux_sys_linkat(struct lwp *, const struct linux_sys_linkat_args *, register_t *);
1128
1129 int sys_renameat(struct lwp *, const struct sys_renameat_args *, register_t *);
1130
1131 int linux_sys_statfs(struct lwp *, const struct linux_sys_statfs_args *, register_t *);
1132
1133 int linux_sys_fstatfs(struct lwp *, const struct linux_sys_fstatfs_args *, register_t *);
1134
1135 int linux_sys_truncate64(struct lwp *, const struct linux_sys_truncate64_args *, register_t *);
1136
1137 int linux_sys_ftruncate64(struct lwp *, const struct linux_sys_ftruncate64_args *, register_t *);
1138
1139 int linux_sys_fallocate(struct lwp *, const struct linux_sys_fallocate_args *, register_t *);
1140
1141 int linux_sys_faccessat(struct lwp *, const struct linux_sys_faccessat_args *, register_t *);
1142
1143 int sys_chdir(struct lwp *, const struct sys_chdir_args *, register_t *);
1144
1145 int sys_fchdir(struct lwp *, const struct sys_fchdir_args *, register_t *);
1146
1147 int sys_chroot(struct lwp *, const struct sys_chroot_args *, register_t *);
1148
1149 int sys_fchmod(struct lwp *, const struct sys_fchmod_args *, register_t *);
1150
1151 int linux_sys_fchmodat(struct lwp *, const struct linux_sys_fchmodat_args *, register_t *);
1152
1153 int linux_sys_fchownat(struct lwp *, const struct linux_sys_fchownat_args *, register_t *);
1154
1155 int sys___posix_fchown(struct lwp *, const struct sys___posix_fchown_args *, register_t *);
1156
1157 int linux_sys_openat(struct lwp *, const struct linux_sys_openat_args *, register_t *);
1158
1159 int sys_close(struct lwp *, const struct sys_close_args *, register_t *);
1160
1161 int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *);
1162
1163 int linux_sys_getdents64(struct lwp *, const struct linux_sys_getdents64_args *, register_t *);
1164
1165 int compat_43_sys_lseek(struct lwp *, const struct compat_43_sys_lseek_args *, register_t *);
1166
1167 int sys_read(struct lwp *, const struct sys_read_args *, register_t *);
1168
1169 int sys_write(struct lwp *, const struct sys_write_args *, register_t *);
1170
1171 int sys_readv(struct lwp *, const struct sys_readv_args *, register_t *);
1172
1173 int sys_writev(struct lwp *, const struct sys_writev_args *, register_t *);
1174
1175 int linux_sys_pread(struct lwp *, const struct linux_sys_pread_args *, register_t *);
1176
1177 int linux_sys_pwrite(struct lwp *, const struct linux_sys_pwrite_args *, register_t *);
1178
1179 int linux_sys_preadv(struct lwp *, const struct linux_sys_preadv_args *, register_t *);
1180
1181 int linux_sys_pwritev(struct lwp *, const struct linux_sys_pwritev_args *, register_t *);
1182
1183 int linux_sys_pselect6(struct lwp *, const struct linux_sys_pselect6_args *, register_t *);
1184
1185 int linux_sys_ppoll(struct lwp *, const struct linux_sys_ppoll_args *, register_t *);
1186
1187 int sys_readlinkat(struct lwp *, const struct sys_readlinkat_args *, register_t *);
1188
1189 int linux_sys_fstatat64(struct lwp *, const struct linux_sys_fstatat64_args *, register_t *);
1190
1191 int linux_sys_fstat64(struct lwp *, const struct linux_sys_fstat64_args *, register_t *);
1192
1193 int sys_sync(struct lwp *, const void *, register_t *);
1194
1195 int sys_fsync(struct lwp *, const struct sys_fsync_args *, register_t *);
1196
1197 int linux_sys_fdatasync(struct lwp *, const struct linux_sys_fdatasync_args *, register_t *);
1198
1199 int linux_sys_timerfd_create(struct lwp *, const struct linux_sys_timerfd_create_args *, register_t *);
1200
1201 int linux_sys_timerfd_settime(struct lwp *, const struct linux_sys_timerfd_settime_args *, register_t *);
1202
1203 int linux_sys_timerfd_gettime(struct lwp *, const struct linux_sys_timerfd_gettime_args *, register_t *);
1204
1205 int linux_sys_utimensat(struct lwp *, const struct linux_sys_utimensat_args *, register_t *);
1206
1207 int sys_acct(struct lwp *, const struct sys_acct_args *, register_t *);
1208
1209 int linux_sys_personality(struct lwp *, const struct linux_sys_personality_args *, register_t *);
1210
1211 int linux_sys_exit(struct lwp *, const struct linux_sys_exit_args *, register_t *);
1212
1213 int linux_sys_exit_group(struct lwp *, const struct linux_sys_exit_group_args *, register_t *);
1214
1215 int linux_sys_waitid(struct lwp *, const struct linux_sys_waitid_args *, register_t *);
1216
1217 int linux_sys_set_tid_address(struct lwp *, const struct linux_sys_set_tid_address_args *, register_t *);
1218
1219 int linux_sys_futex(struct lwp *, const struct linux_sys_futex_args *, register_t *);
1220
1221 int sys___futex_set_robust_list(struct lwp *, const struct sys___futex_set_robust_list_args *, register_t *);
1222
1223 int sys___futex_get_robust_list(struct lwp *, const struct sys___futex_get_robust_list_args *, register_t *);
1224
1225 int linux_sys_nanosleep(struct lwp *, const struct linux_sys_nanosleep_args *, register_t *);
1226
1227 int compat_50_sys_getitimer(struct lwp *, const struct compat_50_sys_getitimer_args *, register_t *);
1228
1229 int compat_50_sys_setitimer(struct lwp *, const struct compat_50_sys_setitimer_args *, register_t *);
1230
1231 int linux_sys_timer_create(struct lwp *, const struct linux_sys_timer_create_args *, register_t *);
1232
1233 int linux_sys_timer_gettime(struct lwp *, const struct linux_sys_timer_gettime_args *, register_t *);
1234
1235 int sys_timer_getoverrun(struct lwp *, const struct sys_timer_getoverrun_args *, register_t *);
1236
1237 int linux_sys_timer_settime(struct lwp *, const struct linux_sys_timer_settime_args *, register_t *);
1238
1239 int sys_timer_delete(struct lwp *, const struct sys_timer_delete_args *, register_t *);
1240
1241 int linux_sys_clock_settime(struct lwp *, const struct linux_sys_clock_settime_args *, register_t *);
1242
1243 int linux_sys_clock_gettime(struct lwp *, const struct linux_sys_clock_gettime_args *, register_t *);
1244
1245 int linux_sys_clock_getres(struct lwp *, const struct linux_sys_clock_getres_args *, register_t *);
1246
1247 int linux_sys_clock_nanosleep(struct lwp *, const struct linux_sys_clock_nanosleep_args *, register_t *);
1248
1249 int linux_sys_ptrace(struct lwp *, const struct linux_sys_ptrace_args *, register_t *);
1250
1251 int linux_sys_sched_setparam(struct lwp *, const struct linux_sys_sched_setparam_args *, register_t *);
1252
1253 int linux_sys_sched_setscheduler(struct lwp *, const struct linux_sys_sched_setscheduler_args *, register_t *);
1254
1255 int linux_sys_sched_getscheduler(struct lwp *, const struct linux_sys_sched_getscheduler_args *, register_t *);
1256
1257 int linux_sys_sched_getparam(struct lwp *, const struct linux_sys_sched_getparam_args *, register_t *);
1258
1259 int linux_sys_sched_setaffinity(struct lwp *, const struct linux_sys_sched_setaffinity_args *, register_t *);
1260
1261 int linux_sys_sched_getaffinity(struct lwp *, const struct linux_sys_sched_getaffinity_args *, register_t *);
1262
1263 int linux_sys_sched_yield(struct lwp *, const void *, register_t *);
1264
1265 int linux_sys_sched_get_priority_max(struct lwp *, const struct linux_sys_sched_get_priority_max_args *, register_t *);
1266
1267 int linux_sys_sched_get_priority_min(struct lwp *, const struct linux_sys_sched_get_priority_min_args *, register_t *);
1268
1269 int linux_sys_kill(struct lwp *, const struct linux_sys_kill_args *, register_t *);
1270
1271 int linux_sys_tkill(struct lwp *, const struct linux_sys_tkill_args *, register_t *);
1272
1273 int linux_sys_tgkill(struct lwp *, const struct linux_sys_tgkill_args *, register_t *);
1274
1275 int linux_sys_sigaltstack(struct lwp *, const struct linux_sys_sigaltstack_args *, register_t *);
1276
1277 int linux_sys_rt_sigsuspend(struct lwp *, const struct linux_sys_rt_sigsuspend_args *, register_t *);
1278
1279 int linux_sys_rt_sigaction(struct lwp *, const struct linux_sys_rt_sigaction_args *, register_t *);
1280
1281 int linux_sys_rt_sigprocmask(struct lwp *, const struct linux_sys_rt_sigprocmask_args *, register_t *);
1282
1283 int linux_sys_rt_sigpending(struct lwp *, const struct linux_sys_rt_sigpending_args *, register_t *);
1284
1285 int linux_sys_rt_sigtimedwait(struct lwp *, const struct linux_sys_rt_sigtimedwait_args *, register_t *);
1286
1287 int linux_sys_rt_sigreturn(struct lwp *, const void *, register_t *);
1288
1289 int sys_setpriority(struct lwp *, const struct sys_setpriority_args *, register_t *);
1290
1291 int linux_sys_getpriority(struct lwp *, const struct linux_sys_getpriority_args *, register_t *);
1292
1293 int linux_sys_reboot(struct lwp *, const struct linux_sys_reboot_args *, register_t *);
1294
1295 int sys_setregid(struct lwp *, const struct sys_setregid_args *, register_t *);
1296
1297 int sys_setgid(struct lwp *, const struct sys_setgid_args *, register_t *);
1298
1299 int sys_setreuid(struct lwp *, const struct sys_setreuid_args *, register_t *);
1300
1301 int sys_setuid(struct lwp *, const struct sys_setuid_args *, register_t *);
1302
1303 int linux_sys_setresuid(struct lwp *, const struct linux_sys_setresuid_args *, register_t *);
1304
1305 int linux_sys_getresuid(struct lwp *, const struct linux_sys_getresuid_args *, register_t *);
1306
1307 int linux_sys_setresgid(struct lwp *, const struct linux_sys_setresgid_args *, register_t *);
1308
1309 int linux_sys_getresgid(struct lwp *, const struct linux_sys_getresgid_args *, register_t *);
1310
1311 int linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *);
1312
1313 int linux_sys_setfsgid(struct lwp *, const struct linux_sys_setfsgid_args *, register_t *);
1314
1315 int linux_sys_times(struct lwp *, const struct linux_sys_times_args *, register_t *);
1316
1317 int sys_setpgid(struct lwp *, const struct sys_setpgid_args *, register_t *);
1318
1319 int sys_getpgid(struct lwp *, const struct sys_getpgid_args *, register_t *);
1320
1321 int sys_getsid(struct lwp *, const struct sys_getsid_args *, register_t *);
1322
1323 int sys_setsid(struct lwp *, const void *, register_t *);
1324
1325 int sys_getgroups(struct lwp *, const struct sys_getgroups_args *, register_t *);
1326
1327 int sys_setgroups(struct lwp *, const struct sys_setgroups_args *, register_t *);
1328
1329 int linux_sys_uname(struct lwp *, const struct linux_sys_uname_args *, register_t *);
1330
1331 int compat_43_sys_sethostname(struct lwp *, const struct compat_43_sys_sethostname_args *, register_t *);
1332
1333 int linux_sys_setdomainname(struct lwp *, const struct linux_sys_setdomainname_args *, register_t *);
1334
1335 int linux_sys_getrlimit(struct lwp *, const struct linux_sys_getrlimit_args *, register_t *);
1336
1337 int linux_sys_setrlimit(struct lwp *, const struct linux_sys_setrlimit_args *, register_t *);
1338
1339 int compat_50_sys_getrusage(struct lwp *, const struct compat_50_sys_getrusage_args *, register_t *);
1340
1341 int sys_umask(struct lwp *, const struct sys_umask_args *, register_t *);
1342
1343 int linux_sys_gettimeofday(struct lwp *, const struct linux_sys_gettimeofday_args *, register_t *);
1344
1345 int linux_sys_settimeofday(struct lwp *, const struct linux_sys_settimeofday_args *, register_t *);
1346
1347 int sys_getpid(struct lwp *, const void *, register_t *);
1348
1349 int sys_getppid(struct lwp *, const void *, register_t *);
1350
1351 int sys_getuid(struct lwp *, const void *, register_t *);
1352
1353 int sys_geteuid(struct lwp *, const void *, register_t *);
1354
1355 int sys_getgid(struct lwp *, const void *, register_t *);
1356
1357 int sys_getegid(struct lwp *, const void *, register_t *);
1358
1359 int linux_sys_gettid(struct lwp *, const void *, register_t *);
1360
1361 int linux_sys_sysinfo(struct lwp *, const struct linux_sys_sysinfo_args *, register_t *);
1362
1363 #ifdef SYSVMSG
1364 int sys_msgget(struct lwp *, const struct sys_msgget_args *, register_t *);
1365
1366 int linux_sys_msgctl(struct lwp *, const struct linux_sys_msgctl_args *, register_t *);
1367
1368 int sys_msgrcv(struct lwp *, const struct sys_msgrcv_args *, register_t *);
1369
1370 int sys_msgsnd(struct lwp *, const struct sys_msgsnd_args *, register_t *);
1371
1372 #else
1373 #endif
1374 #ifdef SYSVSEM
1375 int sys_semget(struct lwp *, const struct sys_semget_args *, register_t *);
1376
1377 int linux_sys_semctl(struct lwp *, const struct linux_sys_semctl_args *, register_t *);
1378
1379 int sys_semop(struct lwp *, const struct sys_semop_args *, register_t *);
1380
1381 #else
1382 #endif
1383 #ifdef SYSVSEM
1384 int linux_sys_shmget(struct lwp *, const struct linux_sys_shmget_args *, register_t *);
1385
1386 int linux_sys_shmctl(struct lwp *, const struct linux_sys_shmctl_args *, register_t *);
1387
1388 int sys_shmat(struct lwp *, const struct sys_shmat_args *, register_t *);
1389
1390 int sys_shmdt(struct lwp *, const struct sys_shmdt_args *, register_t *);
1391
1392 #else
1393 #endif
1394 int linux_sys_socket(struct lwp *, const struct linux_sys_socket_args *, register_t *);
1395
1396 int linux_sys_socketpair(struct lwp *, const struct linux_sys_socketpair_args *, register_t *);
1397
1398 int linux_sys_bind(struct lwp *, const struct linux_sys_bind_args *, register_t *);
1399
1400 int sys_listen(struct lwp *, const struct sys_listen_args *, register_t *);
1401
1402 int linux_sys_accept(struct lwp *, const struct linux_sys_accept_args *, register_t *);
1403
1404 int linux_sys_connect(struct lwp *, const struct linux_sys_connect_args *, register_t *);
1405
1406 int linux_sys_getsockname(struct lwp *, const struct linux_sys_getsockname_args *, register_t *);
1407
1408 int linux_sys_getpeername(struct lwp *, const struct linux_sys_getpeername_args *, register_t *);
1409
1410 int linux_sys_sendto(struct lwp *, const struct linux_sys_sendto_args *, register_t *);
1411
1412 int linux_sys_recvfrom(struct lwp *, const struct linux_sys_recvfrom_args *, register_t *);
1413
1414 int linux_sys_setsockopt(struct lwp *, const struct linux_sys_setsockopt_args *, register_t *);
1415
1416 int linux_sys_getsockopt(struct lwp *, const struct linux_sys_getsockopt_args *, register_t *);
1417
1418 int sys_shutdown(struct lwp *, const struct sys_shutdown_args *, register_t *);
1419
1420 int linux_sys_sendmsg(struct lwp *, const struct linux_sys_sendmsg_args *, register_t *);
1421
1422 int linux_sys_recvmsg(struct lwp *, const struct linux_sys_recvmsg_args *, register_t *);
1423
1424 int linux_sys_readahead(struct lwp *, const struct linux_sys_readahead_args *, register_t *);
1425
1426 int linux_sys_brk(struct lwp *, const struct linux_sys_brk_args *, register_t *);
1427
1428 int sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *);
1429
1430 int linux_sys_mremap(struct lwp *, const struct linux_sys_mremap_args *, register_t *);
1431
1432 int linux_sys_clone(struct lwp *, const struct linux_sys_clone_args *, register_t *);
1433
1434 int sys_execve(struct lwp *, const struct sys_execve_args *, register_t *);
1435
1436 int linux_sys_mmap(struct lwp *, const struct linux_sys_mmap_args *, register_t *);
1437
1438 int linux_sys_fadvise64(struct lwp *, const struct linux_sys_fadvise64_args *, register_t *);
1439
1440 int linux_sys_swapon(struct lwp *, const struct linux_sys_swapon_args *, register_t *);
1441
1442 int linux_sys_swapoff(struct lwp *, const struct linux_sys_swapoff_args *, register_t *);
1443
1444 int linux_sys_mprotect(struct lwp *, const struct linux_sys_mprotect_args *, register_t *);
1445
1446 int sys___msync13(struct lwp *, const struct sys___msync13_args *, register_t *);
1447
1448 int sys_mlock(struct lwp *, const struct sys_mlock_args *, register_t *);
1449
1450 int sys_munlock(struct lwp *, const struct sys_munlock_args *, register_t *);
1451
1452 int sys_mlockall(struct lwp *, const struct sys_mlockall_args *, register_t *);
1453
1454 int sys_munlockall(struct lwp *, const void *, register_t *);
1455
1456 int sys_mincore(struct lwp *, const struct sys_mincore_args *, register_t *);
1457
1458 int sys_madvise(struct lwp *, const struct sys_madvise_args *, register_t *);
1459
1460 int linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *);
1461
1462 int linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, register_t *);
1463
1464 int linux_sys_wait4(struct lwp *, const struct linux_sys_wait4_args *, register_t *);
1465
1466 int linux_sys_prlimit64(struct lwp *, const struct linux_sys_prlimit64_args *, register_t *);
1467
1468 int linux_sys_sendmmsg(struct lwp *, const struct linux_sys_sendmmsg_args *, register_t *);
1469
1470 int sys_getrandom(struct lwp *, const struct sys_getrandom_args *, register_t *);
1471
1472 int linux_sys_memfd_create(struct lwp *, const struct linux_sys_memfd_create_args *, register_t *);
1473
1474 int linux_sys_statx(struct lwp *, const struct linux_sys_statx_args *, register_t *);
1475
1476 int linux_sys_close_range(struct lwp *, const struct linux_sys_close_range_args *, register_t *);
1477
1478 int linux_sys_nosys(struct lwp *, const void *, register_t *);
1479
1480 int linux_sys_epoll_pwait2(struct lwp *, const struct linux_sys_epoll_pwait2_args *, register_t *);
1481
1482 #endif /* _LINUX_SYS_SYSCALLARGS_H_ */
1483