add epoll syscallsdiff -r1.5 -r1.6 src/sys/compat/linux/arch/aarch64/syscalls.master
(christos)
--- src/sys/compat/linux/arch/aarch64/syscalls.master 2023/07/10 21:08:26 1.5
+++ src/sys/compat/linux/arch/aarch64/syscalls.master 2023/07/28 19:01:10 1.6
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: syscalls.master,v 1.5 2023/07/10 21:08:26 christos Exp $ | 1 | $NetBSD: syscalls.master,v 1.6 2023/07/28 19:01:10 christos Exp $ | |
2 | 2 | |||
3 | ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 | 3 | ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 | |
4 | 4 | |||
5 | ; Derived from sys/compat/linux/arch/*/syscalls.master | 5 | ; Derived from sys/compat/linux/arch/*/syscalls.master | |
6 | ; and from Linux include/uapi/asm-generic/unistd.h | 6 | ; and from Linux include/uapi/asm-generic/unistd.h | |
7 | 7 | |||
8 | ; NetBSD aarch64 COMPAT_LINUX system call name/number "master" file. | 8 | ; NetBSD aarch64 COMPAT_LINUX system call name/number "master" file. | |
9 | ; (See syscalls.conf to see what it is processed into.) | 9 | ; (See syscalls.conf to see what it is processed into.) | |
10 | ; | 10 | ; | |
11 | ; Fields: number type [type-dependent ...] | 11 | ; Fields: number type [type-dependent ...] | |
12 | ; number system call number, must be in order | 12 | ; number system call number, must be in order | |
13 | ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of | 13 | ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of | |
14 | ; the compatibility options defined in syscalls.conf. | 14 | ; the compatibility options defined in syscalls.conf. | |
@@ -87,29 +87,32 @@ | @@ -87,29 +87,32 @@ | |||
87 | 11 STD { ssize_t|linux_sys||listxattr(char *path, char *list, \ | 87 | 11 STD { ssize_t|linux_sys||listxattr(char *path, char *list, \ | |
88 | size_t size); } | 88 | size_t size); } | |
89 | 12 STD { ssize_t|linux_sys||llistxattr(char *path, char *list, \ | 89 | 12 STD { ssize_t|linux_sys||llistxattr(char *path, char *list, \ | |
90 | size_t size); } | 90 | size_t size); } | |
91 | 13 STD { ssize_t|linux_sys||flistxattr(int fd, char *list, \ | 91 | 13 STD { ssize_t|linux_sys||flistxattr(int fd, char *list, \ | |
92 | size_t size); } | 92 | size_t size); } | |
93 | 14 STD { int|linux_sys||removexattr(char *path, char *name); } | 93 | 14 STD { int|linux_sys||removexattr(char *path, char *name); } | |
94 | 15 STD { int|linux_sys||lremovexattr(char *path, char *name); } | 94 | 15 STD { int|linux_sys||lremovexattr(char *path, char *name); } | |
95 | 16 STD { int|linux_sys||fremovexattr(int fd, char *name); } | 95 | 16 STD { int|linux_sys||fremovexattr(int fd, char *name); } | |
96 | 17 NOARGS { int|sys||__getcwd(char *bufp, size_t length); } | 96 | 17 NOARGS { int|sys||__getcwd(char *bufp, size_t length); } | |
97 | 18 UNIMPL lookup_dcookie | 97 | 18 UNIMPL lookup_dcookie | |
98 | 19 STD { int|linux_sys||eventfd2(unsigned int initval, \ | 98 | 19 STD { int|linux_sys||eventfd2(unsigned int initval, \ | |
99 | int flags); } | 99 | int flags); } | |
100 | 20 UNIMPL epoll_create1 | 100 | 20 STD { int|linux_sys||epoll_create1(int flags); } | |
101 | 21 UNIMPL epoll_ctl | 101 | 21 STD { int|linux_sys||epoll_ctl(int epfd, int op, int fd, \ | |
102 | 22 UNIMPL epoll_pwait | 102 | struct linux_epoll_event *event); } | |
103 | 22 STD { int|linux_sys||epoll_pwait(int epfd, \ | |||
104 | struct linux_epoll_event *events, int maxevents, \ | |||
105 | int timeout, const linux_sigset_t *sigmask); } | |||
103 | 23 NOARGS { int|sys||dup(int fd); } | 106 | 23 NOARGS { int|sys||dup(int fd); } | |
104 | 24 STD { int|linux_sys||dup3(int from, int to, int flags); } | 107 | 24 STD { int|linux_sys||dup3(int from, int to, int flags); } | |
105 | 25 STD { int|linux_sys||fcntl(int fd, int cmd, void *arg); } | 108 | 25 STD { int|linux_sys||fcntl(int fd, int cmd, void *arg); } | |
106 | 26 UNIMPL inotify_init1 | 109 | 26 UNIMPL inotify_init1 | |
107 | 27 UNIMPL inotify_add_watch | 110 | 27 UNIMPL inotify_add_watch | |
108 | 28 UNIMPL inotify_rm_watch | 111 | 28 UNIMPL inotify_rm_watch | |
109 | 29 STD { int|linux_sys||ioctl(int fd, u_long com, \ | 112 | 29 STD { int|linux_sys||ioctl(int fd, u_long com, \ | |
110 | void *data); } | 113 | void *data); } | |
111 | 30 UNIMPL ioprio_set | 114 | 30 UNIMPL ioprio_set | |
112 | 31 UNIMPL ioprio_get | 115 | 31 UNIMPL ioprio_get | |
113 | 32 NOARGS { int|sys||flock(int fd, int how); } | 116 | 32 NOARGS { int|sys||flock(int fd, int how); } | |
114 | 33 STD { int|linux_sys||mknodat(int fd, const char *path, \ | 117 | 33 STD { int|linux_sys||mknodat(int fd, const char *path, \ | |
115 | linux_umode_t mode, unsigned dev); } | 118 | linux_umode_t mode, unsigned dev); } | |
@@ -669,13 +672,17 @@ | @@ -669,13 +672,17 @@ | |||
669 | 430 UNIMPL fsopen | 672 | 430 UNIMPL fsopen | |
670 | 431 UNIMPL fsconfig | 673 | 431 UNIMPL fsconfig | |
671 | 432 UNIMPL fsmount | 674 | 432 UNIMPL fsmount | |
672 | 433 UNIMPL fspick | 675 | 433 UNIMPL fspick | |
673 | 434 UNIMPL pidfd_open | 676 | 434 UNIMPL pidfd_open | |
674 | 435 UNIMPL clone3 | 677 | 435 UNIMPL clone3 | |
675 | 436 UNIMPL | 678 | 436 UNIMPL | |
676 | 437 UNIMPL openat2 | 679 | 437 UNIMPL openat2 | |
677 | 438 UNIMPL pidfd_getfd | 680 | 438 UNIMPL pidfd_getfd | |
678 | 439 UNIMPL faccessat2 | 681 | 439 UNIMPL faccessat2 | |
679 | 682 | |||
680 | ; we want a "nosys" syscall, we'll just add an extra entry for it. | 683 | ; we want a "nosys" syscall, we'll just add an extra entry for it. | |
681 | 440 STD { int|linux_sys||nosys(void); } | 684 | 440 STD { int|linux_sys||nosys(void); } | |
685 | 441 STD { int|linux_sys||epoll_pwait2(int epfd, \ | |||
686 | struct linux_epoll_event *events, int maxevents, \ | |||
687 | const struct linux_timespec *timeout, \ | |||
688 | const linux_sigset_t *sigmask); } |
--- src/sys/compat/linux/arch/alpha/syscalls.conf 2001/03/30 18:31:28 1.3
+++ src/sys/compat/linux/arch/alpha/syscalls.conf 2023/07/28 19:01:11 1.4
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | # $NetBSD: syscalls.conf,v 1.3 2001/03/30 18:31:28 jdolecek Exp $ | 1 | # $NetBSD: syscalls.conf,v 1.4 2023/07/28 19:01:11 christos Exp $ | |
2 | 2 | |||
3 | sysnames="linux_syscalls.c" | 3 | sysnames="linux_syscalls.c" | |
4 | sysnumhdr="linux_syscall.h" | 4 | sysnumhdr="linux_syscall.h" | |
5 | syssw="linux_sysent.c" | 5 | syssw="linux_sysent.c" | |
6 | sysarghdr="linux_syscallargs.h" | 6 | sysarghdr="linux_syscallargs.h" | |
7 | compatopts="" | 7 | compatopts="" | |
8 | libcompatopts="" | 8 | libcompatopts="" | |
9 | 9 | |||
10 | switchname="linux_sysent" | 10 | switchname="linux_sysent" | |
11 | namesname="linux_syscallnames" | 11 | namesname="linux_syscallnames" | |
12 | constprefix="LINUX_SYS_" | 12 | constprefix="LINUX_SYS_" | |
13 | nsysent=512 | 13 | nsysent=1024 | |
14 | 14 | |||
15 | sys_nosys="linux_sys_nosys" | 15 | sys_nosys="linux_sys_nosys" |
--- src/sys/compat/linux/arch/alpha/syscalls.master 2021/12/02 04:29:47 1.102
+++ src/sys/compat/linux/arch/alpha/syscalls.master 2023/07/28 19:01:11 1.103
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: syscalls.master,v 1.102 2021/12/02 04:29:47 ryo Exp $ | 1 | $NetBSD: syscalls.master,v 1.103 2023/07/28 19:01:11 christos Exp $ | |
2 | ; | 2 | ; | |
3 | ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 | 3 | ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 | |
4 | 4 | |||
5 | ; NetBSD alpha COMPAT_LINUX system call name/number "master" file. | 5 | ; NetBSD alpha COMPAT_LINUX system call name/number "master" file. | |
6 | ; (See syscalls.conf to see what it is processed into.) | 6 | ; (See syscalls.conf to see what it is processed into.) | |
7 | ; | 7 | ; | |
8 | ; Fields: number type [type-dependent ...] | 8 | ; Fields: number type [type-dependent ...] | |
9 | ; number system call number, must be in order | 9 | ; number system call number, must be in order | |
10 | ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of | 10 | ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of | |
11 | ; the compatibility options defined in syscalls.conf. | 11 | ; the compatibility options defined in syscalls.conf. | |
12 | ; | 12 | ; | |
13 | ; types: | 13 | ; types: | |
14 | ; STD always included | 14 | ; STD always included | |
@@ -645,29 +645,32 @@ | @@ -645,29 +645,32 @@ | |||
645 | unsigned int len, unsigned long *mask); } | 645 | unsigned int len, unsigned long *mask); } | |
646 | 396 STD { int|linux_sys||sched_getaffinity(pid_t pid, \ | 646 | 396 STD { int|linux_sys||sched_getaffinity(pid_t pid, \ | |
647 | unsigned int len, unsigned long *mask); } | 647 | unsigned int len, unsigned long *mask); } | |
648 | 397 UNIMPL tuxcall | 648 | 397 UNIMPL tuxcall | |
649 | 398 UNIMPL io_setup | 649 | 398 UNIMPL io_setup | |
650 | 399 UNIMPL io_destroy | 650 | 399 UNIMPL io_destroy | |
651 | 400 UNIMPL io_getevents | 651 | 400 UNIMPL io_getevents | |
652 | 401 UNIMPL io_submit | 652 | 401 UNIMPL io_submit | |
653 | 402 UNIMPL io_cancel | 653 | 402 UNIMPL io_cancel | |
654 | 403 UNIMPL /* unused */ | 654 | 403 UNIMPL /* unused */ | |
655 | 404 UNIMPL /* unused */ | 655 | 404 UNIMPL /* unused */ | |
656 | 405 STD { int|linux_sys||exit_group(int error_code); } | 656 | 405 STD { int|linux_sys||exit_group(int error_code); } | |
657 | 406 UNIMPL lookup_dcookie | 657 | 406 UNIMPL lookup_dcookie | |
658 | 407 UNIMPL sys_epoll_create | 658 | 407 STD { int|linux_sys||epoll_create(int size); } | |
659 | 408 UNIMPL sys_epoll_ctl | 659 | 408 STD { int|linux_sys||epoll_ctl(int epfd, int op, int fd, \ | |
660 | 409 UNIMPL sys_epoll_wait | 660 | struct linux_epoll_event *event); } | |
661 | 409 STD { int|linux_sys||epoll_wait(int epfd, \ | |||
662 | struct linux_epoll_event *events, int maxevents, \ | |||
663 | int timeout); } | |||
661 | 410 UNIMPL remap_file_pages | 664 | 410 UNIMPL remap_file_pages | |
662 | 411 STD { int|linux_sys||set_tid_address(int *tid); } | 665 | 411 STD { int|linux_sys||set_tid_address(int *tid); } | |
663 | 412 UNIMPL restart_syscall | 666 | 412 UNIMPL restart_syscall | |
664 | 413 STD { int|linux_sys||fadvise64(int fd, off_t offset, \ | 667 | 413 STD { int|linux_sys||fadvise64(int fd, off_t offset, \ | |
665 | size_t len, int advice); } | 668 | size_t len, int advice); } | |
666 | 414 STD { int|linux_sys||timer_create(clockid_t clockid, \ | 669 | 414 STD { int|linux_sys||timer_create(clockid_t clockid, \ | |
667 | struct linux_sigevent *evp, timer_t *timerid); } | 670 | struct linux_sigevent *evp, timer_t *timerid); } | |
668 | 415 STD { int|linux_sys||timer_settime(timer_t timerid, \ | 671 | 415 STD { int|linux_sys||timer_settime(timer_t timerid, \ | |
669 | int flags, const struct linux_itimerspec *tim, \ | 672 | int flags, const struct linux_itimerspec *tim, \ | |
670 | struct linux_itimerspec *otim); } | 673 | struct linux_itimerspec *otim); } | |
671 | 416 STD { int|linux_sys||timer_gettime(timer_t timerid, \ | 674 | 416 STD { int|linux_sys||timer_gettime(timer_t timerid, \ | |
672 | struct linux_itimerspec *tim); } | 675 | struct linux_itimerspec *tim); } | |
673 | 417 NOARGS { int|sys||timer_getoverrun(timer_t timerid); } | 676 | 417 NOARGS { int|sys||timer_getoverrun(timer_t timerid); } | |
@@ -749,48 +752,50 @@ | @@ -749,48 +752,50 @@ | |||
749 | ; argument names / types, but they are ABI-compatible | 752 | ; argument names / types, but they are ABI-compatible | |
750 | ; with Linux. | 753 | ; with Linux. | |
751 | ; | 754 | ; | |
752 | 466 NOARGS { int|sys||__futex_set_robust_list(void *head, \ | 755 | 466 NOARGS { int|sys||__futex_set_robust_list(void *head, \ | |
753 | size_t len); } | 756 | size_t len); } | |
754 | 467 NOARGS { int|sys||__futex_get_robust_list(lwpid_t lwpid, \ | 757 | 467 NOARGS { int|sys||__futex_get_robust_list(lwpid_t lwpid, \ | |
755 | void **headp, size_t *lenp); } | 758 | void **headp, size_t *lenp); } | |
756 | 468 UNIMPL splice | 759 | 468 UNIMPL splice | |
757 | 469 UNIMPL sync_file_range | 760 | 469 UNIMPL sync_file_range | |
758 | 470 UNIMPL tee | 761 | 470 UNIMPL tee | |
759 | 471 UNIMPL vmsplice | 762 | 471 UNIMPL vmsplice | |
760 | 472 UNIMPL move_pages | 763 | 472 UNIMPL move_pages | |
761 | 473 UNIMPL getcpu | 764 | 473 UNIMPL getcpu | |
762 | 474 UNIMPL epoll_wait | 765 | 474 STD { int|linux_sys||epoll_pwait(int epfd, \ | |
766 | struct linux_epoll_event *events, int maxevents, \ | |||
767 | int timeout, const linux_sigset_t *sigmask); } | |||
763 | 475 STD { int|linux_sys||utimensat(int fd, const char *path, \ | 768 | 475 STD { int|linux_sys||utimensat(int fd, const char *path, \ | |
764 | struct linux_timespec *times, int flag); } | 769 | struct linux_timespec *times, int flag); } | |
765 | 476 UNIMPL signalfd | 770 | 476 UNIMPL signalfd | |
766 | 477 UNIMPL timerfd | 771 | 477 UNIMPL timerfd | |
767 | 478 STD { int|linux_sys||eventfd(unsigned int initval); } | 772 | 478 STD { int|linux_sys||eventfd(unsigned int initval); } | |
768 | 479 STD { int|linux_sys||recvmmsg(int s, \ | 773 | 479 STD { int|linux_sys||recvmmsg(int s, \ | |
769 | struct linux_mmsghdr *msgvec, unsigned int vlen, \ | 774 | struct linux_mmsghdr *msgvec, unsigned int vlen, \ | |
770 | unsigned int flags, struct timespec *timeout); } | 775 | unsigned int flags, struct timespec *timeout); } | |
771 | 480 STD { int|linux_sys||fallocate(int fd, int mode, \ | 776 | 480 STD { int|linux_sys||fallocate(int fd, int mode, \ | |
772 | off_t offset, off_t len); } | 777 | off_t offset, off_t len); } | |
773 | 481 STD { int|linux_sys||timerfd_create(clockid_t clock_id, \ | 778 | 481 STD { int|linux_sys||timerfd_create(clockid_t clock_id, \ | |
774 | int flags); } | 779 | int flags); } | |
775 | 482 STD { int|linux_sys||timerfd_settime(int fd, int flags, \ | 780 | 482 STD { int|linux_sys||timerfd_settime(int fd, int flags, \ | |
776 | const struct linux_itimerspec *tim, \ | 781 | const struct linux_itimerspec *tim, \ | |
777 | struct linux_itimerspec *otim); } | 782 | struct linux_itimerspec *otim); } | |
778 | 483 STD { int|linux_sys||timerfd_gettime(int fd, \ | 783 | 483 STD { int|linux_sys||timerfd_gettime(int fd, \ | |
779 | struct linux_itimerspec *tim); } | 784 | struct linux_itimerspec *tim); } | |
780 | 484 UNIMPL signalfd4 | 785 | 484 UNIMPL signalfd4 | |
781 | 485 STD { int|linux_sys||eventfd2(unsigned int initval, \ | 786 | 485 STD { int|linux_sys||eventfd2(unsigned int initval, \ | |
782 | int flags); } | 787 | int flags); } | |
783 | 486 UNIMPL epoll_create1 | 788 | 486 STD { int|linux_sys||epoll_create1(int flags); } | |
784 | 487 STD { int|linux_sys||dup3(int from, int to, int flags); } | 789 | 487 STD { int|linux_sys||dup3(int from, int to, int flags); } | |
785 | 488 STD { int|linux_sys||pipe2(int *pfds, int flags); } | 790 | 488 STD { int|linux_sys||pipe2(int *pfds, int flags); } | |
786 | 489 UNIMPL inotify_init1 | 791 | 489 UNIMPL inotify_init1 | |
787 | 490 STD { int|linux_sys||preadv(int fd, \ | 792 | 490 STD { int|linux_sys||preadv(int fd, \ | |
788 | const struct iovec *iovp, int iovcnt, \ | 793 | const struct iovec *iovp, int iovcnt, \ | |
789 | unsigned long off_lo, unsigned long off_hi); } | 794 | unsigned long off_lo, unsigned long off_hi); } | |
790 | 491 STD { int|linux_sys||pwritev(int fd, \ | 795 | 491 STD { int|linux_sys||pwritev(int fd, \ | |
791 | const struct iovcnt *iovp, int iovcnt, \ | 796 | const struct iovcnt *iovp, int iovcnt, \ | |
792 | unsigned long off_lo, unsigned long off_hi); } | 797 | unsigned long off_lo, unsigned long off_hi); } | |
793 | 492 UNIMPL rt_tgsigqueueinfo | 798 | 492 UNIMPL rt_tgsigqueueinfo | |
794 | 493 UNIMPL perf_counter_open | 799 | 493 UNIMPL perf_counter_open | |
795 | 494 UNIMPL fanotify_init | 800 | 494 UNIMPL fanotify_init | |
796 | 495 UNIMPL fanotify_mark | 801 | 495 UNIMPL fanotify_mark | |
@@ -804,13 +809,57 @@ | @@ -804,13 +809,57 @@ | |||
804 | 502 STD { int|linux_sys||accept4(int s, \ | 809 | 502 STD { int|linux_sys||accept4(int s, \ | |
805 | struct osockaddr *name, \ | 810 | struct osockaddr *name, \ | |
806 | int *anamelen, int flags); } | 811 | int *anamelen, int flags); } | |
807 | 503 STD { int|linux_sys||sendmmsg(int s, \ | 812 | 503 STD { int|linux_sys||sendmmsg(int s, \ | |
808 | struct linux_mmsghdr *msgvec, unsigned int vlen, \ | 813 | struct linux_mmsghdr *msgvec, unsigned int vlen, \ | |
809 | unsigned int flags); } | 814 | unsigned int flags); } | |
810 | 504 UNIMPL process_vm_readv | 815 | 504 UNIMPL process_vm_readv | |
811 | 505 UNIMPL process_vm_writev | 816 | 505 UNIMPL process_vm_writev | |
812 | 506 UNIMPL kcmp | 817 | 506 UNIMPL kcmp | |
813 | 507 UNIMPL finit_module | 818 | 507 UNIMPL finit_module | |
814 | 508 UNIMPL sched_setattr | 819 | 508 UNIMPL sched_setattr | |
815 | 509 UNIMPL sched_getattr | 820 | 509 UNIMPL sched_getattr | |
816 | 510 UNIMPL renameat2 | 821 | 510 UNIMPL renameat2 | |
822 | 511 UNIMPL | |||
823 | 512 UNIMPL | |||
824 | 513 UNIMPL | |||
825 | 514 UNIMPL | |||
826 | 515 UNIMPL | |||
827 | 516 UNIMPL | |||
828 | 517 UNIMPL | |||
829 | 518 UNIMPL | |||
830 | 519 UNIMPL | |||
831 | 520 UNIMPL | |||
832 | 521 UNIMPL | |||
833 | 522 UNIMPL | |||
834 | 523 UNIMPL | |||
835 | 524 UNIMPL | |||
836 | 525 UNIMPL | |||
837 | 526 UNIMPL | |||
838 | 527 UNIMPL | |||
839 | 528 UNIMPL | |||
840 | 529 UNIMPL | |||
841 | 530 UNIMPL | |||
842 | 531 UNIMPL | |||
843 | 532 UNIMPL | |||
844 | 533 UNIMPL | |||
845 | 534 UNIMPL | |||
846 | 535 UNIMPL | |||
847 | 536 UNIMPL | |||
848 | 537 UNIMPL | |||
849 | 538 UNIMPL | |||
850 | 539 UNIMPL | |||
851 | 540 UNIMPL | |||
852 | 541 UNIMPL | |||
853 | 542 UNIMPL | |||
854 | 543 UNIMPL | |||
855 | 544 UNIMPL | |||
856 | 545 UNIMPL | |||
857 | 546 UNIMPL | |||
858 | 547 UNIMPL | |||
859 | 548 UNIMPL | |||
860 | 549 UNIMPL | |||
861 | 550 UNIMPL | |||
862 | 551 STD { int|linux_sys||epoll_pwait2(int epfd, \ | |||
863 | struct linux_epoll_event *events, int maxevents, \ | |||
864 | const struct linux_timespec *timeout, \ | |||
865 | const linux_sigset_t *sigmask); } |
--- src/sys/compat/linux/arch/arm/syscalls.master 2021/12/02 04:29:48 1.75
+++ src/sys/compat/linux/arch/arm/syscalls.master 2023/07/28 19:01:11 1.76
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: syscalls.master,v 1.75 2021/12/02 04:29:48 ryo Exp $ | 1 | $NetBSD: syscalls.master,v 1.76 2023/07/28 19:01:11 christos Exp $ | |
2 | 2 | |||
3 | ; Derived from sys/compat/linux/arch/*/syscalls.master | 3 | ; Derived from sys/compat/linux/arch/*/syscalls.master | |
4 | ; and from Linux 2.4.12 arch/arm/kernel/calls.S | 4 | ; and from Linux 2.4.12 arch/arm/kernel/calls.S | |
5 | 5 | |||
6 | ; NetBSD/arm COMPAT_LINUX system call name/number "master" file. | 6 | ; NetBSD/arm COMPAT_LINUX system call name/number "master" file. | |
7 | ; (See syscalls.conf to see what it is processed into.) | 7 | ; (See syscalls.conf to see what it is processed into.) | |
8 | ; | 8 | ; | |
9 | ; Fields: number type [type-dependent ...] | 9 | ; Fields: number type [type-dependent ...] | |
10 | ; number system call number, must be in order | 10 | ; number system call number, must be in order | |
11 | ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of | 11 | ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of | |
12 | ; the compatibility options defined in syscalls.conf. | 12 | ; the compatibility options defined in syscalls.conf. | |
13 | ; | 13 | ; | |
14 | ; types: | 14 | ; types: | |
@@ -414,29 +414,32 @@ | @@ -414,29 +414,32 @@ | |||
414 | const struct linux_timespec *timeout, int *uaddr2, \ | 414 | const struct linux_timespec *timeout, int *uaddr2, \ | |
415 | int val3); } | 415 | int val3); } | |
416 | 241 STD { int|linux_sys||sched_setaffinity(pid_t pid, \ | 416 | 241 STD { int|linux_sys||sched_setaffinity(pid_t pid, \ | |
417 | unsigned int len, unsigned long *mask); } | 417 | unsigned int len, unsigned long *mask); } | |
418 | 242 STD { int|linux_sys||sched_getaffinity(pid_t pid, \ | 418 | 242 STD { int|linux_sys||sched_getaffinity(pid_t pid, \ | |
419 | unsigned int len, unsigned long *mask); } | 419 | unsigned int len, unsigned long *mask); } | |
420 | 243 UNIMPL io_setup | 420 | 243 UNIMPL io_setup | |
421 | 244 UNIMPL io_destroy | 421 | 244 UNIMPL io_destroy | |
422 | 245 UNIMPL io_getevents | 422 | 245 UNIMPL io_getevents | |
423 | 246 UNIMPL io_submit | 423 | 246 UNIMPL io_submit | |
424 | 247 UNIMPL io_cancel | 424 | 247 UNIMPL io_cancel | |
425 | 248 STD { int|linux_sys||exit_group(int error_code); } | 425 | 248 STD { int|linux_sys||exit_group(int error_code); } | |
426 | 249 UNIMPL lookup_dcookie | 426 | 249 UNIMPL lookup_dcookie | |
427 | 250 UNIMPL epoll_create | 427 | 250 STD { int|linux_sys||epoll_create(int size); } | |
428 | 251 UNIMPL epoll_ctl | 428 | 251 STD { int|linux_sys||epoll_ctl(int epfd, int op, int fd, \ | |
429 | 252 UNIMPL epoll_wait | 429 | struct linux_epoll_event *event); } | |
430 | 252 STD { int|linux_sys||epoll_wait(int epfd, \ | |||
431 | struct linux_epoll_event *events, int maxevents, \ | |||
432 | int timeout); } | |||
430 | 253 UNIMPL remap_file_pages | 433 | 253 UNIMPL remap_file_pages | |
431 | 254 UNIMPL set_thread_area | 434 | 254 UNIMPL set_thread_area | |
432 | 255 UNIMPL get_thread_area | 435 | 255 UNIMPL get_thread_area | |
433 | 256 STD { int|linux_sys||set_tid_address(int *tid); } | 436 | 256 STD { int|linux_sys||set_tid_address(int *tid); } | |
434 | 257 STD { int|linux_sys||timer_create(clockid_t clockid, \ | 437 | 257 STD { int|linux_sys||timer_create(clockid_t clockid, \ | |
435 | struct linux_sigevent *evp, timer_t *timerid); } | 438 | struct linux_sigevent *evp, timer_t *timerid); } | |
436 | 258 STD { int|linux_sys||timer_settime(timer_t timerid, \ | 439 | 258 STD { int|linux_sys||timer_settime(timer_t timerid, \ | |
437 | int flags, const struct linux_itimerspec *tim, \ | 440 | int flags, const struct linux_itimerspec *tim, \ | |
438 | struct linux_itimerspec *otim); } | 441 | struct linux_itimerspec *otim); } | |
439 | 259 STD { int|linux_sys||timer_gettime(timer_t timerid, \ | 442 | 259 STD { int|linux_sys||timer_gettime(timer_t timerid, \ | |
440 | struct linux_itimerspec *tim); } | 443 | struct linux_itimerspec *tim); } | |
441 | 260 NOARGS { int|sys||timer_getoverrun(timer_t timerid); } | 444 | 260 NOARGS { int|sys||timer_getoverrun(timer_t timerid); } | |
442 | 261 NOARGS { int|sys||timer_delete(timer_t timerid); } | 445 | 261 NOARGS { int|sys||timer_delete(timer_t timerid); } | |
@@ -547,45 +550,47 @@ | @@ -547,45 +550,47 @@ | |||
547 | ; argument names / types, but they are ABI-compatible | 550 | ; argument names / types, but they are ABI-compatible | |
548 | ; with Linux. | 551 | ; with Linux. | |
549 | ; | 552 | ; | |
550 | 338 NOARGS { int|sys||__futex_set_robust_list(void *head, \ | 553 | 338 NOARGS { int|sys||__futex_set_robust_list(void *head, \ | |
551 | size_t len); } | 554 | size_t len); } | |
552 | 339 NOARGS { int|sys||__futex_get_robust_list(lwpid_t lwpid, \ | 555 | 339 NOARGS { int|sys||__futex_get_robust_list(lwpid_t lwpid, \ | |
553 | void **headp, size_t *lenp); } | 556 | void **headp, size_t *lenp); } | |
554 | 340 UNIMPL splice | 557 | 340 UNIMPL splice | |
555 | 341 UNIMPL sync_file_range2 | 558 | 341 UNIMPL sync_file_range2 | |
556 | 342 UNIMPL tee | 559 | 342 UNIMPL tee | |
557 | 343 UNIMPL vmsplice | 560 | 343 UNIMPL vmsplice | |
558 | 344 UNIMPL move_pages | 561 | 344 UNIMPL move_pages | |
559 | 345 UNIMPL getcpu | 562 | 345 UNIMPL getcpu | |
560 | 346 UNIMPL epoll_wait | 563 | 346 STD { int|linux_sys||epoll_pwait(int epfd, \ | |
564 | struct linux_epoll_event *events, int maxevents, \ | |||
565 | int timeout, const linux_sigset_t *sigmask); } | |||
561 | 347 UNIMPL kexec_load | 566 | 347 UNIMPL kexec_load | |
562 | 348 STD { int|linux_sys||utimensat(int fd, const char *path, \ | 567 | 348 STD { int|linux_sys||utimensat(int fd, const char *path, \ | |
563 | struct linux_timespec *times, int flag); } | 568 | struct linux_timespec *times, int flag); } | |
564 | 349 UNIMPL signalfd | 569 | 349 UNIMPL signalfd | |
565 | 350 STD { int|linux_sys||timerfd_create(clockid_t clock_id, \ | 570 | 350 STD { int|linux_sys||timerfd_create(clockid_t clock_id, \ | |
566 | int flags); } | 571 | int flags); } | |
567 | 351 STD { int|linux_sys||eventfd(unsigned int initval); } | 572 | 351 STD { int|linux_sys||eventfd(unsigned int initval); } | |
568 | 352 STD { int|linux_sys||fallocate(int fd, int mode, \ | 573 | 352 STD { int|linux_sys||fallocate(int fd, int mode, \ | |
569 | off_t offset, off_t len); } | 574 | off_t offset, off_t len); } | |
570 | 353 STD { int|linux_sys||timerfd_settime(int fd, int flags, \ | 575 | 353 STD { int|linux_sys||timerfd_settime(int fd, int flags, \ | |
571 | const struct linux_itimerspec *tim, \ | 576 | const struct linux_itimerspec *tim, \ | |
572 | struct linux_itimerspec *otim); } | 577 | struct linux_itimerspec *otim); } | |
573 | 354 STD { int|linux_sys||timerfd_gettime(int fd, \ | 578 | 354 STD { int|linux_sys||timerfd_gettime(int fd, \ | |
574 | struct linux_itimerspec *tim); } | 579 | struct linux_itimerspec *tim); } | |
575 | 355 UNIMPL signalfd4 | 580 | 355 UNIMPL signalfd4 | |
576 | 356 STD { int|linux_sys||eventfd2(unsigned int initval, \ | 581 | 356 STD { int|linux_sys||eventfd2(unsigned int initval, \ | |
577 | int flags); } | 582 | int flags); } | |
578 | 357 UNIMPL epoll_create1 | 583 | 357 STD { int|linux_sys||epoll_create1(int flags); } | |
579 | 358 STD { int|linux_sys||dup3(int from, int to, int flags); } | 584 | 358 STD { int|linux_sys||dup3(int from, int to, int flags); } | |
580 | 359 STD { int|linux_sys||pipe2(int *pfds, int flags); } | 585 | 359 STD { int|linux_sys||pipe2(int *pfds, int flags); } | |
581 | 360 UNIMPL inotify_init1 | 586 | 360 UNIMPL inotify_init1 | |
582 | 361 STD { int|linux_sys||preadv(int fd, \ | 587 | 361 STD { int|linux_sys||preadv(int fd, \ | |
583 | const struct iovec *iovp, int iovcnt, \ | 588 | const struct iovec *iovp, int iovcnt, \ | |
584 | unsigned long off_lo, unsigned long off_hi); } | 589 | unsigned long off_lo, unsigned long off_hi); } | |
585 | 362 STD { int|linux_sys||pwritev(int fd, \ | 590 | 362 STD { int|linux_sys||pwritev(int fd, \ | |
586 | const struct iovcnt *iovp, int iovcnt, \ | 591 | const struct iovcnt *iovp, int iovcnt, \ | |
587 | unsigned long off_lo, unsigned long off_hi); } | 592 | unsigned long off_lo, unsigned long off_hi); } | |
588 | 363 UNIMPL rt_tgsigqueueinfo | 593 | 363 UNIMPL rt_tgsigqueueinfo | |
589 | 364 UNIMPL perf_counter_open | 594 | 364 UNIMPL perf_counter_open | |
590 | 365 STD { int|linux_sys||recvmmsg(int s, \ | 595 | 365 STD { int|linux_sys||recvmmsg(int s, \ | |
591 | struct linux_mmsghdr *msgvec, unsigned int vlen, \ | 596 | struct linux_mmsghdr *msgvec, unsigned int vlen, \ | |
@@ -622,13 +627,68 @@ | @@ -622,13 +627,68 @@ | |||
622 | ; SWI numbers starting at 0x900000 (__NR_SYSCALL_BASE). Special | 627 | ; SWI numbers starting at 0x900000 (__NR_SYSCALL_BASE). Special | |
623 | ; ARM-specific syscalls use SWI numbers starting at 0x9f0000 | 628 | ; ARM-specific syscalls use SWI numbers starting at 0x9f0000 | |
624 | ; (__ARM_NR_BASE). linux_syscall() (in arch/arm/arm/linux_syscall.c) | 629 | ; (__ARM_NR_BASE). linux_syscall() (in arch/arm/arm/linux_syscall.c) | |
625 | ; remaps these down to 0x900180 so that we can use one linux_sysent | 630 | ; remaps these down to 0x900180 so that we can use one linux_sysent | |
626 | ; array for the whole lot. | 631 | ; array for the whole lot. | |
627 | 632 | |||
628 | 384 UNIMPL /* base */ | 633 | 384 UNIMPL /* base */ | |
629 | 385 STD { int|linux_sys||breakpoint(void); } | 634 | 385 STD { int|linux_sys||breakpoint(void); } | |
630 | 386 STD { int|linux_sys||cacheflush(uintptr_t from, \ | 635 | 386 STD { int|linux_sys||cacheflush(uintptr_t from, \ | |
631 | intptr_t to, int flags); } | 636 | intptr_t to, int flags); } | |
632 | 387 UNIMPL usr26 | 637 | 387 UNIMPL usr26 | |
633 | 388 UNIMPL usr32 | 638 | 388 UNIMPL usr32 | |
634 | 389 STD { int|linux_sys||set_tls(void *tls); } | 639 | 389 STD { int|linux_sys||set_tls(void *tls); } | |
640 | 390 UNIMPL | |||
641 | 391 UNIMPL | |||
642 | 392 UNIMPL | |||
643 | 393 UNIMPL | |||
644 | 394 UNIMPL | |||
645 | 395 UNIMPL | |||
646 | 396 UNIMPL | |||
647 | 397 UNIMPL | |||
648 | 398 UNIMPL | |||
649 | 399 UNIMPL | |||
650 | 400 UNIMPL | |||
651 | 401 UNIMPL | |||
652 | 402 UNIMPL | |||
653 | 403 UNIMPL | |||
654 | 404 UNIMPL | |||
655 | 405 UNIMPL | |||
656 | 406 UNIMPL | |||
657 | 407 UNIMPL | |||
658 | 408 UNIMPL | |||
659 | 409 UNIMPL | |||
660 | 410 UNIMPL | |||
661 | 411 UNIMPL | |||
662 | 412 UNIMPL | |||
663 | 413 UNIMPL | |||
664 | 414 UNIMPL | |||
665 | 415 UNIMPL | |||
666 | 416 UNIMPL | |||
667 | 417 UNIMPL | |||
668 | 418 UNIMPL | |||
669 | 419 UNIMPL | |||
670 | 420 UNIMPL | |||
671 | 421 UNIMPL | |||
672 | 422 UNIMPL | |||
673 | 423 UNIMPL | |||
674 | 424 UNIMPL | |||
675 | 425 UNIMPL | |||
676 | 426 UNIMPL | |||
677 | 427 UNIMPL | |||
678 | 428 UNIMPL | |||
679 | 429 UNIMPL | |||
680 | 430 UNIMPL | |||
681 | 431 UNIMPL | |||
682 | 432 UNIMPL | |||
683 | 433 UNIMPL | |||
684 | 434 UNIMPL | |||
685 | 435 UNIMPL | |||
686 | 436 UNIMPL | |||
687 | 437 UNIMPL | |||
688 | 438 UNIMPL | |||
689 | 439 UNIMPL | |||
690 | 440 UNIMPL | |||
691 | 441 STD { int|linux_sys||epoll_pwait2(int epfd, \ | |||
692 | struct linux_epoll_event *events, int maxevents, \ | |||
693 | const struct linux_timespec *timeout, \ | |||
694 | const linux_sigset_t *sigmask); } |
--- src/sys/compat/linux/arch/i386/syscalls.master 2023/07/10 13:05:27 1.130
+++ src/sys/compat/linux/arch/i386/syscalls.master 2023/07/28 19:01:11 1.131
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: syscalls.master,v 1.130 2023/07/10 13:05:27 christos Exp $ | 1 | $NetBSD: syscalls.master,v 1.131 2023/07/28 19:01:11 christos Exp $ | |
2 | 2 | |||
3 | ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 | 3 | ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 | |
4 | 4 | |||
5 | ; NetBSD i386 COMPAT_LINUX system call name/number "master" file. | 5 | ; NetBSD i386 COMPAT_LINUX system call name/number "master" file. | |
6 | ; (See syscalls.conf to see what it is processed into.) | 6 | ; (See syscalls.conf to see what it is processed into.) | |
7 | ; | 7 | ; | |
8 | ; Fields: number type [type-dependent ...] | 8 | ; Fields: number type [type-dependent ...] | |
9 | ; number system call number, must be in order | 9 | ; number system call number, must be in order | |
10 | ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of | 10 | ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of | |
11 | ; the compatibility options defined in syscalls.conf. | 11 | ; the compatibility options defined in syscalls.conf. | |
12 | ; | 12 | ; | |
13 | ; types: | 13 | ; types: | |
14 | ; STD always included | 14 | ; STD always included | |
@@ -418,29 +418,32 @@ | @@ -418,29 +418,32 @@ | |||
418 | struct linux_user_desc *desc); } | 418 | struct linux_user_desc *desc); } | |
419 | 244 STD { int|linux_sys||get_thread_area( \ | 419 | 244 STD { int|linux_sys||get_thread_area( \ | |
420 | struct linux_user_desc *desc); } | 420 | struct linux_user_desc *desc); } | |
421 | 245 UNIMPL io_setup | 421 | 245 UNIMPL io_setup | |
422 | 246 UNIMPL io_destroy | 422 | 246 UNIMPL io_destroy | |
423 | 247 UNIMPL io_getevents | 423 | 247 UNIMPL io_getevents | |
424 | 248 UNIMPL io_submit | 424 | 248 UNIMPL io_submit | |
425 | 249 UNIMPL io_cancel | 425 | 249 UNIMPL io_cancel | |
426 | 250 STD { int|linux_sys||fadvise64(int fd, off_t offset, \ | 426 | 250 STD { int|linux_sys||fadvise64(int fd, off_t offset, \ | |
427 | size_t len, int advice); } | 427 | size_t len, int advice); } | |
428 | 251 UNIMPL /* unused */ | 428 | 251 UNIMPL /* unused */ | |
429 | 252 STD { int|linux_sys||exit_group(int error_code); } | 429 | 252 STD { int|linux_sys||exit_group(int error_code); } | |
430 | 253 UNIMPL lookup_dcookie | 430 | 253 UNIMPL lookup_dcookie | |
431 | 254 UNIMPL epoll_create | 431 | 254 STD { int|linux_sys||epoll_create(int size); } | |
432 | 255 UNIMPL epoll_ctl | 432 | 255 STD { int|linux_sys||epoll_ctl(int epfd, int op, int fd, \ | |
433 | 256 UNIMPL epoll_wait | 433 | struct linux_epoll_event *event); } | |
434 | 256 STD { int|linux_sys||epoll_wait(int epfd, \ | |||
435 | struct linux_epoll_event *events, int maxevents, \ | |||
436 | int timeout); } | |||
434 | 257 UNIMPL remap_file_pages | 437 | 257 UNIMPL remap_file_pages | |
435 | 258 STD { int|linux_sys||set_tid_address(int *tid); } | 438 | 258 STD { int|linux_sys||set_tid_address(int *tid); } | |
436 | 259 STD { int|linux_sys||timer_create(clockid_t clockid, \ | 439 | 259 STD { int|linux_sys||timer_create(clockid_t clockid, \ | |
437 | struct linux_sigevent *evp, timer_t *timerid); } | 440 | struct linux_sigevent *evp, timer_t *timerid); } | |
438 | 260 STD { int|linux_sys||timer_settime(timer_t timerid, \ | 441 | 260 STD { int|linux_sys||timer_settime(timer_t timerid, \ | |
439 | int flags, const struct linux_itimerspec *tim, \ | 442 | int flags, const struct linux_itimerspec *tim, \ | |
440 | struct linux_itimerspec *otim); } | 443 | struct linux_itimerspec *otim); } | |
441 | 261 STD { int|linux_sys||timer_gettime(timer_t timerid, \ | 444 | 261 STD { int|linux_sys||timer_gettime(timer_t timerid, \ | |
442 | struct linux_itimerspec *tim); } | 445 | struct linux_itimerspec *tim); } | |
443 | 262 NOARGS { int|sys||timer_getoverrun(timer_t timerid); } | 446 | 262 NOARGS { int|sys||timer_getoverrun(timer_t timerid); } | |
444 | 263 NOARGS { int|sys||timer_delete(timer_t timerid); } | 447 | 263 NOARGS { int|sys||timer_delete(timer_t timerid); } | |
445 | 264 STD { int|linux_sys||clock_settime(clockid_t which, \ | 448 | 264 STD { int|linux_sys||clock_settime(clockid_t which, \ | |
446 | struct linux_timespec *tp); } | 449 | struct linux_timespec *tp); } | |
@@ -515,44 +518,46 @@ | @@ -515,44 +518,46 @@ | |||
515 | struct linux_timespec *timeout, \ | 518 | struct linux_timespec *timeout, \ | |
516 | linux_sigset_t *sigset); } | 519 | linux_sigset_t *sigset); } | |
517 | 310 UNIMPL unshare | 520 | 310 UNIMPL unshare | |
518 | 311 NOARGS { int|sys||__futex_set_robust_list(void *head, \ | 521 | 311 NOARGS { int|sys||__futex_set_robust_list(void *head, \ | |
519 | size_t len); } | 522 | size_t len); } | |
520 | 312 NOARGS { int|sys||__futex_get_robust_list(lwpid_t lwpid, \ | 523 | 312 NOARGS { int|sys||__futex_get_robust_list(lwpid_t lwpid, \ | |
521 | void **headp, size_t *lenp); } | 524 | void **headp, size_t *lenp); } | |
522 | 313 UNIMPL splice | 525 | 313 UNIMPL splice | |
523 | 314 UNIMPL sync_file_range | 526 | 314 UNIMPL sync_file_range | |
524 | 315 UNIMPL tee | 527 | 315 UNIMPL tee | |
525 | 316 UNIMPL vmsplice | 528 | 316 UNIMPL vmsplice | |
526 | 317 UNIMPL move_pages | 529 | 317 UNIMPL move_pages | |
527 | 318 UNIMPL getcpu | 530 | 318 UNIMPL getcpu | |
528 | 319 UNIMPL epoll_wait | 531 | 319 STD { int|linux_sys||epoll_pwait(int epfd, \ | |
532 | struct linux_epoll_event *events, int maxevents, \ | |||
533 | int timeout, const linux_sigset_t *sigmask); } | |||
529 | 320 STD { int|linux_sys||utimensat(int fd, const char *path, \ | 534 | 320 STD { int|linux_sys||utimensat(int fd, const char *path, \ | |
530 | struct linux_timespec *times, int flag); } | 535 | struct linux_timespec *times, int flag); } | |
531 | 321 UNIMPL signalfd | 536 | 321 UNIMPL signalfd | |
532 | 322 STD { int|linux_sys||timerfd_create(clockid_t clock_id, \ | 537 | 322 STD { int|linux_sys||timerfd_create(clockid_t clock_id, \ | |
533 | int flags); } | 538 | int flags); } | |
534 | 323 STD { int|linux_sys||eventfd(unsigned int initval); } | 539 | 323 STD { int|linux_sys||eventfd(unsigned int initval); } | |
535 | 324 STD { int|linux_sys||fallocate(int fd, int mode, \ | 540 | 324 STD { int|linux_sys||fallocate(int fd, int mode, \ | |
536 | off_t offset, off_t len); } | 541 | off_t offset, off_t len); } | |
537 | 325 STD { int|linux_sys||timerfd_settime(int fd, int flags, \ | 542 | 325 STD { int|linux_sys||timerfd_settime(int fd, int flags, \ | |
538 | const struct linux_itimerspec *tim, \ | 543 | const struct linux_itimerspec *tim, \ | |
539 | struct linux_itimerspec *otim); } | 544 | struct linux_itimerspec *otim); } | |
540 | 326 STD { int|linux_sys||timerfd_gettime(int fd, \ | 545 | 326 STD { int|linux_sys||timerfd_gettime(int fd, \ | |
541 | struct linux_itimerspec *tim); } | 546 | struct linux_itimerspec *tim); } | |
542 | 327 UNIMPL signalfd4 | 547 | 327 UNIMPL signalfd4 | |
543 | 328 STD { int|linux_sys||eventfd2(unsigned int initval, \ | 548 | 328 STD { int|linux_sys||eventfd2(unsigned int initval, \ | |
544 | int flags); } | 549 | int flags); } | |
545 | 329 UNIMPL epoll_create1 | 550 | 329 STD { int|linux_sys||epoll_create1(int flags); } | |
546 | 330 STD { int|linux_sys||dup3(int from, int to, int flags); } | 551 | 330 STD { int|linux_sys||dup3(int from, int to, int flags); } | |
547 | 331 STD { int|linux_sys||pipe2( int *pfds, int flags); } | 552 | 331 STD { int|linux_sys||pipe2( int *pfds, int flags); } | |
548 | 332 UNIMPL inotify_init1 | 553 | 332 UNIMPL inotify_init1 | |
549 | 333 STD { int|linux_sys||preadv(int fd, \ | 554 | 333 STD { int|linux_sys||preadv(int fd, \ | |
550 | const struct iovec *iovp, int iovcnt, \ | 555 | const struct iovec *iovp, int iovcnt, \ | |
551 | unsigned long off_lo, unsigned long off_hi); } | 556 | unsigned long off_lo, unsigned long off_hi); } | |
552 | 334 STD { int|linux_sys||pwritev(int fd, \ | 557 | 334 STD { int|linux_sys||pwritev(int fd, \ | |
553 | const struct iovcnt *iovp, int iovcnt, \ | 558 | const struct iovcnt *iovp, int iovcnt, \ | |
554 | unsigned long off_lo, unsigned long off_hi); } | 559 | unsigned long off_lo, unsigned long off_hi); } | |
555 | 335 UNIMPL rt_tgsigqueueinfo | 560 | 335 UNIMPL rt_tgsigqueueinfo | |
556 | 336 UNIMPL perf_counter_open | 561 | 336 UNIMPL perf_counter_open | |
557 | 337 UNIMPL recvmmsg | 562 | 337 UNIMPL recvmmsg | |
558 | 338 UNIMPL fanotify_init | 563 | 338 UNIMPL fanotify_init | |
@@ -651,13 +656,17 @@ | @@ -651,13 +656,17 @@ | |||
651 | 428 UNIMPL open_tree | 656 | 428 UNIMPL open_tree | |
652 | 429 UNIMPL move_mount | 657 | 429 UNIMPL move_mount | |
653 | 430 UNIMPL fsopen | 658 | 430 UNIMPL fsopen | |
654 | 431 UNIMPL fsconfig | 659 | 431 UNIMPL fsconfig | |
655 | 432 UNIMPL fsmount | 660 | 432 UNIMPL fsmount | |
656 | 433 UNIMPL fspick | 661 | 433 UNIMPL fspick | |
657 | 434 UNIMPL pidfd_open | 662 | 434 UNIMPL pidfd_open | |
658 | 435 UNIMPL clone3 | 663 | 435 UNIMPL clone3 | |
659 | 436 UNIMPL close_range | 664 | 436 UNIMPL close_range | |
660 | 437 UNIMPL openat2 | 665 | 437 UNIMPL openat2 | |
661 | 438 UNIMPL pidfd_getfd | 666 | 438 UNIMPL pidfd_getfd | |
662 | 439 UNIMPL faccessat2 | 667 | 439 UNIMPL faccessat2 | |
663 | 440 UNIMPL process_madvise | 668 | 440 UNIMPL process_madvise | |
669 | 441 STD { int|linux_sys||epoll_pwait2(int epfd, \ | |||
670 | struct linux_epoll_event *events, int maxevents, \ | |||
671 | const struct linux_timespec *timeout, \ | |||
672 | const linux_sigset_t *sigmask); } |
--- src/sys/compat/linux/arch/m68k/syscalls.master 2021/12/02 04:29:48 1.101
+++ src/sys/compat/linux/arch/m68k/syscalls.master 2023/07/28 19:01:11 1.102
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: syscalls.master,v 1.101 2021/12/02 04:29:48 ryo Exp $ | 1 | $NetBSD: syscalls.master,v 1.102 2023/07/28 19:01:11 christos Exp $ | |
2 | 2 | |||
3 | ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 | 3 | ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 | |
4 | 4 | |||
5 | ; NetBSD m68k COMPAT_LINUX system call name/number "master" file. | 5 | ; NetBSD m68k COMPAT_LINUX system call name/number "master" file. | |
6 | ; (See syscalls.conf to see what it is processed into.) | 6 | ; (See syscalls.conf to see what it is processed into.) | |
7 | ; | 7 | ; | |
8 | ; Fields: number type [type-dependent ...] | 8 | ; Fields: number type [type-dependent ...] | |
9 | ; number system call number, must be in order | 9 | ; number system call number, must be in order | |
10 | ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of | 10 | ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of | |
11 | ; the compatibility options defined in syscalls.conf. | 11 | ; the compatibility options defined in syscalls.conf. | |
12 | ; | 12 | ; | |
13 | ; types: | 13 | ; types: | |
14 | ; STD always included | 14 | ; STD always included | |
@@ -428,29 +428,32 @@ | @@ -428,29 +428,32 @@ | |||
428 | 237 NOARGS { int|sys||mincore(void *addr, size_t len, char *vec); } | 428 | 237 NOARGS { int|sys||mincore(void *addr, size_t len, char *vec); } | |
429 | 238 NOARGS { int|sys||madvise(void *addr, size_t len, int behav); } | 429 | 238 NOARGS { int|sys||madvise(void *addr, size_t len, int behav); } | |
430 | 239 STD { int|linux_sys||fcntl64(int fd, int cmd, void *arg); } | 430 | 239 STD { int|linux_sys||fcntl64(int fd, int cmd, void *arg); } | |
431 | 240 UNIMPL readahead | 431 | 240 UNIMPL readahead | |
432 | 241 UNIMPL io_setup | 432 | 241 UNIMPL io_setup | |
433 | 242 UNIMPL io_destroy | 433 | 242 UNIMPL io_destroy | |
434 | 243 UNIMPL io_getevents | 434 | 243 UNIMPL io_getevents | |
435 | 244 UNIMPL io_submit | 435 | 244 UNIMPL io_submit | |
436 | 245 UNIMPL io_cancel | 436 | 245 UNIMPL io_cancel | |
437 | 246 STD { int|linux_sys||fadvise64(int fd, off_t offset, \ | 437 | 246 STD { int|linux_sys||fadvise64(int fd, off_t offset, \ | |
438 | size_t len, int advice); } | 438 | size_t len, int advice); } | |
439 | 247 UNIMPL exit_group | 439 | 247 UNIMPL exit_group | |
440 | 248 UNIMPL lookup_dcookie | 440 | 248 UNIMPL lookup_dcookie | |
441 | 249 UNIMPL epoll_create | 441 | 249 STD { int|linux_sys||epoll_create(int size); } | |
442 | 250 UNIMPL epoll_ctl | 442 | 250 STD { int|linux_sys||epoll_ctl(int epfd, int op, int fd, \ | |
443 | 251 UNIMPL epoll_wait | 443 | struct linux_epoll_event *event); } | |
444 | 251 STD { int|linux_sys||epoll_wait(int epfd, \ | |||
445 | struct linux_epoll_event *events, int maxevents, \ | |||
446 | int timeout); } | |||
444 | 252 UNIMPL remap_file_pages | 447 | 252 UNIMPL remap_file_pages | |
445 | 253 STD { int|linux_sys||set_tid_address(int *tid); } | 448 | 253 STD { int|linux_sys||set_tid_address(int *tid); } | |
446 | 254 STD { int|linux_sys||timer_create(clockid_t clockid, \ | 449 | 254 STD { int|linux_sys||timer_create(clockid_t clockid, \ | |
447 | struct linux_sigevent *evp, timer_t *timerid); } | 450 | struct linux_sigevent *evp, timer_t *timerid); } | |
448 | 255 STD { int|linux_sys||timer_settime(timer_t timerid, \ | 451 | 255 STD { int|linux_sys||timer_settime(timer_t timerid, \ | |
449 | int flags, const struct linux_itimerspec *tim, \ | 452 | int flags, const struct linux_itimerspec *tim, \ | |
450 | struct linux_itimerspec *otim); } | 453 | struct linux_itimerspec *otim); } | |
451 | 256 STD { int|linux_sys||timer_gettime(timer_t timerid, \ | 454 | 256 STD { int|linux_sys||timer_gettime(timer_t timerid, \ | |
452 | struct linux_itimerspec *tim); } | 455 | struct linux_itimerspec *tim); } | |
453 | 257 NOARGS { int|sys||timer_getoverrun(timer_t timerid); } | 456 | 257 NOARGS { int|sys||timer_getoverrun(timer_t timerid); } | |
454 | 258 NOARGS { int|sys||timer_delete(timer_t timerid); } | 457 | 258 NOARGS { int|sys||timer_delete(timer_t timerid); } | |
455 | 259 STD { int|linux_sys||clock_settime(clockid_t which, \ | 458 | 259 STD { int|linux_sys||clock_settime(clockid_t which, \ | |
456 | struct linux_timespec *tp); } | 459 | struct linux_timespec *tp); } | |
@@ -533,44 +536,46 @@ | @@ -533,44 +536,46 @@ | |||
533 | 305 NOARGS { int|sys||__futex_get_robust_list(lwpid_t lwpid, \ | 536 | 305 NOARGS { int|sys||__futex_get_robust_list(lwpid_t lwpid, \ | |
534 | void **headp, size_t *lenp); } | 537 | void **headp, size_t *lenp); } | |
535 | 306 UNIMPL splice | 538 | 306 UNIMPL splice | |
536 | 307 UNIMPL sync_file_range | 539 | 307 UNIMPL sync_file_range | |
537 | 308 UNIMPL tee | 540 | 308 UNIMPL tee | |
538 | 309 UNIMPL vmsplice | 541 | 309 UNIMPL vmsplice | |
539 | 310 UNIMPL move_pages | 542 | 310 UNIMPL move_pages | |
540 | 311 STD { int|linux_sys||sched_setaffinity(pid_t pid, \ | 543 | 311 STD { int|linux_sys||sched_setaffinity(pid_t pid, \ | |
541 | unsigned int len, unsigned long *mask); } | 544 | unsigned int len, unsigned long *mask); } | |
542 | 312 STD { int|linux_sys||sched_getaffinity(pid_t pid, \ | 545 | 312 STD { int|linux_sys||sched_getaffinity(pid_t pid, \ | |
543 | unsigned int len, unsigned long *mask); } | 546 | unsigned int len, unsigned long *mask); } | |
544 | 313 UNIMPL kexec_load | 547 | 313 UNIMPL kexec_load | |
545 | 314 UNIMPL getcpu | 548 | 314 UNIMPL getcpu | |
546 | 315 UNIMPL epoll_wait | 549 | 315 STD { int|linux_sys||epoll_pwait(int epfd, \ | |
550 | struct linux_epoll_event *events, int maxevents, \ | |||
551 | int timeout, const linux_sigset_t *sigmask); } | |||
547 | 316 STD { int|linux_sys||utimensat(int fd, const char *path, \ | 552 | 316 STD { int|linux_sys||utimensat(int fd, const char *path, \ | |
548 | struct linux_timespec *times, int flag); } | 553 | struct linux_timespec *times, int flag); } | |
549 | 317 UNIMPL signalfd | 554 | 317 UNIMPL signalfd | |
550 | 318 STD { int|linux_sys||timerfd_create(clockid_t clock_id, \ | 555 | 318 STD { int|linux_sys||timerfd_create(clockid_t clock_id, \ | |
551 | int flags); } | 556 | int flags); } | |
552 | 319 STD { int|linux_sys||eventfd(unsigned int initval); } | 557 | 319 STD { int|linux_sys||eventfd(unsigned int initval); } | |
553 | 320 STD { int|linux_sys||fallocate(int fd, int mode, \ | 558 | 320 STD { int|linux_sys||fallocate(int fd, int mode, \ | |
554 | off_t offset, off_t len); } | 559 | off_t offset, off_t len); } | |
555 | 321 STD { int|linux_sys||timerfd_settime(int fd, int flags, \ | 560 | 321 STD { int|linux_sys||timerfd_settime(int fd, int flags, \ | |
556 | const struct linux_itimerspec *tim, \ | 561 | const struct linux_itimerspec *tim, \ | |
557 | struct linux_itimerspec *otim); } | 562 | struct linux_itimerspec *otim); } | |
558 | 322 STD { int|linux_sys||timerfd_gettime(int fd, \ | 563 | 322 STD { int|linux_sys||timerfd_gettime(int fd, \ | |
559 | struct linux_itimerspec *tim); } | 564 | struct linux_itimerspec *tim); } | |
560 | 323 UNIMPL signalfd4 | 565 | 323 UNIMPL signalfd4 | |
561 | 324 STD { int|linux_sys||eventfd2(unsigned int initval, \ | 566 | 324 STD { int|linux_sys||eventfd2(unsigned int initval, \ | |
562 | int flags); } | 567 | int flags); } | |
563 | 325 UNIMPL epoll_create1 | 568 | 325 STD { int|linux_sys||epoll_create1(int flags); } | |
564 | 326 STD { int|linux_sys||dup3(int from, int to, int flags); } | 569 | 326 STD { int|linux_sys||dup3(int from, int to, int flags); } | |
565 | 327 STD { int|linux_sys||pipe2(int *pfds, int flags); } | 570 | 327 STD { int|linux_sys||pipe2(int *pfds, int flags); } | |
566 | 328 UNIMPL inotify_init1 | 571 | 328 UNIMPL inotify_init1 | |
567 | 329 STD { int|linux_sys||preadv(int fd, \ | 572 | 329 STD { int|linux_sys||preadv(int fd, \ | |
568 | const struct iovec *iovp, int iovcnt, \ | 573 | const struct iovec *iovp, int iovcnt, \ | |
569 | unsigned long off_lo, unsigned long off_hi); } | 574 | unsigned long off_lo, unsigned long off_hi); } | |
570 | 330 STD { int|linux_sys||pwritev(int fd, \ | 575 | 330 STD { int|linux_sys||pwritev(int fd, \ | |
571 | const struct iovcnt *iovp, int iovcnt, \ | 576 | const struct iovcnt *iovp, int iovcnt, \ | |
572 | unsigned long off_lo, unsigned long off_hi); } | 577 | unsigned long off_lo, unsigned long off_hi); } | |
573 | 331 UNIMPL rt_tgsigqueueinfo | 578 | 331 UNIMPL rt_tgsigqueueinfo | |
574 | 332 UNIMPL perf_counter_open | 579 | 332 UNIMPL perf_counter_open | |
575 | 333 UNIMPL set_thread_area | 580 | 333 UNIMPL set_thread_area | |
576 | 334 UNIMPL get_thread_area | 581 | 334 UNIMPL get_thread_area | |
@@ -616,13 +621,79 @@ | @@ -616,13 +621,79 @@ | |||
616 | 370 UNIMPL shutdown | 621 | 370 UNIMPL shutdown | |
617 | 371 STD { int|linux_sys||recvmmsg(int s, \ | 622 | 371 STD { int|linux_sys||recvmmsg(int s, \ | |
618 | struct linux_mmsghdr *msgvec, unsigned int vlen, \ | 623 | struct linux_mmsghdr *msgvec, unsigned int vlen, \ | |
619 | unsigned int flags, struct timespec *timeout); } | 624 | unsigned int flags, struct timespec *timeout); } | |
620 | 372 STD { int|linux_sys||sendmmsg(int s, \ | 625 | 372 STD { int|linux_sys||sendmmsg(int s, \ | |
621 | struct linux_mmsghdr *msgvec, unsigned int vlen, \ | 626 | struct linux_mmsghdr *msgvec, unsigned int vlen, \ | |
622 | unsigned int flags); } | 627 | unsigned int flags); } | |
623 | 373 UNIMPL userfaultfd | 628 | 373 UNIMPL userfaultfd | |
624 | 374 UNIMPL membarrier | 629 | 374 UNIMPL membarrier | |
625 | 375 UNIMPL mlock2 | 630 | 375 UNIMPL mlock2 | |
626 | 376 UNIMPL copy_file_range | 631 | 376 UNIMPL copy_file_range | |
627 | 377 UNIMPL preadv2 | 632 | 377 UNIMPL preadv2 | |
628 | 378 UNIMPL pwritev2 | 633 | 378 UNIMPL pwritev2 | |
634 | 379 UNIMPL | |||
635 | 380 UNIMPL | |||
636 | 381 UNIMPL | |||
637 | 382 UNIMPL | |||
638 | 383 UNIMPL | |||
639 | 384 UNIMPL | |||
640 | 385 UNIMPL | |||
641 | 386 UNIMPL | |||
642 | 387 UNIMPL | |||
643 | 388 UNIMPL | |||
644 | 389 UNIMPL | |||
645 | 390 UNIMPL | |||
646 | 391 UNIMPL | |||
647 | 392 UNIMPL | |||
648 | 393 UNIMPL | |||
649 | 394 UNIMPL | |||
650 | 395 UNIMPL | |||
651 | 396 UNIMPL | |||
652 | 397 UNIMPL | |||
653 | 398 UNIMPL | |||
654 | 399 UNIMPL | |||
655 | 400 UNIMPL | |||
656 | 401 UNIMPL | |||
657 | 402 UNIMPL | |||
658 | 403 UNIMPL | |||
659 | 404 UNIMPL | |||
660 | 405 UNIMPL | |||
661 | 406 UNIMPL | |||
662 | 407 UNIMPL | |||
663 | 408 UNIMPL | |||
664 | 409 UNIMPL | |||
665 | 410 UNIMPL | |||
666 | 411 UNIMPL | |||
667 | 412 UNIMPL | |||
668 | 413 UNIMPL | |||
669 | 414 UNIMPL | |||
670 | 415 UNIMPL | |||
671 | 416 UNIMPL | |||
672 | 417 UNIMPL | |||
673 | 418 UNIMPL | |||
674 | 419 UNIMPL | |||
675 | 420 UNIMPL | |||
676 | 421 UNIMPL | |||
677 | 422 UNIMPL | |||
678 | 423 UNIMPL | |||
679 | 424 UNIMPL | |||
680 | 425 UNIMPL | |||
681 | 426 UNIMPL | |||
682 | 427 UNIMPL | |||
683 | 428 UNIMPL | |||
684 | 429 UNIMPL | |||
685 | 430 UNIMPL | |||
686 | 431 UNIMPL | |||
687 | 432 UNIMPL | |||
688 | 433 UNIMPL | |||
689 | 434 UNIMPL | |||
690 | 435 UNIMPL | |||
691 | 436 UNIMPL | |||
692 | 437 UNIMPL | |||
693 | 438 UNIMPL | |||
694 | 439 UNIMPL | |||
695 | 440 UNIMPL | |||
696 | 441 STD { int|linux_sys||epoll_pwait2(int epfd, \ | |||
697 | struct linux_epoll_event *events, int maxevents, \ | |||
698 | const struct linux_timespec *timeout, \ | |||
699 | const linux_sigset_t *sigmask); } |
--- src/sys/compat/linux/arch/mips/syscalls.master 2021/12/02 04:29:48 1.74
+++ src/sys/compat/linux/arch/mips/syscalls.master 2023/07/28 19:01:11 1.75
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: syscalls.master,v 1.74 2021/12/02 04:29:48 ryo Exp $ | 1 | $NetBSD: syscalls.master,v 1.75 2023/07/28 19:01:11 christos Exp $ | |
2 | 2 | |||
3 | ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 | 3 | ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 | |
4 | 4 | |||
5 | ; Derived from NetBSD's sys/compat/linux/arch/powerpc/syscalls.master | 5 | ; Derived from NetBSD's sys/compat/linux/arch/powerpc/syscalls.master | |
6 | ; from Linux's arch/mips/kernel/syscalls.h | 6 | ; from Linux's arch/mips/kernel/syscalls.h | |
7 | 7 | |||
8 | ; NetBSD mips COMPAT_LINUX system call name/number "master" file. | 8 | ; NetBSD mips COMPAT_LINUX system call name/number "master" file. | |
9 | ; (See syscalls.conf to see what it is processed into.) | 9 | ; (See syscalls.conf to see what it is processed into.) | |
10 | ; | 10 | ; | |
11 | ; Expect problems with | 11 | ; Expect problems with | |
12 | ; 48 signal: undefined in Linux??? | 12 | ; 48 signal: undefined in Linux??? | |
13 | ; 86 uselib: needs a.out | 13 | ; 86 uselib: needs a.out | |
14 | ; | 14 | ; | |
@@ -417,29 +417,32 @@ | @@ -417,29 +417,32 @@ | |||
417 | const struct linux_timespec *timeout, int *uaddr2, \ | 417 | const struct linux_timespec *timeout, int *uaddr2, \ | |
418 | int val3); } | 418 | int val3); } | |
419 | 239 STD { int|linux_sys||sched_setaffinity(pid_t pid, \ | 419 | 239 STD { int|linux_sys||sched_setaffinity(pid_t pid, \ | |
420 | unsigned int len, unsigned long *mask); } | 420 | unsigned int len, unsigned long *mask); } | |
421 | 240 STD { int|linux_sys||sched_getaffinity(pid_t pid, \ | 421 | 240 STD { int|linux_sys||sched_getaffinity(pid_t pid, \ | |
422 | unsigned int len, unsigned long *mask); } | 422 | unsigned int len, unsigned long *mask); } | |
423 | 241 UNIMPL io_setup | 423 | 241 UNIMPL io_setup | |
424 | 242 UNIMPL io_destroy | 424 | 242 UNIMPL io_destroy | |
425 | 243 UNIMPL io_getevents | 425 | 243 UNIMPL io_getevents | |
426 | 244 UNIMPL io_submit | 426 | 244 UNIMPL io_submit | |
427 | 245 UNIMPL io_cancel | 427 | 245 UNIMPL io_cancel | |
428 | 246 STD { int|linux_sys||exit_group(int error_code); } | 428 | 246 STD { int|linux_sys||exit_group(int error_code); } | |
429 | 247 UNIMPL lookup_dcookie | 429 | 247 UNIMPL lookup_dcookie | |
430 | 248 UNIMPL epoll_create | 430 | 248 STD { int|linux_sys||epoll_create(int size); } | |
431 | 249 UNIMPL epoll_ctl | 431 | 249 STD { int|linux_sys||epoll_ctl(int epfd, int op, int fd, \ | |
432 | 250 UNIMPL epoll_wait | 432 | struct linux_epoll_event *event); } | |
433 | 250 STD { int|linux_sys||epoll_wait(int epfd, \ | |||
434 | struct linux_epoll_event *events, int maxevents, \ | |||
435 | int timeout); } | |||
433 | 251 UNIMPL remap_file_pages | 436 | 251 UNIMPL remap_file_pages | |
434 | 252 STD { int|linux_sys||set_tid_address(int *tid); } | 437 | 252 STD { int|linux_sys||set_tid_address(int *tid); } | |
435 | 253 UNIMPL restart_syscall | 438 | 253 UNIMPL restart_syscall | |
436 | 254 STD { int|linux_sys||fadvise64(int fd, off_t offset, \ | 439 | 254 STD { int|linux_sys||fadvise64(int fd, off_t offset, \ | |
437 | size_t len, int advice); } | 440 | size_t len, int advice); } | |
438 | 255 STD { int|linux_sys||statfs64(const char *path, \ | 441 | 255 STD { int|linux_sys||statfs64(const char *path, \ | |
439 | size_t sz, struct linux_statfs64 *sp); } | 442 | size_t sz, struct linux_statfs64 *sp); } | |
440 | 256 STD { int|linux_sys||fstatfs64(int fd, \ | 443 | 256 STD { int|linux_sys||fstatfs64(int fd, \ | |
441 | size_t sz, struct linux_statfs64 *sp); } | 444 | size_t sz, struct linux_statfs64 *sp); } | |
442 | 257 STD { int|linux_sys||timer_create(clockid_t clockid, \ | 445 | 257 STD { int|linux_sys||timer_create(clockid_t clockid, \ | |
443 | struct linux_sigevent *evp, timer_t *timerid); } | 446 | struct linux_sigevent *evp, timer_t *timerid); } | |
444 | 258 STD { int|linux_sys||timer_settime(timer_t timerid, \ | 447 | 258 STD { int|linux_sys||timer_settime(timer_t timerid, \ | |
445 | int flags, const struct linux_itimerspec *tim, \ | 448 | int flags, const struct linux_itimerspec *tim, \ | |
@@ -519,47 +522,49 @@ | @@ -519,47 +522,49 @@ | |||
519 | 307 UNIMPL vmsplice | 522 | 307 UNIMPL vmsplice | |
520 | 308 UNIMPL move_pages | 523 | 308 UNIMPL move_pages | |
521 | ; | 524 | ; | |
522 | ; The NetBSD native robust list calls have different | 525 | ; The NetBSD native robust list calls have different | |
523 | ; argument names / types, but they are ABI-compatible | 526 | ; argument names / types, but they are ABI-compatible | |
524 | ; with Linux. | 527 | ; with Linux. | |
525 | ; | 528 | ; | |
526 | 309 NOARGS { int|sys||__futex_set_robust_list(void *head, \ | 529 | 309 NOARGS { int|sys||__futex_set_robust_list(void *head, \ | |
527 | size_t len); } | 530 | size_t len); } | |
528 | 310 NOARGS { int|sys||__futex_get_robust_list(lwpid_t lwpid, \ | 531 | 310 NOARGS { int|sys||__futex_get_robust_list(lwpid_t lwpid, \ | |
529 | void **headp, size_t *lenp); } | 532 | void **headp, size_t *lenp); } | |
530 | 311 UNIMPL kexec_load | 533 | 311 UNIMPL kexec_load | |
531 | 312 UNIMPL getcpu | 534 | 312 UNIMPL getcpu | |
532 | 313 UNIMPL epoll_pwait | 535 | 313 STD { int|linux_sys||epoll_pwait(int epfd, \ | |
536 | struct linux_epoll_event *events, int maxevents, \ | |||
537 | int timeout, const linux_sigset_t *sigmask); } | |||
533 | 314 UNIMPL ioprio_set | 538 | 314 UNIMPL ioprio_set | |
534 | 315 UNIMPL ioprio_get | 539 | 315 UNIMPL ioprio_get | |
535 | 316 STD { int|linux_sys||utimensat(int fd, const char *path, \ | 540 | 316 STD { int|linux_sys||utimensat(int fd, const char *path, \ | |
536 | struct linux_timespec *times, int flag); } | 541 | struct linux_timespec *times, int flag); } | |
537 | 317 UNIMPL signalfd | 542 | 317 UNIMPL signalfd | |
538 | 318 UNIMPL timerfd | 543 | 318 UNIMPL timerfd | |
539 | 319 STD { int|linux_sys||eventfd(unsigned int initval); } | 544 | 319 STD { int|linux_sys||eventfd(unsigned int initval); } | |
540 | 320 STD { int|linux_sys||fallocate(int fd, int mode, \ | 545 | 320 STD { int|linux_sys||fallocate(int fd, int mode, \ | |
541 | off_t offset, off_t len); } | 546 | off_t offset, off_t len); } | |
542 | 321 STD { int|linux_sys||timerfd_create(clockid_t clock_id, \ | 547 | 321 STD { int|linux_sys||timerfd_create(clockid_t clock_id, \ | |
543 | int flags); } | 548 | int flags); } | |
544 | 322 STD { int|linux_sys||timerfd_gettime(int fd, \ | 549 | 322 STD { int|linux_sys||timerfd_gettime(int fd, \ | |
545 | struct linux_itimerspec *tim); } | 550 | struct linux_itimerspec *tim); } | |
546 | 323 STD { int|linux_sys||timerfd_settime(int fd, int flags, \ | 551 | 323 STD { int|linux_sys||timerfd_settime(int fd, int flags, \ | |
547 | const struct linux_itimerspec *tim, \ | 552 | const struct linux_itimerspec *tim, \ | |
548 | struct linux_itimerspec *otim); } | 553 | struct linux_itimerspec *otim); } | |
549 | 324 UNIMPL signalfd4 | 554 | 324 UNIMPL signalfd4 | |
550 | 325 STD { int|linux_sys||eventfd2(unsigned int initval, \ | 555 | 325 STD { int|linux_sys||eventfd2(unsigned int initval, \ | |
551 | int flags); } | 556 | int flags); } | |
552 | 326 UNIMPL epoll_create1 | 557 | 326 STD { int|linux_sys||epoll_create1(int flags); } | |
553 | 327 STD { int|linux_sys||dup3(int from, int to, int flags); } | 558 | 327 STD { int|linux_sys||dup3(int from, int to, int flags); } | |
554 | 328 STD { int|linux_sys||pipe2(int *pfds, int flags); } | 559 | 328 STD { int|linux_sys||pipe2(int *pfds, int flags); } | |
555 | 329 UNIMPL inotify_init1 | 560 | 329 UNIMPL inotify_init1 | |
556 | 330 STD { int|linux_sys||preadv(int fd, \ | 561 | 330 STD { int|linux_sys||preadv(int fd, \ | |
557 | const struct iovec *iovp, int iovcnt, \ | 562 | const struct iovec *iovp, int iovcnt, \ | |
558 | unsigned long off_lo, unsigned long off_hi); } | 563 | unsigned long off_lo, unsigned long off_hi); } | |
559 | 331 STD { int|linux_sys||pwritev(int fd, \ | 564 | 331 STD { int|linux_sys||pwritev(int fd, \ | |
560 | const struct iovcnt *iovp, int iovcnt, \ | 565 | const struct iovcnt *iovp, int iovcnt, \ | |
561 | unsigned long off_lo, unsigned long off_hi); } | 566 | unsigned long off_lo, unsigned long off_hi); } | |
562 | 332 UNIMPL rt_tgsigqueueinfo | 567 | 332 UNIMPL rt_tgsigqueueinfo | |
563 | 333 UNIMPL perf_event_open | 568 | 333 UNIMPL perf_event_open | |
564 | 334 STD { int|linux_sys||accept4(int s, \ | 569 | 334 STD { int|linux_sys||accept4(int s, \ | |
565 | struct osockaddr *name, \ | 570 | struct osockaddr *name, \ | |
@@ -592,14 +597,91 @@ | @@ -592,14 +597,91 @@ | |||
592 | unsigned int flags); } | 597 | unsigned int flags); } | |
593 | 355 UNIMPL memfd_create | 598 | 355 UNIMPL memfd_create | |
594 | 356 UNIMPL bpf | 599 | 356 UNIMPL bpf | |
595 | 357 UNIMPL execveat | 600 | 357 UNIMPL execveat | |
596 | 358 UNIMPL userfaultfd | 601 | 358 UNIMPL userfaultfd | |
597 | 359 UNIMPL membarrier | 602 | 359 UNIMPL membarrier | |
598 | 360 UNIMPL mlock2 | 603 | 360 UNIMPL mlock2 | |
599 | 361 UNIMPL copy_file_range | 604 | 361 UNIMPL copy_file_range | |
600 | 362 UNIMPL preadv2 | 605 | 362 UNIMPL preadv2 | |
601 | 363 UNIMPL pwritev2 | 606 | 363 UNIMPL pwritev2 | |
602 | 364 UNIMPL pkey_mprotect | 607 | 364 UNIMPL pkey_mprotect | |
603 | 365 UNIMPL pkey_alloc | 608 | 365 UNIMPL pkey_alloc | |
604 | 366 UNIMPL pkey_free | 609 | 366 UNIMPL pkey_free | |
605 | 610 | 367 UNIMPL | ||
611 | 368 UNIMPL | |||
612 | 369 UNIMPL | |||
613 | 370 UNIMPL | |||
614 | 371 UNIMPL | |||
615 | 372 UNIMPL | |||
616 | 373 UNIMPL | |||
617 | 374 UNIMPL | |||
618 | 375 UNIMPL | |||
619 | 376 UNIMPL | |||
620 | 377 UNIMPL | |||
621 | 378 UNIMPL | |||
622 | 379 UNIMPL | |||
623 | 380 UNIMPL | |||
624 | 381 UNIMPL | |||
625 | 382 UNIMPL | |||
626 | 383 UNIMPL | |||
627 | 384 UNIMPL | |||
628 | 385 UNIMPL | |||
629 | 386 UNIMPL | |||
630 | 387 UNIMPL | |||
631 | 388 UNIMPL | |||
632 | 389 UNIMPL | |||
633 | 390 UNIMPL | |||
634 | 391 UNIMPL | |||
635 | 392 UNIMPL | |||
636 | 393 UNIMPL | |||
637 | 394 UNIMPL | |||
638 | 395 UNIMPL | |||
639 | 396 UNIMPL | |||
640 | 397 UNIMPL | |||
641 | 398 UNIMPL | |||
642 | 399 UNIMPL | |||
643 | 400 UNIMPL | |||
644 | 401 UNIMPL | |||
645 | 402 UNIMPL | |||
646 | 403 UNIMPL | |||
647 | 404 UNIMPL | |||
648 | 405 UNIMPL | |||
649 | 406 UNIMPL | |||
650 | 407 UNIMPL | |||
651 | 408 UNIMPL | |||
652 | 409 UNIMPL | |||
653 | 410 UNIMPL | |||
654 | 411 UNIMPL | |||
655 | 412 UNIMPL | |||
656 | 413 UNIMPL | |||
657 | 414 UNIMPL | |||
658 | 415 UNIMPL | |||
659 | 416 UNIMPL | |||
660 | 417 UNIMPL | |||
661 | 418 UNIMPL | |||
662 | 419 UNIMPL | |||
663 | 420 UNIMPL | |||
664 | 421 UNIMPL | |||
665 | 422 UNIMPL | |||
666 | 423 UNIMPL | |||
667 | 424 UNIMPL | |||
668 | 425 UNIMPL | |||
669 | 426 UNIMPL | |||
670 | 427 UNIMPL | |||
671 | 428 UNIMPL | |||
672 | 429 UNIMPL | |||
673 | 430 UNIMPL | |||
674 | 431 UNIMPL | |||
675 | 432 UNIMPL | |||
676 | 433 UNIMPL | |||
677 | 434 UNIMPL | |||
678 | 435 UNIMPL | |||
679 | 436 UNIMPL | |||
680 | 437 UNIMPL | |||
681 | 438 UNIMPL | |||
682 | 439 UNIMPL | |||
683 | 440 UNIMPL | |||
684 | 441 STD { int|linux_sys||epoll_pwait2(int epfd, \ | |||
685 | struct linux_epoll_event *events, int maxevents, \ | |||
686 | const struct linux_timespec *timeout, \ | |||
687 | const linux_sigset_t *sigmask); } |
--- src/sys/compat/linux/arch/powerpc/syscalls.master 2021/12/02 04:29:48 1.80
+++ src/sys/compat/linux/arch/powerpc/syscalls.master 2023/07/28 19:01:11 1.81
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: syscalls.master,v 1.80 2021/12/02 04:29:48 ryo Exp $ | 1 | $NetBSD: syscalls.master,v 1.81 2023/07/28 19:01:11 christos Exp $ | |
2 | 2 | |||
3 | ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 | 3 | ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 | |
4 | 4 | |||
5 | ; Derived from NetBSD's sys/compat/linux/arch/i386/syscalls.master | 5 | ; Derived from NetBSD's sys/compat/linux/arch/i386/syscalls.master | |
6 | ; sys/compat/linux/arch/m68k/syscalls.master | 6 | ; sys/compat/linux/arch/m68k/syscalls.master | |
7 | ; and from Linux's arch/ppc/kernel/misc.S | 7 | ; and from Linux's arch/ppc/kernel/misc.S | |
8 | ; | 8 | ; | |
9 | ; We have problems for a few syscalls, specially: | 9 | ; We have problems for a few syscalls, specially: | |
10 | ; 142 ppc_select -> sys_new_select -> sys_select (Conflicts with 82 ???). | 10 | ; 142 ppc_select -> sys_new_select -> sys_select (Conflicts with 82 ???). | |
11 | ; | 11 | ; | |
12 | ; Expect problems with the following, which have an architecture dependent | 12 | ; Expect problems with the following, which have an architecture dependent | |
13 | ; implementation in Linux/powerpc: | 13 | ; implementation in Linux/powerpc: | |
14 | ; 29 pause | 14 | ; 29 pause | |
@@ -415,29 +415,32 @@ | @@ -415,29 +415,32 @@ | |||
415 | 224 UNIMPL /* unused */ | 415 | 224 UNIMPL /* unused */ | |
416 | 225 UNIMPL tuxcall | 416 | 225 UNIMPL tuxcall | |
417 | 226 UNIMPL sendfile64 | 417 | 226 UNIMPL sendfile64 | |
418 | 227 UNIMPL io_setup | 418 | 227 UNIMPL io_setup | |
419 | 228 UNIMPL io_destroy | 419 | 228 UNIMPL io_destroy | |
420 | 229 UNIMPL io_getevents | 420 | 229 UNIMPL io_getevents | |
421 | 230 UNIMPL io_submit | 421 | 230 UNIMPL io_submit | |
422 | 231 UNIMPL io_cancel | 422 | 231 UNIMPL io_cancel | |
423 | 232 STD { int|linux_sys||set_tid_address(int *tid); } | 423 | 232 STD { int|linux_sys||set_tid_address(int *tid); } | |
424 | 233 STD { int|linux_sys||fadvise64(int fd, off_t offset, \ | 424 | 233 STD { int|linux_sys||fadvise64(int fd, off_t offset, \ | |
425 | size_t len, int advice); } | 425 | size_t len, int advice); } | |
426 | 234 STD { int|linux_sys||exit_group(int error_code); } | 426 | 234 STD { int|linux_sys||exit_group(int error_code); } | |
427 | 235 UNIMPL lookup_dcookie | 427 | 235 UNIMPL lookup_dcookie | |
428 | 236 UNIMPL epoll_create | 428 | 236 STD { int|linux_sys||epoll_create(int size); } | |
429 | 237 UNIMPL epoll_ctl | 429 | 237 STD { int|linux_sys||epoll_ctl(int epfd, int op, int fd, \ | |
430 | 238 UNIMPL epoll_wait | 430 | struct linux_epoll_event *event); } | |
431 | 238 STD { int|linux_sys||epoll_wait(int epfd, \ | |||
432 | struct linux_epoll_event *events, int maxevents, \ | |||
433 | int timeout); } | |||
431 | 239 UNIMPL remap_file_pages | 434 | 239 UNIMPL remap_file_pages | |
432 | 240 STD { int|linux_sys||timer_create(clockid_t clockid, \ | 435 | 240 STD { int|linux_sys||timer_create(clockid_t clockid, \ | |
433 | struct linux_sigevent *evp, timer_t *timerid); } | 436 | struct linux_sigevent *evp, timer_t *timerid); } | |
434 | 241 STD { int|linux_sys||timer_settime(timer_t timerid, \ | 437 | 241 STD { int|linux_sys||timer_settime(timer_t timerid, \ | |
435 | int flags, const struct linux_itimerspec *tim, \ | 438 | int flags, const struct linux_itimerspec *tim, \ | |
436 | struct linux_itimerspec *otim); } | 439 | struct linux_itimerspec *otim); } | |
437 | 242 STD { int|linux_sys||timer_gettime(timer_t timerid, \ | 440 | 242 STD { int|linux_sys||timer_gettime(timer_t timerid, \ | |
438 | struct linux_itimerspec *tim); } | 441 | struct linux_itimerspec *tim); } | |
439 | 243 NOARGS { int|sys||timer_getoverrun(timer_t timerid); } | 442 | 243 NOARGS { int|sys||timer_getoverrun(timer_t timerid); } | |
440 | 244 NOARGS { int|sys||timer_delete(timer_t timerid); } | 443 | 244 NOARGS { int|sys||timer_delete(timer_t timerid); } | |
441 | 245 STD { int|linux_sys||clock_settime(clockid_t which, \ | 444 | 245 STD { int|linux_sys||clock_settime(clockid_t which, \ | |
442 | struct linux_timespec *tp); } | 445 | struct linux_timespec *tp); } | |
443 | 246 STD { int|linux_sys||clock_gettime(clockid_t which, \ | 446 | 246 STD { int|linux_sys||clock_gettime(clockid_t which, \ | |
@@ -519,46 +522,48 @@ | @@ -519,46 +522,48 @@ | |||
519 | 298 STD { int|linux_sys||faccessat(int fd, const char *path, \ | 522 | 298 STD { int|linux_sys||faccessat(int fd, const char *path, \ | |
520 | int amode); } | 523 | int amode); } | |
521 | ; | 524 | ; | |
522 | ; The NetBSD native robust list calls have different | 525 | ; The NetBSD native robust list calls have different | |
523 | ; argument names / types, but they are ABI-compatible | 526 | ; argument names / types, but they are ABI-compatible | |
524 | ; with Linux. | 527 | ; with Linux. | |
525 | ; | 528 | ; | |
526 | 299 NOARGS { int|sys||__futex_set_robust_list(void *head, \ | 529 | 299 NOARGS { int|sys||__futex_set_robust_list(void *head, \ | |
527 | size_t len); } | 530 | size_t len); } | |
528 | 300 NOARGS { int|sys||__futex_get_robust_list(lwpid_t lwpid, \ | 531 | 300 NOARGS { int|sys||__futex_get_robust_list(lwpid_t lwpid, \ | |
529 | void **headp, size_t *lenp); } | 532 | void **headp, size_t *lenp); } | |
530 | 301 UNIMPL move_pages | 533 | 301 UNIMPL move_pages | |
531 | 302 UNIMPL getcpu | 534 | 302 UNIMPL getcpu | |
532 | 303 UNIMPL epoll_wait | 535 | 303 STD { int|linux_sys||epoll_pwait(int epfd, \ | |
536 | struct linux_epoll_event *events, int maxevents, \ | |||
537 | int timeout, const linux_sigset_t *sigmask); } | |||
533 | 304 STD { int|linux_sys||utimensat(int fd, const char *path, \ | 538 | 304 STD { int|linux_sys||utimensat(int fd, const char *path, \ | |
534 | struct linux_timespec *times, int flag); } | 539 | struct linux_timespec *times, int flag); } | |
535 | 305 UNIMPL signalfd | 540 | 305 UNIMPL signalfd | |
536 | 306 STD { int|linux_sys||timerfd_create(clockid_t clock_id, \ | 541 | 306 STD { int|linux_sys||timerfd_create(clockid_t clock_id, \ | |
537 | int flags); } | 542 | int flags); } | |
538 | 307 STD { int|linux_sys||eventfd(unsigned int initval); } | 543 | 307 STD { int|linux_sys||eventfd(unsigned int initval); } | |
539 | 308 UNIMPL sync_file_range2 | 544 | 308 UNIMPL sync_file_range2 | |
540 | 309 STD { int|linux_sys||fallocate(int fd, int mode, \ | 545 | 309 STD { int|linux_sys||fallocate(int fd, int mode, \ | |
541 | off_t offset, off_t len); } | 546 | off_t offset, off_t len); } | |
542 | 310 UNIMPL subpage_prot | 547 | 310 UNIMPL subpage_prot | |
543 | 311 STD { int|linux_sys||timerfd_settime(int fd, int flags, \ | 548 | 311 STD { int|linux_sys||timerfd_settime(int fd, int flags, \ | |
544 | const struct linux_itimerspec *tim, \ | 549 | const struct linux_itimerspec *tim, \ | |
545 | struct linux_itimerspec *otim); } | 550 | struct linux_itimerspec *otim); } | |
546 | 312 STD { int|linux_sys||timerfd_gettime(int fd, \ | 551 | 312 STD { int|linux_sys||timerfd_gettime(int fd, \ | |
547 | struct linux_itimerspec *tim); } | 552 | struct linux_itimerspec *tim); } | |
548 | 313 UNIMPL signalfd4 | 553 | 313 UNIMPL signalfd4 | |
549 | 314 STD { int|linux_sys||eventfd2(unsigned int initval, \ | 554 | 314 STD { int|linux_sys||eventfd2(unsigned int initval, \ | |
550 | int flags); } | 555 | int flags); } | |
551 | 315 UNIMPL epoll_create1 | 556 | 315 STD { int|linux_sys||epoll_create1(int flags); } | |
552 | 316 STD { int|linux_sys||dup3(int from, int to, int flags); } | 557 | 316 STD { int|linux_sys||dup3(int from, int to, int flags); } | |
553 | 317 STD { int|linux_sys||pipe2(int *pfds, int flags); } | 558 | 317 STD { int|linux_sys||pipe2(int *pfds, int flags); } | |
554 | 318 UNIMPL inotify_init1 | 559 | 318 UNIMPL inotify_init1 | |
555 | 319 UNIMPL perf_event_open | 560 | 319 UNIMPL perf_event_open | |
556 | 320 STD { int|linux_sys||preadv(int fd, \ | 561 | 320 STD { int|linux_sys||preadv(int fd, \ | |
557 | const struct iovec *iovp, int iovcnt, \ | 562 | const struct iovec *iovp, int iovcnt, \ | |
558 | unsigned long off_lo, unsigned long off_hi); } | 563 | unsigned long off_lo, unsigned long off_hi); } | |
559 | 321 STD { int|linux_sys||pwritev(int fd, \ | 564 | 321 STD { int|linux_sys||pwritev(int fd, \ | |
560 | const struct iovcnt *iovp, int iovcnt, \ | 565 | const struct iovcnt *iovp, int iovcnt, \ | |
561 | unsigned long off_lo, unsigned long off_hi); } | 566 | unsigned long off_lo, unsigned long off_hi); } | |
562 | 322 UNIMPL rt_tgsigqueueinfo | 567 | 322 UNIMPL rt_tgsigqueueinfo | |
563 | 323 UNIMPL fanotify_init | 568 | 323 UNIMPL fanotify_init | |
564 | 324 UNIMPL fanotify_mark | 569 | 324 UNIMPL fanotify_mark | |
@@ -618,13 +623,75 @@ | @@ -618,13 +623,75 @@ | |||
618 | 370 UNIMPL | 623 | 370 UNIMPL | |
619 | 371 UNIMPL | 624 | 371 UNIMPL | |
620 | 372 UNIMPL | 625 | 372 UNIMPL | |
621 | 373 UNIMPL | 626 | 373 UNIMPL | |
622 | 374 UNIMPL | 627 | 374 UNIMPL | |
623 | 375 UNIMPL | 628 | 375 UNIMPL | |
624 | 376 UNIMPL | 629 | 376 UNIMPL | |
625 | 377 UNIMPL | 630 | 377 UNIMPL | |
626 | 378 UNIMPL mlock2 | 631 | 378 UNIMPL mlock2 | |
627 | 379 UNIMPL copy_file_range | 632 | 379 UNIMPL copy_file_range | |
628 | 380 UNIMPL preadv2 | 633 | 380 UNIMPL preadv2 | |
629 | 381 UNIMPL pwritev2 | 634 | 381 UNIMPL pwritev2 | |
630 | 382 UNIMPL kexec_file_load | 635 | 382 UNIMPL kexec_file_load | |
636 | 383 UNIMPL | |||
637 | 384 UNIMPL | |||
638 | 385 UNIMPL | |||
639 | 386 UNIMPL | |||
640 | 387 UNIMPL | |||
641 | 388 UNIMPL | |||
642 | 389 UNIMPL | |||
643 | 390 UNIMPL | |||
644 | 391 UNIMPL | |||
645 | 392 UNIMPL | |||
646 | 393 UNIMPL | |||
647 | 394 UNIMPL | |||
648 | 395 UNIMPL | |||
649 | 396 UNIMPL | |||
650 | 397 UNIMPL | |||
651 | 398 UNIMPL | |||
652 | 399 UNIMPL | |||
653 | 400 UNIMPL | |||
654 | 401 UNIMPL | |||
655 | 402 UNIMPL | |||
656 | 403 UNIMPL | |||
657 | 404 UNIMPL | |||
658 | 405 UNIMPL | |||
659 | 406 UNIMPL | |||
660 | 407 UNIMPL | |||
661 | 408 UNIMPL | |||
662 | 409 UNIMPL | |||
663 | 410 UNIMPL | |||
664 | 411 UNIMPL | |||
665 | 412 UNIMPL | |||
666 | 413 UNIMPL | |||
667 | 414 UNIMPL | |||
668 | 415 UNIMPL | |||
669 | 416 UNIMPL | |||
670 | 417 UNIMPL | |||
671 | 418 UNIMPL | |||
672 | 419 UNIMPL | |||
673 | 420 UNIMPL | |||
674 | 421 UNIMPL | |||
675 | 422 UNIMPL | |||
676 | 423 UNIMPL | |||
677 | 424 UNIMPL | |||
678 | 425 UNIMPL | |||
679 | 426 UNIMPL | |||
680 | 427 UNIMPL | |||
681 | 428 UNIMPL | |||
682 | 429 UNIMPL | |||
683 | 430 UNIMPL | |||
684 | 431 UNIMPL | |||
685 | 432 UNIMPL | |||
686 | 433 UNIMPL | |||
687 | 434 UNIMPL | |||
688 | 435 UNIMPL | |||
689 | 436 UNIMPL | |||
690 | 437 UNIMPL | |||
691 | 438 UNIMPL | |||
692 | 439 UNIMPL | |||
693 | 440 UNIMPL | |||
694 | 441 STD { int|linux_sys||epoll_pwait2(int epfd, \ | |||
695 | struct linux_epoll_event *events, int maxevents, \ | |||
696 | const struct linux_timespec *timeout, \ | |||
697 | const linux_sigset_t *sigmask); } |