Debian Codegraph @

ptrace/syscall/prototypes.py

raw
1 # From Linux kernel source code
2 # include/linux/syscalls.h
3 # arch/i386/kernel/syscall_table.S
4 # arch/um/include/sysdep-i386/syscalls.h
5 # arch/um/sys-i386/sys_call_table.S
6
7 ALIASES = {
8 "brk": ("break",),
9 "fadvise64": ("posix_fadvise",),
10 "fstatat64": ("fstatat",),
11 "getcwd": ("__getcwd",),
12 "mmap_pgoff": ("mmap", "mmap2",),
13 "pread64": ("pread",),
14 "prlimit64": ("prlimit",),
15 "pselect6": ("pselect",),
16 "pwrite64": ("pwrite",),
17 }
18
19 # Name of arguments containing a filename or a path
20 FILENAME_ARGUMENTS = set(
21 ("filename", "pathname", "path", "oldname", "newname", "old", "new"))
22
23 SYSCALL_PROTOTYPES = {
24 "accept": ("long", (
25 ("int", "sockfd"),
26 ("struct sockaddr *", "addr"),
27 ("int *", "addrlen"),
28 )),
29 "accept4": ("long", (
30 ("int", "sockfd"),
31 ("struct sockaddr *", "addr"),
32 ("int *", "addrlen"),
33 ("int", "flags"),
34 )),
35 "access": ("long", (
36 ("const char *", "filename"),
37 ("int", "mode"),
38 )),
39 "acct": ("long", (
40 ("const char *", "name"),
41 )),
42 "add_key": ("long", (
43 ("const char *", "_type"),
44 ("const char *", "_description"),
45 ("const void *", "_payload"),
46 ("size_t", "plen"),
47 ("key_serial_t", "destringid"),
48 )),
49 "adjtimex": ("long", (
50 ("struct timex *", "txc_p"),
51 )),
52 "alarm": ("long", (
53 ("unsigned int", "seconds"),
54 )),
55 "bdflush": ("long", (
56 ("int", "func"),
57 ("long", "data"),
58 )),
59 "bind": ("long", (
60 ("int", "sockfd"),
61 ("struct sockaddr *", "addr"),
62 ("int", "addrlen"),
63 )),
64 "bpf": ("long", (
65 ("int", "cmd"),
66 ("union bpf_attr *", "attr"),
67 ("unsigned int", "size"),
68 )),
69 "brk": ("long", (
70 ("unsigned long", "brk"),
71 )),
72 "capget": ("long", (
73 ("cap_user_header_t", "header"),
74 ("cap_user_data_t", "dataptr"),
75 )),
76 "capset": ("long", (
77 ("cap_user_header_t", "header"),
78 ("const cap_user_data_t", "data"),
79 )),
80 "chdir": ("long", (
81 ("const char *", "filename"),
82 )),
83 "chmod": ("long", (
84 ("const char *", "filename"),
85 ("umode_t", "mode"),
86 )),
87 "chown": ("long", (
88 ("const char *", "filename"),
89 ("uid_t", "user"),
90 ("gid_t", "group"),
91 )),
92 "chown16": ("long", (
93 ("const char *", "filename"),
94 ("old_uid_t", "user"),
95 ("old_gid_t", "group"),
96 )),
97 "chroot": ("long", (
98 ("const char *", "filename"),
99 )),
100 "clock_adjtime": ("long", (
101 ("clockid_t", "which_clock"),
102 ("struct timex *", "tx"),
103 )),
104 "clock_getres": ("long", (
105 ("clockid_t", "which_clock"),
106 ("struct timespec *", "tp"),
107 )),
108 "clock_gettime": ("long", (
109 ("clockid_t", "which_clock"),
110 ("struct timespec *", "tp"),
111 )),
112 "clock_nanosleep": ("long", (
113 ("clockid_t", "which_clock"),
114 ("int", "flags"),
115 ("const struct timespec *", "rqtp"),
116 ("struct timespec *", "rmtp"),
117 )),
118 "clock_settime": ("long", (
119 ("clockid_t", "which_clock"),
120 ("const struct timespec *", "tp"),
121 )),
122 "clone": ("long", (
123 ("unsigned long", "flags"),
124 ("unsigned long", "child_stack"),
125 ("int *", "ptid"),
126 ("int *", "ctid"),
127 ("unsigned long", "regs"),
128 )),
129 "close": ("long", (
130 ("unsigned int", "fd"),
131 )),
132 "connect": ("long", (
133 ("int", "sockfd"),
134 ("struct sockaddr *", "addr"),
135 ("int", "addrlen"),
136 )),
137 "copy_file_range": ("long", (
138 ("int", "fd_in"),
139 ("loff_t *", "off_in"),
140 ("int", "fd_out"),
141 ("loff_t *", "off_out"),
142 ("size_t", "len"),
143 ("unsigned int", "flags"),
144 )),
145 "creat": ("long", (
146 ("const char *", "pathname"),
147 ("umode_t", "mode"),
148 )),
149 "delete_module": ("long", (
150 ("const char *", "name_user"),
151 ("unsigned int", "flags"),
152 )),
153 "dup": ("long", (
154 ("unsigned int", "fildes"),
155 )),
156 "dup2": ("long", (
157 ("unsigned int", "oldfd"),
158 ("unsigned int", "newfd"),
159 )),
160 "dup3": ("long", (
161 ("unsigned int", "oldfd"),
162 ("unsigned int", "newfd"),
163 ("int", "flags"),
164 )),
165 "epoll_create": ("long", (
166 ("int", "size"),
167 )),
168 "epoll_create1": ("long", (
169 ("int", "flags"),
170 )),
171 "epoll_ctl": ("long", (
172 ("int", "epfd"),
173 ("int", "op"),
174 ("int", "fd"),
175 ("struct epoll_event *", "event"),
176 )),
177 "epoll_pwait": ("long", (
178 ("int", "epfd"),
179 ("struct epoll_event *", "events"),
180 ("int", "maxevents"),
181 ("int", "timeout"),
182 ("const sigset_t *", "sigmask"),
183 ("size_t", "sigsetsize"),
184 )),
185 "epoll_wait": ("long", (
186 ("int", "epfd"),
187 ("struct epoll_event *", "events"),
188 ("int", "maxevents"),
189 ("int", "timeout"),
190 )),
191 "eventfd": ("long", (
192 ("unsigned int", "count"),
193 )),
194 "eventfd2": ("long", (
195 ("unsigned int", "count"),
196 ("int", "flags"),
197 )),
198 "execve": ("long", (
199 ("const char *", "filename"),
200 ("const char *const *", "argv"),
201 ("const char *const *", "envp"),
202 )),
203 "execveat": ("long", (
204 ("int", "dfd"),
205 ("const char *", "filename"),
206 ("const char *const *", "argv"),
207 ("const char *const *", "envp"),
208 ("int", "flags"),
209 )),
210 "exit": ("long", (
211 ("int", "error_code"),
212 )),
213 "exit_group": ("long", (
214 ("int", "error_code"),
215 )),
216 "faccessat": ("long", (
217 ("int", "dfd"),
218 ("const char *", "filename"),
219 ("int", "mode"),
220 )),
221 "fadvise64": ("long", (
222 ("int", "fd"),
223 ("loff_t", "offset"),
224 ("size_t", "len"),
225 ("int", "advice"),
226 )),
227 "fadvise64_64": ("long", (
228 ("int", "fd"),
229 ("loff_t", "offset"),
230 ("loff_t", "len"),
231 ("int", "advice"),
232 )),
233 "fallocate": ("long", (
234 ("int", "fd"),
235 ("int", "mode"),
236 ("loff_t", "offset"),
237 ("loff_t", "len"),
238 )),
239 "fanotify_init": ("long", (
240 ("unsigned int", "flags"),
241 ("unsigned int", "event_f_flags"),
242 )),
243 "fanotify_mark": ("long", (
244 ("int", "fanotify_fd"),
245 ("unsigned int", "flags"),
246 ("u64", "mask"),
247 ("int", "fd"),
248 ("const char *", "pathname"),
249 )),
250 "fchdir": ("long", (
251 ("unsigned int", "fd"),
252 )),
253 "fchmod": ("long", (
254 ("unsigned int", "fd"),
255 ("umode_t", "mode"),
256 )),
257 "fchmodat": ("long", (
258 ("int", "dfd"),
259 ("const char *", "filename"),
260 ("umode_t", "mode"),
261 )),
262 "fchown": ("long", (
263 ("unsigned int", "fd"),
264 ("uid_t", "user"),
265 ("gid_t", "group"),
266 )),
267 "fchown16": ("long", (
268 ("unsigned int", "fd"),
269 ("old_uid_t", "user"),
270 ("old_gid_t", "group"),
271 )),
272 "fchownat": ("long", (
273 ("int", "dfd"),
274 ("const char *", "filename"),
275 ("uid_t", "user"),
276 ("gid_t", "group"),
277 ("int", "flag"),
278 )),
279 "fcntl": ("long", (
280 ("unsigned int", "fd"),
281 ("unsigned int", "cmd"),
282 ("unsigned long", "arg"),
283 )),
284 "fcntl64": ("long", (
285 ("unsigned int", "fd"),
286 ("unsigned int", "cmd"),
287 ("unsigned long", "arg"),
288 )),
289 "fdatasync": ("long", (
290 ("unsigned int", "fd"),
291 )),
292 "fgetxattr": ("long", (
293 ("int", "fd"),
294 ("const char *", "name"),
295 ("void *", "value"),
296 ("size_t", "size"),
297 )),
298 "finit_module": ("long", (
299 ("int", "fd"),
300 ("const char *", "uargs"),
301 ("int", "flags"),
302 )),
303 "flistxattr": ("long", (
304 ("int", "fd"),
305 ("char *", "list"),
306 ("size_t", "size"),
307 )),
308 "flock": ("long", (
309 ("unsigned int", "fd"),
310 ("unsigned int", "cmd"),
311 )),
312 "fork": ("long", (
313 )),
314 "fremovexattr": ("long", (
315 ("int", "fd"),
316 ("const char *", "name"),
317 )),
318 "fsetxattr": ("long", (
319 ("int", "fd"),
320 ("const char *", "name"),
321 ("const void *", "value"),
322 ("size_t", "size"),
323 ("int", "flags"),
324 )),
325 "fstat": ("long", (
326 ("unsigned int", "fd"),
327 ("struct __old_kernel_stat *", "statbuf"),
328 )),
329 "fstat64": ("long", (
330 ("unsigned long", "fd"),
331 ("struct stat64 *", "statbuf"),
332 )),
333 "fstatat64": ("long", (
334 ("int", "dfd"),
335 ("const char *", "filename"),
336 ("struct stat64 *", "statbuf"),
337 ("int", "flag"),
338 )),
339 "fstatfs": ("long", (
340 ("unsigned int", "fd"),
341 ("struct statfs *", "buf"),
342 )),
343 "fstatfs64": ("long", (
344 ("unsigned int", "fd"),
345 ("size_t", "sz"),
346 ("struct statfs64 *", "buf"),
347 )),
348 "fsync": ("long", (
349 ("unsigned int", "fd"),
350 )),
351 "ftruncate": ("long", (
352 ("unsigned int", "fd"),
353 ("unsigned long", "length"),
354 )),
355 "ftruncate64": ("long", (
356 ("unsigned int", "fd"),
357 ("loff_t", "length"),
358 )),
359 "futex": ("long", (
360 ("u32 *", "uaddr"),
361 ("int", "op"),
362 ("u32", "val"),
363 ("struct timespec *", "utime"),
364 ("u32 *", "uaddr2"),
365 ("u32", "val3"),
366 )),
367 "futimesat": ("long", (
368 ("int", "dfd"),
369 ("const char *", "filename"),
370 ("struct timeval *", "utimes"),
371 )),
372 "get_mempolicy": ("long", (
373 ("int *", "policy"),
374 ("unsigned long *", "nmask"),
375 ("unsigned long", "maxnode"),
376 ("unsigned long", "addr"),
377 ("unsigned long", "flags"),
378 )),
379 "get_robust_list": ("long", (
380 ("int", "pid"),
381 ("struct robust_list_head * *", "head_ptr"),
382 ("size_t *", "len_ptr"),
383 )),
384 "getcpu": ("long", (
385 ("unsigned *", "cpu"),
386 ("unsigned *", "node"),
387 ("struct getcpu_cache *", "cache"),
388 )),
389 "getcwd": ("long", (
390 ("char *", "pathname"),
391 ("unsigned long", "size"),
392 )),
393 "getdents": ("long", (
394 ("unsigned int", "fd"),
395 ("struct linux_dirent *", "dirent"),
396 ("unsigned int", "count"),
397 )),
398 "getdents64": ("long", (
399 ("unsigned int", "fd"),
400 ("struct linux_dirent64 *", "dirent"),
401 ("unsigned int", "count"),
402 )),
403 "getegid": ("long", (
404 )),
405 "getegid16": ("long", (
406 )),
407 "geteuid": ("long", (
408 )),
409 "geteuid16": ("long", (
410 )),
411 "getgid": ("long", (
412 )),
413 "getgid16": ("long", (
414 )),
415 "getgroups": ("long", (
416 ("int", "gidsetsize"),
417 ("gid_t *", "grouplist"),
418 )),
419 "getgroups16": ("long", (
420 ("int", "gidsetsize"),
421 ("old_gid_t *", "grouplist"),
422 )),
423 "gethostname": ("long", (
424 ("char *", "name"),
425 ("int", "len"),
426 )),
427 "getitimer": ("long", (
428 ("int", "which"),
429 ("struct itimerval *", "value"),
430 )),
431 "getpeername": ("long", (
432 ("int", "sockfd"),
433 ("struct sockaddr *", "addr"),
434 ("int *", "addrlen"),
435 )),
436 "getpgid": ("long", (
437 ("pid_t", "pid"),
438 )),
439 "getpgrp": ("long", (
440 )),
441 "getpid": ("long", (
442 )),
443 "getppid": ("long", (
444 )),
445 "getpriority": ("long", (
446 ("int", "which"),
447 ("int", "who"),
448 )),
449 "getrandom": ("long", (
450 ("char *", "buf"),
451 ("size_t", "count"),
452 ("unsigned int", "flags"),
453 )),
454 "getresgid": ("long", (
455 ("gid_t *", "rgid"),
456 ("gid_t *", "egid"),
457 ("gid_t *", "sgid"),
458 )),
459 "getresgid16": ("long", (
460 ("old_gid_t *", "rgid"),
461 ("old_gid_t *", "egid"),
462 ("old_gid_t *", "sgid"),
463 )),
464 "getresuid": ("long", (
465 ("uid_t *", "ruid"),
466 ("uid_t *", "euid"),
467 ("uid_t *", "suid"),
468 )),
469 "getresuid16": ("long", (
470 ("old_uid_t *", "ruid"),
471 ("old_uid_t *", "euid"),
472 ("old_uid_t *", "suid"),
473 )),
474 "getrlimit": ("long", (
475 ("unsigned int", "resource"),
476 ("struct rlimit *", "rlim"),
477 )),
478 "getrusage": ("long", (
479 ("int", "who"),
480 ("struct rusage *", "ru"),
481 )),
482 "getsid": ("long", (
483 ("pid_t", "pid"),
484 )),
485 "getsockname": ("long", (
486 ("int", "sockfd"),
487 ("struct sockaddr *", "addr"),
488 ("int *", "addrlen"),
489 )),
490 "getsockopt": ("long", (
491 ("int", "fd"),
492 ("int", "level"),
493 ("int", "optname"),
494 ("char *", "optval"),
495 ("int *", "optlen"),
496 )),
497 "gettid": ("long", (
498 )),
499 "gettimeofday": ("long", (
500 ("struct timeval *", "tv"),
501 ("struct timezone *", "tz"),
502 )),
503 "getuid": ("long", (
504 )),
505 "getuid16": ("long", (
506 )),
507 "getxattr": ("long", (
508 ("const char *", "path"),
509 ("const char *", "name"),
510 ("void *", "value"),
511 ("size_t", "size"),
512 )),
513 "init_module": ("long", (
514 ("void *", "umod"),
515 ("unsigned long", "len"),
516 ("const char *", "uargs"),
517 )),
518 "inotify_add_watch": ("long", (
519 ("int", "fd"),
520 ("const char *", "path"),
521 ("u32", "mask"),
522 )),
523 "inotify_init": ("long", (
524 )),
525 "inotify_init1": ("long", (
526 ("int", "flags"),
527 )),
528 "inotify_rm_watch": ("long", (
529 ("int", "fd"),
530 ("__s32", "wd"),
531 )),
532 "io_cancel": ("long", (
533 ("aio_context_t", "ctx_id"),
534 ("struct iocb *", "iocb"),
535 ("struct io_event *", "result"),
536 )),
537 "io_destroy": ("long", (
538 ("aio_context_t", "ctx"),
539 )),
540 "io_getevents": ("long", (
541 ("aio_context_t", "ctx_id"),
542 ("long", "min_nr"),
543 ("long", "nr"),
544 ("struct io_event *", "events"),
545 ("struct timespec *", "timeout"),
546 )),
547 "io_setup": ("long", (
548 ("unsigned", "nr_reqs"),
549 ("aio_context_t *", "ctx"),
550 )),
551 "io_submit": ("long", (
552 ("aio_context_t", "ctx_id"),
553 ("long", "nr"),
554 ("struct iocb * *", "iocbpp"),
555 )),
556 "ioctl": ("long", (
557 ("unsigned int", "fd"),
558 ("unsigned int", "cmd"),
559 ("unsigned long", "arg"),
560 )),
561 "ioperm": ("long", (
562 ("unsigned long", "from"),
563 ("unsigned long", "num"),
564 ("int", "on"),
565 )),
566 "ioprio_get": ("long", (
567 ("int", "which"),
568 ("int", "who"),
569 )),
570 "ioprio_set": ("long", (
571 ("int", "which"),
572 ("int", "who"),
573 ("int", "ioprio"),
574 )),
575 "ipc": ("long", (
576 ("unsigned int", "call"),
577 ("int", "first"),
578 ("unsigned long", "second"),
579 ("unsigned long", "third"),
580 ("void *", "ptr"),
581 ("long", "fifth"),
582 )),
583 "kcmp": ("long", (
584 ("pid_t", "pid1"),
585 ("pid_t", "pid2"),
586 ("int", "type"),
587 ("unsigned long", "idx1"),
588 ("unsigned long", "idx2"),
589 )),
590 "kexec_file_load": ("long", (
591 ("int", "kernel_fd"),
592 ("int", "initrd_fd"),
593 ("unsigned long", "cmdline_len"),
594 ("const char *", "cmdline_ptr"),
595 ("unsigned long", "flags"),
596 )),
597 "kexec_load": ("long", (
598 ("unsigned long", "entry"),
599 ("unsigned long", "nr_segments"),
600 ("struct kexec_segment *", "segments"),
601 ("unsigned long", "flags"),
602 )),
603 "keyctl": ("long", (
604 ("int", "cmd"),
605 ("unsigned long", "arg2"),
606 ("unsigned long", "arg3"),
607 ("unsigned long", "arg4"),
608 ("unsigned long", "arg5"),
609 )),
610 "kill": ("long", (
611 ("int", "pid"),
612 ("int", "sig"),
613 )),
614 "lchown": ("long", (
615 ("const char *", "filename"),
616 ("uid_t", "user"),
617 ("gid_t", "group"),
618 )),
619 "lchown16": ("long", (
620 ("const char *", "filename"),
621 ("old_uid_t", "user"),
622 ("old_gid_t", "group"),
623 )),
624 "lgetxattr": ("long", (
625 ("const char *", "path"),
626 ("const char *", "name"),
627 ("void *", "value"),
628 ("size_t", "size"),
629 )),
630 "link": ("long", (
631 ("const char *", "oldname"),
632 ("const char *", "newname"),
633 )),
634 "linkat": ("long", (
635 ("int", "olddfd"),
636 ("const char *", "oldname"),
637 ("int", "newdfd"),
638 ("const char *", "newname"),
639 ("int", "flags"),
640 )),
641 "listen": ("long", (
642 ("int", "sockfd"),
643 ("int", "backlog"),
644 )),
645 "listxattr": ("long", (
646 ("const char *", "path"),
647 ("char *", "list"),
648 ("size_t", "size"),
649 )),
650 "llistxattr": ("long", (
651 ("const char *", "path"),
652 ("char *", "list"),
653 ("size_t", "size"),
654 )),
655 "llseek": ("long", (
656 ("unsigned int", "fd"),
657 ("unsigned long", "offset_high"),
658 ("unsigned long", "offset_low"),
659 ("loff_t *", "result"),
660 ("unsigned int", "whence"),
661 )),
662 "lookup_dcookie": ("long", (
663 ("u64", "cookie64"),
664 ("char *", "buf"),
665 ("size_t", "len"),
666 )),
667 "lremovexattr": ("long", (
668 ("const char *", "path"),
669 ("const char *", "name"),
670 )),
671 "lseek": ("long", (
672 ("unsigned int", "fd"),
673 ("off_t", "offset"),
674 ("unsigned int", "whence"),
675 )),
676 "lsetxattr": ("long", (
677 ("const char *", "path"),
678 ("const char *", "name"),
679 ("const void *", "value"),
680 ("size_t", "size"),
681 ("int", "flags"),
682 )),
683 "lstat": ("long", (
684 ("const char *", "filename"),
685 ("struct __old_kernel_stat *", "statbuf"),
686 )),
687 "lstat64": ("long", (
688 ("const char *", "filename"),
689 ("struct stat64 *", "statbuf"),
690 )),
691 "madvise": ("long", (
692 ("unsigned long", "start"),
693 ("size_t", "len"),
694 ("int", "behavior"),
695 )),
696 "mbind": ("long", (
697 ("unsigned long", "start"),
698 ("unsigned long", "len"),
699 ("unsigned long", "mode"),
700 ("const unsigned long *", "nmask"),
701 ("unsigned long", "maxnode"),
702 ("unsigned", "flags"),
703 )),
704 "membarrier": ("long", (
705 ("int", "cmd"),
706 ("int", "flags"),
707 )),
708 "memfd_create": ("long", (
709 ("const char *", "uname_ptr"),
710 ("unsigned int", "flags"),
711 )),
712 "migrate_pages": ("long", (
713 ("pid_t", "pid"),
714 ("unsigned long", "maxnode"),
715 ("const unsigned long *", "from"),
716 ("const unsigned long *", "to"),
717 )),
718 "mincore": ("long", (
719 ("unsigned long", "start"),
720 ("size_t", "len"),
721 ("unsigned char *", "vec"),
722 )),
723 "mkdir": ("long", (
724 ("const char *", "pathname"),
725 ("umode_t", "mode"),
726 )),
727 "mkdirat": ("long", (
728 ("int", "dfd"),
729 ("const char *", "pathname"),
730 ("umode_t", "mode"),
731 )),
732 "mknod": ("long", (
733 ("const char *", "filename"),
734 ("umode_t", "mode"),
735 ("unsigned", "dev"),
736 )),
737 "mknodat": ("long", (
738 ("int", "dfd"),
739 ("const char *", "filename"),
740 ("umode_t", "mode"),
741 ("unsigned", "dev"),
742 )),
743 "mlock": ("long", (
744 ("unsigned long", "start"),
745 ("size_t", "len"),
746 )),
747 "mlock2": ("long", (
748 ("unsigned long", "start"),
749 ("size_t", "len"),
750 ("int", "flags"),
751 )),
752 "mlockall": ("long", (
753 ("int", "flags"),
754 )),
755 "mmap_pgoff": ("long", (
756 ("unsigned long", "addr"),
757 ("unsigned long", "len"),
758 ("unsigned long", "prot"),
759 ("unsigned long", "flags"),
760 ("unsigned long", "fd"),
761 ("unsigned long", "pgoff"),
762 )),
763 "mount": ("long", (
764 ("char *", "dev_name"),
765 ("char *", "dir_name"),
766 ("char *", "type"),
767 ("unsigned long", "flags"),
768 ("void *", "data"),
769 )),
770 "move_pages": ("long", (
771 ("pid_t", "pid"),
772 ("unsigned long", "nr_pages"),
773 ("const void * *", "pages"),
774 ("const int *", "nodes"),
775 ("int *", "status"),
776 ("int", "flags"),
777 )),
778 "mprotect": ("long", (
779 ("unsigned long", "start"),
780 ("size_t", "len"),
781 ("unsigned long", "prot"),
782 )),
783 "mq_getsetattr": ("long", (
784 ("mqd_t", "mqdes"),
785 ("const struct mq_attr *", "mqstat"),
786 ("struct mq_attr *", "omqstat"),
787 )),
788 "mq_notify": ("long", (
789 ("mqd_t", "mqdes"),
790 ("const struct sigevent *", "notification"),
791 )),
792 "mq_open": ("long", (
793 ("const char *", "name"),
794 ("int", "oflag"),
795 ("umode_t", "mode"),
796 ("struct mq_attr *", "attr"),
797 )),
798 "mq_timedreceive": ("long", (
799 ("mqd_t", "mqdes"),
800 ("char *", "msg_ptr"),
801 ("size_t", "msg_len"),
802 ("unsigned int *", "msg_prio"),
803 ("const struct timespec *", "abs_timeout"),
804 )),
805 "mq_timedsend": ("long", (
806 ("mqd_t", "mqdes"),
807 ("const char *", "msg_ptr"),
808 ("size_t", "msg_len"),
809 ("unsigned int", "msg_prio"),
810 ("const struct timespec *", "abs_timeout"),
811 )),
812 "mq_unlink": ("long", (
813 ("const char *", "name"),
814 )),
815 "mremap": ("long", (
816 ("unsigned long", "addr"),
817 ("unsigned long", "old_len"),
818 ("unsigned long", "new_len"),
819 ("unsigned long", "flags"),
820 ("unsigned long", "new_addr"),
821 )),
822 "msgctl": ("long", (
823 ("int", "msqid"),
824 ("int", "cmd"),
825 ("struct msqid_ds *", "buf"),
826 )),
827 "msgget": ("long", (
828 ("key_t", "key"),
829 ("int", "msgflg"),
830 )),
831 "msgrcv": ("long", (
832 ("int", "msqid"),
833 ("struct msgbuf *", "msgp"),
834 ("size_t", "msgsz"),
835 ("long", "msgtyp"),
836 ("int", "msgflg"),
837 )),
838 "msgsnd": ("long", (
839 ("int", "msqid"),
840 ("struct msgbuf *", "msgp"),
841 ("size_t", "msgsz"),
842 ("int", "msgflg"),
843 )),
844 "msync": ("long", (
845 ("unsigned long", "start"),
846 ("size_t", "len"),
847 ("int", "flags"),
848 )),
849 "munlock": ("long", (
850 ("unsigned long", "start"),
851 ("size_t", "len"),
852 )),
853 "munlockall": ("long", (
854 )),
855 "munmap": ("long", (
856 ("unsigned long", "addr"),
857 ("size_t", "len"),
858 )),
859 "name_to_handle_at": ("long", (
860 ("int", "dirfd"),
861 ("const char *", "name"),
862 ("struct file_handle *", "handle"),
863 ("int *", "mnt_id"),
864 ("int", "flag"),
865 )),
866 "nanosleep": ("long", (
867 ("struct timespec *", "rqtp"),
868 ("struct timespec *", "rmtp"),
869 )),
870 "newfstat": ("long", (
871 ("unsigned int", "fd"),
872 ("struct stat *", "statbuf"),
873 )),
874 "newfstatat": ("long", (
875 ("int", "dfd"),
876 ("const char *", "filename"),
877 ("struct stat *", "statbuf"),
878 ("int", "flag"),
879 )),
880 "newlstat": ("long", (
881 ("const char *", "filename"),
882 ("struct stat *", "statbuf"),
883 )),
884 "newstat": ("long", (
885 ("const char *", "filename"),
886 ("struct stat *", "statbuf"),
887 )),
888 "newuname": ("long", (
889 ("struct new_utsname *", "name"),
890 )),
891 "ni_syscall": ("long", (
892 )),
893 "nice": ("long", (
894 ("int", "increment"),
895 )),
896 "old_getrlimit": ("long", (
897 ("unsigned int", "resource"),
898 ("struct rlimit *", "rlim"),
899 )),
900 "old_mmap": ("long", (
901 ("struct mmap_arg_struct *", "arg"),
902 )),
903 "old_readdir": ("long", (
904 ("unsigned int", "fd"),
905 ("struct old_linux_dirent *", "dirp"),
906 ("unsigned int", "count"),
907 )),
908 "old_select": ("long", (
909 ("struct sel_arg_struct *", "arg"),
910 )),
911 "oldumount": ("long", (
912 ("char *", "name"),
913 )),
914 "olduname": ("long", (
915 ("struct oldold_utsname *", "buf"),
916 )),
917 "open": ("long", (
918 ("const char *", "filename"),
919 ("int", "flags"),
920 ("umode_t", "mode"),
921 )),
922 "open_by_handle_at": ("long", (
923 ("int", "mount_fd"),
924 ("struct file_handle *", "handle"),
925 ("int", "flags"),
926 )),
927 "openat": ("long", (
928 ("int", "dirfd"),
929 ("const char *", "filename"),
930 ("int", "flags"),
931 ("umode_t", "mode"),
932 )),
933 "pause": ("long", (
934 )),
935 "pciconfig_iobase": ("long", (
936 ("long", "which"),
937 ("unsigned long", "bus"),
938 ("unsigned long", "devfn"),
939 )),
940 "pciconfig_read": ("long", (
941 ("unsigned long", "bus"),
942 ("unsigned long", "dfn"),
943 ("unsigned long", "off"),
944 ("unsigned long", "len"),
945 ("void *", "buf"),
946 )),
947 "pciconfig_write": ("long", (
948 ("unsigned long", "bus"),
949 ("unsigned long", "dfn"),
950 ("unsigned long", "off"),
951 ("unsigned long", "len"),
952 ("void *", "buf"),
953 )),
954 "perf_event_open": ("long", (
955 ("struct perf_event_attr *", "attr_uptr"),
956 ("pid_t", "pid"),
957 ("int", "cpu"),
958 ("int", "group_fd"),
959 ("unsigned long", "flags"),
960 )),
961 "personality": ("long", (
962 ("unsigned int", "personality"),
963 )),
964 "pipe": ("long", (
965 ("int[2]", "fildes"),
966 )),
967 "pipe2": ("long", (
968 ("int[2]", "fildes"),
969 ("int", "flags"),
970 )),
971 "pivot_root": ("long", (
972 ("const char *", "new_root"),
973 ("const char *", "put_old"),
974 )),
975 "poll": ("long", (
976 ("struct pollfd *", "ufds"),
977 ("unsigned int", "nfds"),
978 ("int", "timeout"),
979 )),
980 "ppoll": ("long", (
981 ("struct pollfd *", "fds"),
982 ("unsigned int", "nfds"),
983 ("struct timespec *", "tmo_p"),
984 ("const sigset_t *", "sigmask"),
985 ("size_t", ""),
986 )),
987 "prctl": ("long", (
988 ("int", "option"),
989 ("unsigned long", "arg2"),
990 ("unsigned long", "arg3"),
991 ("unsigned long", "arg4"),
992 ("unsigned long", "arg5"),
993 )),
994 "pread64": ("long", (
995 ("unsigned int", "fd"),
996 ("char *", "buf"),
997 ("size_t", "count"),
998 ("loff_t", "pos"),
999 )),
1000 "preadv": ("long", (
1001 ("unsigned long", "fd"),
1002 ("const struct iovec *", "vec"),
1003 ("unsigned long", "vlen"),
1004 ("unsigned long", "pos_l"),
1005 ("unsigned long", "pos_h"),
1006 )),
1007 "prlimit64": ("long", (
1008 ("pid_t", "pid"),
1009 ("unsigned int", "resource"),
1010 ("const struct rlimit64 *", "new_rlim"),
1011 ("struct rlimit64 *", "old_rlim"),
1012 )),
1013 "process_vm_readv": ("long", (
1014 ("pid_t", "pid"),
1015 ("const struct iovec *", "lvec"),
1016 ("unsigned long", "liovcnt"),
1017 ("const struct iovec *", "rvec"),
1018 ("unsigned long", "riovcnt"),
1019 ("unsigned long", "flags"),
1020 )),
1021 "process_vm_writev": ("long", (
1022 ("pid_t", "pid"),
1023 ("const struct iovec *", "lvec"),
1024 ("unsigned long", "liovcnt"),
1025 ("const struct iovec *", "rvec"),
1026 ("unsigned long", "riovcnt"),
1027 ("unsigned long", "flags"),
1028 )),
1029 "pselect6": ("long", (
1030 ("int", "nfds"),
1031 ("fd_set *", "readfds"),
1032 ("fd_set *", "writefds"),
1033 ("fd_set *", "exceptfds"),
1034 ("struct timespec *", "timeout"),
1035 ("void *", "sigmask"),
1036 )),
1037 "ptrace": ("long", (
1038 ("long", "request"),
1039 ("long", "pid"),
1040 ("unsigned long", "addr"),
1041 ("unsigned long", "data"),
1042 )),
1043 "pwrite64": ("long", (
1044 ("unsigned int", "fd"),
1045 ("const char *", "buf"),
1046 ("size_t", "count"),
1047 ("loff_t", "pos"),
1048 )),
1049 "pwritev": ("long", (
1050 ("unsigned long", "fd"),
1051 ("const struct iovec *", "vec"),
1052 ("unsigned long", "vlen"),
1053 ("unsigned long", "pos_l"),
1054 ("unsigned long", "pos_h"),
1055 )),
1056 "quotactl": ("long", (
1057 ("unsigned int", "cmd"),
1058 ("const char *", "special"),
1059 ("qid_t", "id"),
1060 ("void *", "addr"),
1061 )),
1062 "read": ("long", (
1063 ("unsigned int", "fd"),
1064 ("char *", "buf"),
1065 ("size_t", "count"),
1066 )),
1067 "readahead": ("long", (
1068 ("int", "fd"),
1069 ("loff_t", "offset"),
1070 ("size_t", "count"),
1071 )),
1072 "readlink": ("long", (
1073 ("const char *", "path"),
1074 ("char *", "buf"),
1075 ("int", "bufsiz"),
1076 )),
1077 "readlinkat": ("long", (
1078 ("int", "dfd"),
1079 ("const char *", "path"),
1080 ("char *", "buf"),
1081 ("int", "bufsiz"),
1082 )),
1083 "readv": ("long", (
1084 ("unsigned long", "fd"),
1085 ("const struct iovec *", "vec"),
1086 ("unsigned long", "vlen"),
1087 )),
1088 "reboot": ("long", (
1089 ("int", "magic1"),
1090 ("int", "magic2"),
1091 ("unsigned int", "cmd"),
1092 ("void *", "arg"),
1093 )),
1094 "recv": ("long", (
1095 ("int", "sockfd"),
1096 ("void *", "buf"),
1097 ("size_t", "len"),
1098 ("unsigned", "flags"),
1099 )),
1100 "recvfrom": ("long", (
1101 ("int", "sockfd"),
1102 ("void *", "buf"),
1103 ("size_t", "len"),
1104 ("unsigned", "flags"),
1105 ("struct sockaddr *", "src_addr"),
1106 ("int *", "addrlen"),
1107 )),
1108 "recvmmsg": ("long", (
1109 ("int", "fd"),
1110 ("struct mmsghdr *", "msg"),
1111 ("unsigned int", "vlen"),
1112 ("unsigned", "flags"),
1113 ("struct timespec *", "timeout"),
1114 )),
1115 "recvmsg": ("long", (
1116 ("int", "fd"),
1117 ("struct user_msghdr *", "msg"),
1118 ("unsigned", "flags"),
1119 )),
1120 "remap_file_pages": ("long", (
1121 ("unsigned long", "start"),
1122 ("unsigned long", "size"),
1123 ("unsigned long", "prot"),
1124 ("unsigned long", "pgoff"),
1125 ("unsigned long", "flags"),
1126 )),
1127 "removexattr": ("long", (
1128 ("const char *", "path"),
1129 ("const char *", "name"),
1130 )),
1131 "rename": ("long", (
1132 ("const char *", "oldname"),
1133 ("const char *", "newname"),
1134 )),
1135 "renameat": ("long", (
1136 ("int", "olddfd"),
1137 ("const char *", "oldname"),
1138 ("int", "newdfd"),
1139 ("const char *", "newname"),
1140 )),
1141 "renameat2": ("long", (
1142 ("int", "olddfd"),
1143 ("const char *", "oldname"),
1144 ("int", "newdfd"),
1145 ("const char *", "newname"),
1146 ("unsigned int", "flags"),
1147 )),
1148 "request_key": ("long", (
1149 ("const char *", "_type"),
1150 ("const char *", "_description"),
1151 ("const char *", "_callout_info"),
1152 ("key_serial_t", "destringid"),
1153 )),
1154 "restart_syscall": ("long", (
1155 )),
1156 "rmdir": ("long", (
1157 ("const char *", "pathname"),
1158 )),
1159 "rt_sigaction": ("long", (
1160 ("int", "signum"),
1161 ("const struct sigaction *", "act"),
1162 ("struct sigaction *", "oldact"),
1163 ("size_t", ""),
1164 )),
1165 "rt_sigpending": ("long", (
1166 ("sigset_t *", "set"),
1167 ("size_t", "sigsetsize"),
1168 )),
1169 "rt_sigprocmask": ("long", (
1170 ("int", "how"),
1171 ("sigset_t *", "set"),
1172 ("sigset_t *", "oset"),
1173 ("size_t", "sigsetsize"),
1174 )),
1175 "rt_sigqueueinfo": ("long", (
1176 ("int", "pid"),
1177 ("int", "sig"),
1178 ("siginfo_t *", "uinfo"),
1179 )),
1180 "rt_sigsuspend": ("long", (
1181 ("sigset_t *", "unewset"),
1182 ("size_t", "sigsetsize"),
1183 )),
1184 "rt_sigtimedwait": ("long", (
1185 ("const sigset_t *", "uthese"),
1186 ("siginfo_t *", "uinfo"),
1187 ("const struct timespec *", "uts"),
1188 ("size_t", "sigsetsize"),
1189 )),
1190 "rt_tgsigqueueinfo": ("long", (
1191 ("pid_t", "tgid"),
1192 ("pid_t", "pid"),
1193 ("int", "sig"),
1194 ("siginfo_t *", "uinfo"),
1195 )),
1196 "sched_get_priority_max": ("long", (
1197 ("int", "policy"),
1198 )),
1199 "sched_get_priority_min": ("long", (
1200 ("int", "policy"),
1201 )),
1202 "sched_getaffinity": ("long", (
1203 ("pid_t", "pid"),
1204 ("unsigned int", "len"),
1205 ("unsigned long *", "user_mask_ptr"),
1206 )),
1207 "sched_getattr": ("long", (
1208 ("pid_t", "pid"),
1209 ("struct sched_attr *", "attr"),
1210 ("unsigned int", "size"),
1211 ("unsigned int", "flags"),
1212 )),
1213 "sched_getparam": ("long", (
1214 ("pid_t", "pid"),
1215 ("struct sched_param *", "param"),
1216 )),
1217 "sched_getscheduler": ("long", (
1218 ("pid_t", "pid"),
1219 )),
1220 "sched_rr_get_interval": ("long", (
1221 ("pid_t", "pid"),
1222 ("struct timespec *", "interval"),
1223 )),
1224 "sched_setaffinity": ("long", (
1225 ("pid_t", "pid"),
1226 ("unsigned int", "len"),
1227 ("unsigned long *", "user_mask_ptr"),
1228 )),
1229 "sched_setattr": ("long", (
1230 ("pid_t", "pid"),
1231 ("struct sched_attr *", "attr"),
1232 ("unsigned int", "flags"),
1233 )),
1234 "sched_setparam": ("long", (
1235 ("pid_t", "pid"),
1236 ("struct sched_param *", "param"),
1237 )),
1238 "sched_setscheduler": ("long", (
1239 ("pid_t", "pid"),
1240 ("int", "policy"),
1241 ("struct sched_param *", "param"),
1242 )),
1243 "sched_yield": ("long", (
1244 )),
1245 "seccomp": ("long", (
1246 ("unsigned int", "op"),
1247 ("unsigned int", "flags"),
1248 ("const char *", "uargs"),
1249 )),
1250 "select": ("long", (
1251 ("int", "nfds"),
1252 ("fd_set *", "readfds"),
1253 ("fd_set *", "writefds"),
1254 ("fd_set *", "errorfds"),
1255 ("struct timeval *", "timeout"),
1256 )),
1257 "semctl": ("long", (
1258 ("int", "semid"),
1259 ("int", "semnum"),
1260 ("int", "cmd"),
1261 ("unsigned long", "arg"),
1262 )),
1263 "semget": ("long", (
1264 ("key_t", "key"),
1265 ("int", "nsems"),
1266 ("int", "semflg"),
1267 )),
1268 "semop": ("long", (
1269 ("int", "semid"),
1270 ("struct sembuf *", "sops"),
1271 ("unsigned", "nsops"),
1272 )),
1273 "semtimedop": ("long", (
1274 ("int", "semid"),
1275 ("struct sembuf *", "sops"),
1276 ("unsigned", "nsops"),
1277 ("const struct timespec *", "timeout"),
1278 )),
1279 "send": ("long", (
1280 ("int", "sockfd"),
1281 ("void *", "buf"),
1282 ("size_t", "len"),
1283 ("unsigned", "flags"),
1284 )),
1285 "sendfile": ("long", (
1286 ("int", "out_fd"),
1287 ("int", "in_fd"),
1288 ("off_t *", "offset"),
1289 ("size_t", "count"),
1290 )),
1291 "sendfile64": ("long", (
1292 ("int", "out_fd"),
1293 ("int", "in_fd"),
1294 ("loff_t *", "offset"),
1295 ("size_t", "count"),
1296 )),
1297 "sendmmsg": ("long", (
1298 ("int", "fd"),
1299 ("struct mmsghdr *", "msg"),
1300 ("unsigned int", "vlen"),
1301 ("unsigned", "flags"),
1302 )),
1303 "sendmsg": ("long", (
1304 ("int", "fd"),
1305 ("struct user_msghdr *", "msg"),
1306 ("unsigned", "flags"),
1307 )),
1308 "sendto": ("long", (
1309 ("int", "sockfd"),
1310 ("void *", "buf"),
1311 ("size_t", "len"),
1312 ("unsigned", "flags"),
1313 ("struct sockaddr *", "dest_addr"),
1314 ("int", "addrlen"),
1315 )),
1316 "set_mempolicy": ("long", (
1317 ("int", "mode"),
1318 ("const unsigned long *", "nmask"),
1319 ("unsigned long", "maxnode"),
1320 )),
1321 "set_robust_list": ("long", (
1322 ("struct robust_list_head *", "head"),
1323 ("size_t", "len"),
1324 )),
1325 "set_tid_address": ("long", (
1326 ("int *", "tidptr"),
1327 )),
1328 "setdomainname": ("long", (
1329 ("char *", "name"),
1330 ("int", "len"),
1331 )),
1332 "setfsgid": ("long", (
1333 ("gid_t", "gid"),
1334 )),
1335 "setfsgid16": ("long", (
1336 ("old_gid_t", "gid"),
1337 )),
1338 "setfsuid": ("long", (
1339 ("uid_t", "uid"),
1340 )),
1341 "setfsuid16": ("long", (
1342 ("old_uid_t", "uid"),
1343 )),
1344 "setgid": ("long", (
1345 ("gid_t", "gid"),
1346 )),
1347 "setgid16": ("long", (
1348 ("old_gid_t", "gid"),
1349 )),
1350 "setgroups": ("long", (
1351 ("int", "gidsetsize"),
1352 ("gid_t *", "grouplist"),
1353 )),
1354 "setgroups16": ("long", (
1355 ("int", "gidsetsize"),
1356 ("old_gid_t *", "grouplist"),
1357 )),
1358 "sethostname": ("long", (
1359 ("char *", "name"),
1360 ("int", "len"),
1361 )),
1362 "setitimer": ("long", (
1363 ("int", "which"),
1364 ("struct itimerval *", "value"),
1365 ("struct itimerval *", "ovalue"),
1366 )),
1367 "setns": ("long", (
1368 ("int", "fd"),
1369 ("int", "nstype"),
1370 )),
1371 "setpgid": ("long", (
1372 ("pid_t", "pid"),
1373 ("pid_t", "pgid"),
1374 )),
1375 "setpriority": ("long", (
1376 ("int", "which"),
1377 ("int", "who"),
1378 ("int", "niceval"),
1379 )),
1380 "setregid": ("long", (
1381 ("gid_t", "rgid"),
1382 ("gid_t", "egid"),
1383 )),
1384 "setregid16": ("long", (
1385 ("old_gid_t", "rgid"),
1386 ("old_gid_t", "egid"),
1387 )),
1388 "setresgid": ("long", (
1389 ("gid_t", "rgid"),
1390 ("gid_t", "egid"),
1391 ("gid_t", "sgid"),
1392 )),
1393 "setresgid16": ("long", (
1394 ("old_gid_t", "rgid"),
1395 ("old_gid_t", "egid"),
1396 ("old_gid_t", "sgid"),
1397 )),
1398 "setresuid": ("long", (
1399 ("uid_t", "ruid"),
1400 ("uid_t", "euid"),
1401 ("uid_t", "suid"),
1402 )),
1403 "setresuid16": ("long", (
1404 ("old_uid_t", "ruid"),
1405 ("old_uid_t", "euid"),
1406 ("old_uid_t", "suid"),
1407 )),
1408 "setreuid": ("long", (
1409 ("uid_t", "ruid"),
1410 ("uid_t", "euid"),
1411 )),
1412 "setreuid16": ("long", (
1413 ("old_uid_t", "ruid"),
1414 ("old_uid_t", "euid"),
1415 )),
1416 "setrlimit": ("long", (
1417 ("unsigned int", "resource"),
1418 ("struct rlimit *", "rlim"),
1419 )),
1420 "setsid": ("long", (
1421 )),
1422 "setsockopt": ("long", (
1423 ("int", "fd"),
1424 ("int", "level"),
1425 ("int", "optname"),
1426 ("char *", "optval"),
1427 ("int", "optlen"),
1428 )),
1429 "settimeofday": ("long", (
1430 ("struct timeval *", "tv"),
1431 ("struct timezone *", "tz"),
1432 )),
1433 "setuid": ("long", (
1434 ("uid_t", "uid"),
1435 )),
1436 "setuid16": ("long", (
1437 ("old_uid_t", "uid"),
1438 )),
1439 "setxattr": ("long", (
1440 ("const char *", "path"),
1441 ("const char *", "name"),
1442 ("const void *", "value"),
1443 ("size_t", "size"),
1444 ("int", "flags"),
1445 )),
1446 "sgetmask": ("long", (
1447 )),
1448 "shmat": ("long", (
1449 ("int", "shmid"),
1450 ("char *", "shmaddr"),
1451 ("int", "shmflg"),
1452 )),
1453 "shmctl": ("long", (
1454 ("int", "shmid"),
1455 ("int", "cmd"),
1456 ("struct shmid_ds *", "buf"),
1457 )),
1458 "shmdt": ("long", (
1459 ("char *", "shmaddr"),
1460 )),
1461 "shmget": ("long", (
1462 ("key_t", "key"),
1463 ("size_t", "size"),
1464 ("int", "flag"),
1465 )),
1466 "shutdown": ("long", (
1467 ("int", "sockfd"),
1468 ("int", "how"),
1469 )),
1470 "sigaction": ("long", (
1471 ("int", "signum"),
1472 ("const struct old_sigaction *", "act"),
1473 ("struct old_sigaction *", "oldact"),
1474 )),
1475 "sigaltstack": ("long", (
1476 ("const struct sigaltstack *", "uss"),
1477 ("struct sigaltstack *", "uoss"),
1478 )),
1479 "signal": ("long", (
1480 ("int", "sig"),
1481 ("__sighandler_t", "handler"),
1482 )),
1483 "signalfd": ("long", (
1484 ("int", "ufd"),
1485 ("sigset_t *", "user_mask"),
1486 ("size_t", "sizemask"),
1487 )),
1488 "signalfd4": ("long", (
1489 ("int", "ufd"),
1490 ("sigset_t *", "user_mask"),
1491 ("size_t", "sizemask"),
1492 ("int", "flags"),
1493 )),
1494 "sigpending": ("long", (
1495 ("old_sigset_t *", "set"),
1496 )),
1497 "sigprocmask": ("long", (
1498 ("int", "how"),
1499 ("old_sigset_t *", "set"),
1500 ("old_sigset_t *", "oset"),
1501 )),
1502 "sigsuspend": ("long", (
1503 ("int", "unused1"),
1504 ("int", "unused2"),
1505 ("old_sigset_t", "mask"),
1506 )),
1507 "socket": ("long", (
1508 ("int", "domain"),
1509 ("int", "type"),
1510 ("int", "protocol"),
1511 )),
1512 "socketcall": ("long", (
1513 ("int", "call"),
1514 ("unsigned long *", "args"),
1515 )),
1516 "socketpair": ("long", (
1517 ("int", "domain"),
1518 ("int", "type"),
1519 ("int", "protocol"),
1520 ("int *", "sv"),
1521 )),
1522 "splice": ("long", (
1523 ("int", "fd_in"),
1524 ("loff_t *", "off_in"),
1525 ("int", "fd_out"),
1526 ("loff_t *", "off_out"),
1527 ("size_t", "len"),
1528 ("unsigned int", "flags"),
1529 )),
1530 "spu_create": ("long", (
1531 ("const char *", "name"),
1532 ("unsigned int", "flags"),
1533 ("umode_t", "mode"),
1534 ("int", "fd"),
1535 )),
1536 "spu_run": ("long", (
1537 ("int", "fd"),
1538 ("__u32 *", "unpc"),
1539 ("__u32 *", "ustatus"),
1540 )),
1541 "ssetmask": ("long", (
1542 ("int", "newmask"),
1543 )),
1544 "stat": ("long", (
1545 ("const char *", "filename"),
1546 ("struct __old_kernel_stat *", "statbuf"),
1547 )),
1548 "stat64": ("long", (
1549 ("const char *", "filename"),
1550 ("struct stat64 *", "statbuf"),
1551 )),
1552 "statfs": ("long", (
1553 ("const char *", "path"),
1554 ("struct statfs *", "buf"),
1555 )),
1556 "statfs64": ("long", (
1557 ("const char *", "path"),
1558 ("size_t", "sz"),
1559 ("struct statfs64 *", "buf"),
1560 )),
1561 "statx": ("long", (
1562 ("int", "dirfd"),
1563 ("const char *", "pathname"),
1564 ("int", "flags"),
1565 ("unsigned int", "mask"),
1566 ("struct statx *", "statxbuf"),
1567 )),
1568 "stime": ("long", (
1569 ("time_t *", "tptr"),
1570 )),
1571 "swapoff": ("long", (
1572 ("const char *", "specialfile"),
1573 )),
1574 "swapon": ("long", (
1575 ("const char *", "specialfile"),
1576 ("int", "swap_flags"),
1577 )),
1578 "symlink": ("long", (
1579 ("const char *", "old"),
1580 ("const char *", "new"),
1581 )),
1582 "symlinkat": ("long", (
1583 ("const char *", "oldname"),
1584 ("int", "newdfd"),
1585 ("const char *", "newname"),
1586 )),
1587 "sync": ("long", (
1588 )),
1589 "sync_file_range": ("long", (
1590 ("int", "fd"),
1591 ("loff_t", "offset"),
1592 ("loff_t", "nbytes"),
1593 ("unsigned int", "flags"),
1594 )),
1595 "sync_file_range2": ("long", (
1596 ("int", "fd"),
1597 ("unsigned int", "flags"),
1598 ("loff_t", "offset"),
1599 ("loff_t", "nbytes"),
1600 )),
1601 "syncfs": ("long", (
1602 ("int", "fd"),
1603 )),
1604 "sysctl": ("long", (
1605 ("struct __sysctl_args *", "args"),
1606 )),
1607 "sysfs": ("long", (
1608 ("int", "option"),
1609 ("unsigned long", "arg1"),
1610 ("unsigned long", "arg2"),
1611 )),
1612 "sysinfo": ("long", (
1613 ("struct sysinfo *", "info"),
1614 )),
1615 "syslog": ("long", (
1616 ("int", "type"),
1617 ("char *", "buf"),
1618 ("int", "len"),
1619 )),
1620 "tee": ("long", (
1621 ("int", "fdin"),
1622 ("int", "fdout"),
1623 ("size_t", "len"),
1624 ("unsigned int", "flags"),
1625 )),
1626 "tgkill": ("long", (
1627 ("int", "tgid"),
1628 ("int", "pid"),
1629 ("int", "sig"),
1630 )),
1631 "time": ("long", (
1632 ("time_t *", "tloc"),
1633 )),
1634 "timer_create": ("long", (
1635 ("clockid_t", "which_clock"),
1636 ("struct sigevent *", "timer_event_spec"),
1637 ("timer_t *", "created_timer_id"),
1638 )),
1639 "timer_delete": ("long", (
1640 ("timer_t", "timer_id"),
1641 )),
1642 "timer_getoverrun": ("long", (
1643 ("timer_t", "timer_id"),
1644 )),
1645 "timer_gettime": ("long", (
1646 ("timer_t", "timer_id"),
1647 ("struct itimerspec *", "setting"),
1648 )),
1649 "timer_settime": ("long", (
1650 ("timer_t", "timer_id"),
1651 ("int", "flags"),
1652 ("const struct itimerspec *", "new_setting"),
1653 ("struct itimerspec *", "old_setting"),
1654 )),
1655 "timerfd_create": ("long", (
1656 ("int", "clockid"),
1657 ("int", "flags"),
1658 )),
1659 "timerfd_gettime": ("long", (
1660 ("int", "ufd"),
1661 ("struct itimerspec *", "otmr"),
1662 )),
1663 "timerfd_settime": ("long", (
1664 ("int", "ufd"),
1665 ("int", "flags"),
1666 ("const struct itimerspec *", "utmr"),
1667 ("struct itimerspec *", "otmr"),
1668 )),
1669 "times": ("long", (
1670 ("struct tms *", "tbuf"),
1671 )),
1672 "tkill": ("long", (
1673 ("int", "pid"),
1674 ("int", "sig"),
1675 )),
1676 "truncate": ("long", (
1677 ("const char *", "path"),
1678 ("long", "length"),
1679 )),
1680 "truncate64": ("long", (
1681 ("const char *", "path"),
1682 ("loff_t", "length"),
1683 )),
1684 "umask": ("long", (
1685 ("int", "mask"),
1686 )),
1687 "umount": ("long", (
1688 ("char *", "name"),
1689 ("int", "flags"),
1690 )),
1691 "uname": ("long", (
1692 ("struct old_utsname *", "buf"),
1693 )),
1694 "unlink": ("long", (
1695 ("const char *", "pathname"),
1696 )),
1697 "unlinkat": ("long", (
1698 ("int", "dfd"),
1699 ("const char *", "pathname"),
1700 ("int", "flag"),
1701 )),
1702 "unshare": ("long", (
1703 ("unsigned long", "unshare_flags"),
1704 )),
1705 "uselib": ("long", (
1706 ("const char *", "library"),
1707 )),
1708 "userfaultfd": ("long", (
1709 ("int", "flags"),
1710 )),
1711 "ustat": ("long", (
1712 ("unsigned", "dev"),
1713 ("struct ustat *", "ubuf"),
1714 )),
1715 "utime": ("long", (
1716 ("char *", "filename"),
1717 ("struct utimbuf *", "times"),
1718 )),
1719 "utimensat": ("long", (
1720 ("int", "dfd"),
1721 ("const char *", "filename"),
1722 ("struct timespec *", "utimes"),
1723 ("int", "flags"),
1724 )),
1725 "utimes": ("long", (
1726 ("char *", "filename"),
1727 ("struct timeval *", "utimes"),
1728 )),
1729 "vfork": ("long", (
1730 )),
1731 "vhangup": ("long", (
1732 )),
1733 "vmsplice": ("long", (
1734 ("int", "fd"),
1735 ("const struct iovec *", "iov"),
1736 ("unsigned long", "nr_segs"),
1737 ("unsigned int", "flags"),
1738 )),
1739 "wait4": ("long", (
1740 ("pid_t", "pid"),
1741 ("int *", "stat_addr"),
1742 ("int", "options"),
1743 ("struct rusage *", "ru"),
1744 )),
1745 "waitid": ("long", (
1746 ("int", "which"),
1747 ("pid_t", "pid"),
1748 ("struct siginfo *", "infop"),
1749 ("int", "options"),
1750 ("struct rusage *", "ru"),
1751 )),
1752 "waitpid": ("long", (
1753 ("pid_t", "pid"),
1754 ("int *", "stat_addr"),
1755 ("int", "options"),
1756 )),
1757 "write": ("long", (
1758 ("unsigned int", "fd"),
1759 ("const char *", "buf"),
1760 ("size_t", "count"),
1761 )),
1762 "writev": ("long", (
1763 ("unsigned long", "fd"),
1764 ("const struct iovec *", "vec"),
1765 ("unsigned long", "vlen"),
1766 )),
1767 }
1768
1769 for orig, copies in ALIASES.items():
1770 orig = SYSCALL_PROTOTYPES[orig]
1771 for copy in copies:
1772 SYSCALL_PROTOTYPES[copy] = orig