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