COMPAT_NETBSD32: Regen for syscalls.master,v 1.144diff -r1.159 -r1.160 src/sys/compat/netbsd32/netbsd32_syscall.h
(rin)
--- src/sys/compat/netbsd32/netbsd32_syscall.h 2023/07/30 05:31:30 1.159
+++ src/sys/compat/netbsd32/netbsd32_syscall.h 2023/07/30 06:53:13 1.160
@@ -1,20 +1,20 @@ | @@ -1,20 +1,20 @@ | |||
1 | /* $NetBSD: netbsd32_syscall.h,v 1.159 2023/07/30 05:31:30 rin Exp $ */ | 1 | /* $NetBSD: netbsd32_syscall.h,v 1.160 2023/07/30 06:53:13 rin Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * System call numbers. | 4 | * System call numbers. | |
5 | * | 5 | * | |
6 | * DO NOT EDIT-- this file is automatically generated. | 6 | * DO NOT EDIT-- this file is automatically generated. | |
7 | * created from NetBSD: syscalls.master,v 1.143 2023/07/30 05:30:45 rin Exp | 7 | * created from NetBSD: syscalls.master,v 1.144 2023/07/30 06:52:20 rin Exp | |
8 | */ | 8 | */ | |
9 | 9 | |||
10 | #ifndef _NETBSD32_SYS_SYSCALL_H_ | 10 | #ifndef _NETBSD32_SYS_SYSCALL_H_ | |
11 | #define _NETBSD32_SYS_SYSCALL_H_ | 11 | #define _NETBSD32_SYS_SYSCALL_H_ | |
12 | 12 | |||
13 | #define NETBSD32_SYS_MAXSYSARGS 8 | 13 | #define NETBSD32_SYS_MAXSYSARGS 8 | |
14 | 14 | |||
15 | /* syscall: "netbsd32_syscall" ret: "int" args: "int" "..." */ | 15 | /* syscall: "netbsd32_syscall" ret: "int" args: "int" "..." */ | |
16 | #define NETBSD32_SYS_netbsd32_syscall 0 | 16 | #define NETBSD32_SYS_netbsd32_syscall 0 | |
17 | 17 | |||
18 | /* syscall: "netbsd32_exit" ret: "void" args: "int" */ | 18 | /* syscall: "netbsd32_exit" ret: "void" args: "int" */ | |
19 | #define NETBSD32_SYS_netbsd32_exit 1 | 19 | #define NETBSD32_SYS_netbsd32_exit 1 | |
20 | 20 | |||
@@ -1334,16 +1334,25 @@ | @@ -1334,16 +1334,25 @@ | |||
1334 | 1334 | |||
1335 | /* syscall: "netbsd32___acl_aclcheck_fd" ret: "int" args: "int" "acl_type_t" "netbsd32_aclp_t" */ | 1335 | /* syscall: "netbsd32___acl_aclcheck_fd" ret: "int" args: "int" "acl_type_t" "netbsd32_aclp_t" */ | |
1336 | #define NETBSD32_SYS_netbsd32___acl_aclcheck_fd 498 | 1336 | #define NETBSD32_SYS_netbsd32___acl_aclcheck_fd 498 | |
1337 | 1337 | |||
1338 | /* syscall: "netbsd32_lpathconf" ret: "long" args: "const netbsd32_charp" "int" */ | 1338 | /* syscall: "netbsd32_lpathconf" ret: "long" args: "const netbsd32_charp" "int" */ | |
1339 | #define NETBSD32_SYS_netbsd32_lpathconf 499 | 1339 | #define NETBSD32_SYS_netbsd32_lpathconf 499 | |
1340 | 1340 | |||
1341 | /* syscall: "netbsd32_memfd_create" ret: "int" args: "const netbsd32_charp" "unsigned int" */ | 1341 | /* syscall: "netbsd32_memfd_create" ret: "int" args: "const netbsd32_charp" "unsigned int" */ | |
1342 | #define NETBSD32_SYS_netbsd32_memfd_create 500 | 1342 | #define NETBSD32_SYS_netbsd32_memfd_create 500 | |
1343 | 1343 | |||
1344 | /* syscall: "netbsd32___kevent100" ret: "int" args: "int" "const netbsd32_keventp_t" "netbsd32_size_t" "netbsd32_keventp_t" "netbsd32_size_t" "const netbsd32_timespecp_t" */ | 1344 | /* syscall: "netbsd32___kevent100" ret: "int" args: "int" "const netbsd32_keventp_t" "netbsd32_size_t" "netbsd32_keventp_t" "netbsd32_size_t" "const netbsd32_timespecp_t" */ | |
1345 | #define NETBSD32_SYS_netbsd32___kevent100 501 | 1345 | #define NETBSD32_SYS_netbsd32___kevent100 501 | |
1346 | 1346 | |||
1347 | /* syscall: "netbsd32_epoll_create1" ret: "int" args: "int" */ | |||
1348 | #define NETBSD32_SYS_netbsd32_epoll_create1 502 | |||
1349 | ||||
1350 | /* syscall: "netbsd32_epoll_ctl" ret: "int" args: "int" "int" "int" "netbsd32_epoll_eventp_t" */ | |||
1351 | #define NETBSD32_SYS_netbsd32_epoll_ctl 503 | |||
1352 | ||||
1353 | /* syscall: "netbsd32_epoll_pwait2" ret: "int" args: "int" "netbsd32_epoll_eventp_t" "int" "netbsd32_timespecp_t" "netbsd32_sigsetp_t" */ | |||
1354 | #define NETBSD32_SYS_netbsd32_epoll_pwait2 504 | |||
1355 | ||||
1347 | #define NETBSD32_SYS_MAXSYSCALL 505 | 1356 | #define NETBSD32_SYS_MAXSYSCALL 505 | |
1348 | #define NETBSD32_SYS_NSYSENT 512 | 1357 | #define NETBSD32_SYS_NSYSENT 512 | |
1349 | #endif /* _NETBSD32_SYS_SYSCALL_H_ */ | 1358 | #endif /* _NETBSD32_SYS_SYSCALL_H_ */ |
--- src/sys/compat/netbsd32/netbsd32_syscallargs.h 2023/07/30 05:31:30 1.158
+++ src/sys/compat/netbsd32/netbsd32_syscallargs.h 2023/07/30 06:53:13 1.159
@@ -1,20 +1,20 @@ | @@ -1,20 +1,20 @@ | |||
1 | /* $NetBSD: netbsd32_syscallargs.h,v 1.158 2023/07/30 05:31:30 rin Exp $ */ | 1 | /* $NetBSD: netbsd32_syscallargs.h,v 1.159 2023/07/30 06:53:13 rin Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * System call argument lists. | 4 | * System call argument lists. | |
5 | * | 5 | * | |
6 | * DO NOT EDIT-- this file is automatically generated. | 6 | * DO NOT EDIT-- this file is automatically generated. | |
7 | * created from NetBSD: syscalls.master,v 1.143 2023/07/30 05:30:45 rin Exp | 7 | * created from NetBSD: syscalls.master,v 1.144 2023/07/30 06:52:20 rin Exp | |
8 | */ | 8 | */ | |
9 | 9 | |||
10 | #ifndef _NETBSD32_SYS_SYSCALLARGS_H_ | 10 | #ifndef _NETBSD32_SYS_SYSCALLARGS_H_ | |
11 | #define _NETBSD32_SYS_SYSCALLARGS_H_ | 11 | #define _NETBSD32_SYS_SYSCALLARGS_H_ | |
12 | 12 | |||
13 | /* Forward declaration */ | 13 | /* Forward declaration */ | |
14 | struct lwp; | 14 | struct lwp; | |
15 | 15 | |||
16 | #define NETBSD32_SYS_MAXSYSARGS 8 | 16 | #define NETBSD32_SYS_MAXSYSARGS 8 | |
17 | 17 | |||
18 | #undef syscallarg | 18 | #undef syscallarg | |
19 | #define syscallarg(x) \ | 19 | #define syscallarg(x) \ | |
20 | union { \ | 20 | union { \ | |
@@ -2795,26 +2795,48 @@ struct netbsd32_memfd_create_args { | @@ -2795,26 +2795,48 @@ struct netbsd32_memfd_create_args { | |||
2795 | }; | 2795 | }; | |
2796 | check_syscall_args(netbsd32_memfd_create) | 2796 | check_syscall_args(netbsd32_memfd_create) | |
2797 | 2797 | |||
2798 | struct netbsd32___kevent100_args { | 2798 | struct netbsd32___kevent100_args { | |
2799 | syscallarg(int) fd; | 2799 | syscallarg(int) fd; | |
2800 | syscallarg(const netbsd32_keventp_t) changelist; | 2800 | syscallarg(const netbsd32_keventp_t) changelist; | |
2801 | syscallarg(netbsd32_size_t) nchanges; | 2801 | syscallarg(netbsd32_size_t) nchanges; | |
2802 | syscallarg(netbsd32_keventp_t) eventlist; | 2802 | syscallarg(netbsd32_keventp_t) eventlist; | |
2803 | syscallarg(netbsd32_size_t) nevents; | 2803 | syscallarg(netbsd32_size_t) nevents; | |
2804 | syscallarg(const netbsd32_timespecp_t) timeout; | 2804 | syscallarg(const netbsd32_timespecp_t) timeout; | |
2805 | }; | 2805 | }; | |
2806 | check_syscall_args(netbsd32___kevent100) | 2806 | check_syscall_args(netbsd32___kevent100) | |
2807 | 2807 | |||
2808 | struct netbsd32_epoll_create1_args { | |||
2809 | syscallarg(int) flags; | |||
2810 | }; | |||
2811 | check_syscall_args(netbsd32_epoll_create1) | |||
2812 | ||||
2813 | struct netbsd32_epoll_ctl_args { | |||
2814 | syscallarg(int) epfd; | |||
2815 | syscallarg(int) op; | |||
2816 | syscallarg(int) fd; | |||
2817 | syscallarg(netbsd32_epoll_eventp_t) event; | |||
2818 | }; | |||
2819 | check_syscall_args(netbsd32_epoll_ctl) | |||
2820 | ||||
2821 | struct netbsd32_epoll_pwait2_args { | |||
2822 | syscallarg(int) epfd; | |||
2823 | syscallarg(netbsd32_epoll_eventp_t) events; | |||
2824 | syscallarg(int) maxevents; | |||
2825 | syscallarg(netbsd32_timespecp_t) timeout; | |||
2826 | syscallarg(netbsd32_sigsetp_t) sigmask; | |||
2827 | }; | |||
2828 | check_syscall_args(netbsd32_epoll_pwait2) | |||
2829 | ||||
2808 | /* | 2830 | /* | |
2809 | * System call prototypes. | 2831 | * System call prototypes. | |
2810 | */ | 2832 | */ | |
2811 | 2833 | |||
2812 | int netbsd32_syscall(struct lwp *, const struct netbsd32_syscall_args *, register_t *); | 2834 | int netbsd32_syscall(struct lwp *, const struct netbsd32_syscall_args *, register_t *); | |
2813 | 2835 | |||
2814 | int netbsd32_exit(struct lwp *, const struct netbsd32_exit_args *, register_t *); | 2836 | int netbsd32_exit(struct lwp *, const struct netbsd32_exit_args *, register_t *); | |
2815 | 2837 | |||
2816 | int sys_fork(struct lwp *, const void *, register_t *); | 2838 | int sys_fork(struct lwp *, const void *, register_t *); | |
2817 | 2839 | |||
2818 | int netbsd32_read(struct lwp *, const struct netbsd32_read_args *, register_t *); | 2840 | int netbsd32_read(struct lwp *, const struct netbsd32_read_args *, register_t *); | |
2819 | 2841 | |||
2820 | int netbsd32_write(struct lwp *, const struct netbsd32_write_args *, register_t *); | 2842 | int netbsd32_write(struct lwp *, const struct netbsd32_write_args *, register_t *); | |
@@ -3669,14 +3691,20 @@ int netbsd32___acl_delete_file(struct lw | @@ -3669,14 +3691,20 @@ int netbsd32___acl_delete_file(struct lw | |||
3669 | 3691 | |||
3670 | int netbsd32___acl_delete_fd(struct lwp *, const struct netbsd32___acl_delete_fd_args *, register_t *); | 3692 | int netbsd32___acl_delete_fd(struct lwp *, const struct netbsd32___acl_delete_fd_args *, register_t *); | |
3671 | 3693 | |||
3672 | int netbsd32___acl_aclcheck_file(struct lwp *, const struct netbsd32___acl_aclcheck_file_args *, register_t *); | 3694 | int netbsd32___acl_aclcheck_file(struct lwp *, const struct netbsd32___acl_aclcheck_file_args *, register_t *); | |
3673 | 3695 | |||
3674 | int netbsd32___acl_aclcheck_fd(struct lwp *, const struct netbsd32___acl_aclcheck_fd_args *, register_t *); | 3696 | int netbsd32___acl_aclcheck_fd(struct lwp *, const struct netbsd32___acl_aclcheck_fd_args *, register_t *); | |
3675 | 3697 | |||
3676 | int netbsd32_lpathconf(struct lwp *, const struct netbsd32_lpathconf_args *, register_t *); | 3698 | int netbsd32_lpathconf(struct lwp *, const struct netbsd32_lpathconf_args *, register_t *); | |
3677 | 3699 | |||
3678 | int netbsd32_memfd_create(struct lwp *, const struct netbsd32_memfd_create_args *, register_t *); | 3700 | int netbsd32_memfd_create(struct lwp *, const struct netbsd32_memfd_create_args *, register_t *); | |
3679 | 3701 | |||
3680 | int netbsd32___kevent100(struct lwp *, const struct netbsd32___kevent100_args *, register_t *); | 3702 | int netbsd32___kevent100(struct lwp *, const struct netbsd32___kevent100_args *, register_t *); | |
3681 | 3703 | |||
3704 | int netbsd32_epoll_create1(struct lwp *, const struct netbsd32_epoll_create1_args *, register_t *); | |||
3705 | ||||
3706 | int netbsd32_epoll_ctl(struct lwp *, const struct netbsd32_epoll_ctl_args *, register_t *); | |||
3707 | ||||
3708 | int netbsd32_epoll_pwait2(struct lwp *, const struct netbsd32_epoll_pwait2_args *, register_t *); | |||
3709 | ||||
3682 | #endif /* _NETBSD32_SYS_SYSCALLARGS_H_ */ | 3710 | #endif /* _NETBSD32_SYS_SYSCALLARGS_H_ */ |
--- src/sys/compat/netbsd32/netbsd32_syscalls.c 2023/07/30 05:31:30 1.158
+++ src/sys/compat/netbsd32/netbsd32_syscalls.c 2023/07/30 06:53:13 1.159
@@ -1,24 +1,24 @@ | @@ -1,24 +1,24 @@ | |||
1 | /* $NetBSD: netbsd32_syscalls.c,v 1.158 2023/07/30 05:31:30 rin Exp $ */ | 1 | /* $NetBSD: netbsd32_syscalls.c,v 1.159 2023/07/30 06:53:13 rin Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * System call names. | 4 | * System call names. | |
5 | * | 5 | * | |
6 | * DO NOT EDIT-- this file is automatically generated. | 6 | * DO NOT EDIT-- this file is automatically generated. | |
7 | * created from NetBSD: syscalls.master,v 1.143 2023/07/30 05:30:45 rin Exp | 7 | * created from NetBSD: syscalls.master,v 1.144 2023/07/30 06:52:20 rin Exp | |
8 | */ | 8 | */ | |
9 | 9 | |||
10 | #include <sys/cdefs.h> | 10 | #include <sys/cdefs.h> | |
11 | __KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.158 2023/07/30 05:31:30 rin Exp $"); | 11 | __KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.159 2023/07/30 06:53:13 rin Exp $"); | |
12 | 12 | |||
13 | #if defined(_KERNEL_OPT) | 13 | #if defined(_KERNEL_OPT) | |
14 | #if defined(_KERNEL_OPT) | 14 | #if defined(_KERNEL_OPT) | |
15 | #include "opt_compat_netbsd.h" | 15 | #include "opt_compat_netbsd.h" | |
16 | #include "opt_ntp.h" | 16 | #include "opt_ntp.h" | |
17 | #include "opt_compat_43.h" | 17 | #include "opt_compat_43.h" | |
18 | #include "opt_quota.h" | 18 | #include "opt_quota.h" | |
19 | #endif | 19 | #endif | |
20 | #include <sys/param.h> | 20 | #include <sys/param.h> | |
21 | #include <sys/systm.h> | 21 | #include <sys/systm.h> | |
22 | #include <sys/signal.h> | 22 | #include <sys/signal.h> | |
23 | #include <sys/mount.h> | 23 | #include <sys/mount.h> | |
24 | #include <sys/syscallargs.h> | 24 | #include <sys/syscallargs.h> | |
@@ -530,29 +530,29 @@ const char *const netbsd32_syscallnames[ | @@ -530,29 +530,29 @@ const char *const netbsd32_syscallnames[ | |||
530 | /* 489 */ "netbsd32___acl_delete_link", | 530 | /* 489 */ "netbsd32___acl_delete_link", | |
531 | /* 490 */ "netbsd32___acl_aclcheck_link", | 531 | /* 490 */ "netbsd32___acl_aclcheck_link", | |
532 | /* 491 */ "netbsd32___acl_get_file", | 532 | /* 491 */ "netbsd32___acl_get_file", | |
533 | /* 492 */ "netbsd32___acl_set_file", | 533 | /* 492 */ "netbsd32___acl_set_file", | |
534 | /* 493 */ "netbsd32___acl_get_fd", | 534 | /* 493 */ "netbsd32___acl_get_fd", | |
535 | /* 494 */ "netbsd32___acl_set_fd", | 535 | /* 494 */ "netbsd32___acl_set_fd", | |
536 | /* 495 */ "netbsd32___acl_delete_file", | 536 | /* 495 */ "netbsd32___acl_delete_file", | |
537 | /* 496 */ "netbsd32___acl_delete_fd", | 537 | /* 496 */ "netbsd32___acl_delete_fd", | |
538 | /* 497 */ "netbsd32___acl_aclcheck_file", | 538 | /* 497 */ "netbsd32___acl_aclcheck_file", | |
539 | /* 498 */ "netbsd32___acl_aclcheck_fd", | 539 | /* 498 */ "netbsd32___acl_aclcheck_fd", | |
540 | /* 499 */ "netbsd32_lpathconf", | 540 | /* 499 */ "netbsd32_lpathconf", | |
541 | /* 500 */ "netbsd32_memfd_create", | 541 | /* 500 */ "netbsd32_memfd_create", | |
542 | /* 501 */ "netbsd32___kevent100", | 542 | /* 501 */ "netbsd32___kevent100", | |
543 | /* 502 */ "#502 (unimplemented epoll_create1)", | 543 | /* 502 */ "netbsd32_epoll_create1", | |
544 | /* 503 */ "#503 (unimplemented epoll_ctl)", | 544 | /* 503 */ "netbsd32_epoll_ctl", | |
545 | /* 504 */ "#504 (unimplemented epoll_pwait2)", | 545 | /* 504 */ "netbsd32_epoll_pwait2", | |
546 | /* 505 */ "# filler", | 546 | /* 505 */ "# filler", | |
547 | /* 506 */ "# filler", | 547 | /* 506 */ "# filler", | |
548 | /* 507 */ "# filler", | 548 | /* 507 */ "# filler", | |
549 | /* 508 */ "# filler", | 549 | /* 508 */ "# filler", | |
550 | /* 509 */ "# filler", | 550 | /* 509 */ "# filler", | |
551 | /* 510 */ "# filler", | 551 | /* 510 */ "# filler", | |
552 | /* 511 */ "# filler", | 552 | /* 511 */ "# filler", | |
553 | }; | 553 | }; | |
554 | 554 | |||
555 | 555 | |||
556 | /* libc style syscall names */ | 556 | /* libc style syscall names */ | |
557 | const char *const altnetbsd32_syscallnames[] = { | 557 | const char *const altnetbsd32_syscallnames[] = { | |
558 | /* 0 */ "syscall", | 558 | /* 0 */ "syscall", | |
@@ -1055,24 +1055,24 @@ const char *const altnetbsd32_syscallnam | @@ -1055,24 +1055,24 @@ const char *const altnetbsd32_syscallnam | |||
1055 | /* 489 */ "__acl_delete_link", | 1055 | /* 489 */ "__acl_delete_link", | |
1056 | /* 490 */ "__acl_aclcheck_link", | 1056 | /* 490 */ "__acl_aclcheck_link", | |
1057 | /* 491 */ "__acl_get_file", | 1057 | /* 491 */ "__acl_get_file", | |
1058 | /* 492 */ "__acl_set_file", | 1058 | /* 492 */ "__acl_set_file", | |
1059 | /* 493 */ "__acl_get_fd", | 1059 | /* 493 */ "__acl_get_fd", | |
1060 | /* 494 */ "__acl_set_fd", | 1060 | /* 494 */ "__acl_set_fd", | |
1061 | /* 495 */ "__acl_delete_file", | 1061 | /* 495 */ "__acl_delete_file", | |
1062 | /* 496 */ "__acl_delete_fd", | 1062 | /* 496 */ "__acl_delete_fd", | |
1063 | /* 497 */ "__acl_aclcheck_file", | 1063 | /* 497 */ "__acl_aclcheck_file", | |
1064 | /* 498 */ "__acl_aclcheck_fd", | 1064 | /* 498 */ "__acl_aclcheck_fd", | |
1065 | /* 499 */ "lpathconf", | 1065 | /* 499 */ "lpathconf", | |
1066 | /* 500 */ "memfd_create", | 1066 | /* 500 */ "memfd_create", | |
1067 | /* 501 */ "kevent", | 1067 | /* 501 */ "kevent", | |
1068 | /* 502 */ NULL, /* unimplemented epoll_create1 */ | 1068 | /* 502 */ "epoll_create1", | |
1069 | /* 503 */ NULL, /* unimplemented epoll_ctl */ | 1069 | /* 503 */ "epoll_ctl", | |
1070 | /* 504 */ NULL, /* unimplemented epoll_pwait2 */ | 1070 | /* 504 */ "epoll_pwait2", | |
1071 | /* 505 */ NULL, /* filler */ | 1071 | /* 505 */ NULL, /* filler */ | |
1072 | /* 506 */ NULL, /* filler */ | 1072 | /* 506 */ NULL, /* filler */ | |
1073 | /* 507 */ NULL, /* filler */ | 1073 | /* 507 */ NULL, /* filler */ | |
1074 | /* 508 */ NULL, /* filler */ | 1074 | /* 508 */ NULL, /* filler */ | |
1075 | /* 509 */ NULL, /* filler */ | 1075 | /* 509 */ NULL, /* filler */ | |
1076 | /* 510 */ NULL, /* filler */ | 1076 | /* 510 */ NULL, /* filler */ | |
1077 | /* 511 */ NULL, /* filler */ | 1077 | /* 511 */ NULL, /* filler */ | |
1078 | }; | 1078 | }; |
--- src/sys/compat/netbsd32/netbsd32_syscalls_autoload.c 2023/07/30 05:31:30 1.38
+++ src/sys/compat/netbsd32/netbsd32_syscalls_autoload.c 2023/07/30 06:53:13 1.39
@@ -1,24 +1,24 @@ | @@ -1,24 +1,24 @@ | |||
1 | /* $NetBSD: netbsd32_syscalls_autoload.c,v 1.38 2023/07/30 05:31:30 rin Exp $ */ | 1 | /* $NetBSD: netbsd32_syscalls_autoload.c,v 1.39 2023/07/30 06:53:13 rin Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * System call autoload table. | 4 | * System call autoload table. | |
5 | * | 5 | * | |
6 | * DO NOT EDIT-- this file is automatically generated. | 6 | * DO NOT EDIT-- this file is automatically generated. | |
7 | * created from NetBSD: syscalls.master,v 1.143 2023/07/30 05:30:45 rin Exp | 7 | * created from NetBSD: syscalls.master,v 1.144 2023/07/30 06:52:20 rin Exp | |
8 | */ | 8 | */ | |
9 | 9 | |||
10 | #include <sys/cdefs.h> | 10 | #include <sys/cdefs.h> | |
11 | __KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.38 2023/07/30 05:31:30 rin Exp $"); | 11 | __KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.39 2023/07/30 06:53:13 rin Exp $"); | |
12 | 12 | |||
13 | #if defined(_KERNEL_OPT) | 13 | #if defined(_KERNEL_OPT) | |
14 | #include "opt_compat_netbsd.h" | 14 | #include "opt_compat_netbsd.h" | |
15 | #include "opt_ntp.h" | 15 | #include "opt_ntp.h" | |
16 | #include "opt_compat_43.h" | 16 | #include "opt_compat_43.h" | |
17 | #include "opt_quota.h" | 17 | #include "opt_quota.h" | |
18 | #endif | 18 | #endif | |
19 | #include <sys/param.h> | 19 | #include <sys/param.h> | |
20 | #include <sys/systm.h> | 20 | #include <sys/systm.h> | |
21 | #include <sys/signal.h> | 21 | #include <sys/signal.h> | |
22 | #include <sys/mount.h> | 22 | #include <sys/mount.h> | |
23 | #include <sys/syscallargs.h> | 23 | #include <sys/syscallargs.h> | |
24 | #include <compat/netbsd32/netbsd32.h> | 24 | #include <compat/netbsd32/netbsd32.h> |
--- src/sys/compat/netbsd32/netbsd32_sysent.c 2023/07/30 05:31:30 1.157
+++ src/sys/compat/netbsd32/netbsd32_sysent.c 2023/07/30 06:53:13 1.158
@@ -1,24 +1,24 @@ | @@ -1,24 +1,24 @@ | |||
1 | /* $NetBSD: netbsd32_sysent.c,v 1.157 2023/07/30 05:31:30 rin Exp $ */ | 1 | /* $NetBSD: netbsd32_sysent.c,v 1.158 2023/07/30 06:53:13 rin Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * System call switch table. | 4 | * System call switch table. | |
5 | * | 5 | * | |
6 | * DO NOT EDIT-- this file is automatically generated. | 6 | * DO NOT EDIT-- this file is automatically generated. | |
7 | * created from NetBSD: syscalls.master,v 1.143 2023/07/30 05:30:45 rin Exp | 7 | * created from NetBSD: syscalls.master,v 1.144 2023/07/30 06:52:20 rin Exp | |
8 | */ | 8 | */ | |
9 | 9 | |||
10 | #include <sys/cdefs.h> | 10 | #include <sys/cdefs.h> | |
11 | __KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.157 2023/07/30 05:31:30 rin Exp $"); | 11 | __KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.158 2023/07/30 06:53:13 rin Exp $"); | |
12 | 12 | |||
13 | #if defined(_KERNEL_OPT) | 13 | #if defined(_KERNEL_OPT) | |
14 | #include "opt_compat_netbsd.h" | 14 | #include "opt_compat_netbsd.h" | |
15 | #include "opt_ntp.h" | 15 | #include "opt_ntp.h" | |
16 | #include "opt_compat_43.h" | 16 | #include "opt_compat_43.h" | |
17 | #include "opt_quota.h" | 17 | #include "opt_quota.h" | |
18 | #endif | 18 | #endif | |
19 | #include <sys/param.h> | 19 | #include <sys/param.h> | |
20 | #include <sys/systm.h> | 20 | #include <sys/systm.h> | |
21 | #include <sys/signal.h> | 21 | #include <sys/signal.h> | |
22 | #include <sys/mount.h> | 22 | #include <sys/mount.h> | |
23 | #include <sys/syscallargs.h> | 23 | #include <sys/syscallargs.h> | |
24 | #include <compat/netbsd32/netbsd32.h> | 24 | #include <compat/netbsd32/netbsd32.h> | |
@@ -2070,34 +2070,37 @@ struct sysent netbsd32_sysent[] = { | @@ -2070,34 +2070,37 @@ struct sysent netbsd32_sysent[] = { | |||
2070 | { | 2070 | { | |
2071 | ns(struct netbsd32_lpathconf_args), | 2071 | ns(struct netbsd32_lpathconf_args), | |
2072 | .sy_call = (sy_call_t *)netbsd32_lpathconf | 2072 | .sy_call = (sy_call_t *)netbsd32_lpathconf | |
2073 | }, /* 499 = netbsd32_lpathconf */ | 2073 | }, /* 499 = netbsd32_lpathconf */ | |
2074 | { | 2074 | { | |
2075 | ns(struct netbsd32_memfd_create_args), | 2075 | ns(struct netbsd32_memfd_create_args), | |
2076 | .sy_call = (sy_call_t *)netbsd32_memfd_create | 2076 | .sy_call = (sy_call_t *)netbsd32_memfd_create | |
2077 | }, /* 500 = netbsd32_memfd_create */ | 2077 | }, /* 500 = netbsd32_memfd_create */ | |
2078 | { | 2078 | { | |
2079 | ns(struct netbsd32___kevent100_args), | 2079 | ns(struct netbsd32___kevent100_args), | |
2080 | .sy_call = (sy_call_t *)netbsd32___kevent100 | 2080 | .sy_call = (sy_call_t *)netbsd32___kevent100 | |
2081 | }, /* 501 = netbsd32___kevent100 */ | 2081 | }, /* 501 = netbsd32___kevent100 */ | |
2082 | { | 2082 | { | |
2083 | .sy_call = sys_nosys, | 2083 | ns(struct netbsd32_epoll_create1_args), | |
2084 | }, /* 502 = filler */ | 2084 | .sy_call = (sy_call_t *)netbsd32_epoll_create1 | |
2085 | { | 2085 | }, /* 502 = netbsd32_epoll_create1 */ | |
2086 | .sy_call = sys_nosys, | 2086 | { | |
2087 | }, /* 503 = filler */ | 2087 | ns(struct netbsd32_epoll_ctl_args), | |
2088 | { | 2088 | .sy_call = (sy_call_t *)netbsd32_epoll_ctl | |
2089 | .sy_call = sys_nosys, | 2089 | }, /* 503 = netbsd32_epoll_ctl */ | |
2090 | }, /* 504 = filler */ | 2090 | { | |
2091 | ns(struct netbsd32_epoll_pwait2_args), | |||
2092 | .sy_call = (sy_call_t *)netbsd32_epoll_pwait2 | |||
2093 | }, /* 504 = netbsd32_epoll_pwait2 */ | |||
2091 | { | 2094 | { | |
2092 | .sy_call = sys_nosys, | 2095 | .sy_call = sys_nosys, | |
2093 | }, /* 505 = filler */ | 2096 | }, /* 505 = filler */ | |
2094 | { | 2097 | { | |
2095 | .sy_call = sys_nosys, | 2098 | .sy_call = sys_nosys, | |
2096 | }, /* 506 = filler */ | 2099 | }, /* 506 = filler */ | |
2097 | { | 2100 | { | |
2098 | .sy_call = sys_nosys, | 2101 | .sy_call = sys_nosys, | |
2099 | }, /* 507 = filler */ | 2102 | }, /* 507 = filler */ | |
2100 | { | 2103 | { | |
2101 | .sy_call = sys_nosys, | 2104 | .sy_call = sys_nosys, | |
2102 | }, /* 508 = filler */ | 2105 | }, /* 508 = filler */ | |
2103 | { | 2106 | { |
--- src/sys/compat/netbsd32/netbsd32_systrace_args.c 2023/07/30 05:31:30 1.51
+++ src/sys/compat/netbsd32/netbsd32_systrace_args.c 2023/07/30 06:53:13 1.52
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: netbsd32_systrace_args.c,v 1.51 2023/07/30 05:31:30 rin Exp $ */ | 1 | /* $NetBSD: netbsd32_systrace_args.c,v 1.52 2023/07/30 06:53:13 rin Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * System call argument to DTrace register array conversion. | 4 | * System call argument to DTrace register array conversion. | |
5 | * | 5 | * | |
6 | * DO NOT EDIT-- this file is automatically generated. | 6 | * DO NOT EDIT-- this file is automatically generated. | |
7 | * This file is part of the DTrace syscall provider. | 7 | * This file is part of the DTrace syscall provider. | |
8 | */ | 8 | */ | |
9 | 9 | |||
10 | static void | 10 | static void | |
11 | systrace_args(register_t sysnum, const void *params, uintptr_t *uarg, size_t *n_args) | 11 | systrace_args(register_t sysnum, const void *params, uintptr_t *uarg, size_t *n_args) | |
12 | { | 12 | { | |
13 | intptr_t *iarg = (intptr_t *)uarg; | 13 | intptr_t *iarg = (intptr_t *)uarg; | |
14 | switch (sysnum) { | 14 | switch (sysnum) { | |
@@ -3714,26 +3714,54 @@ systrace_args(register_t sysnum, const v | @@ -3714,26 +3714,54 @@ systrace_args(register_t sysnum, const v | |||
3714 | } | 3714 | } | |
3715 | /* netbsd32___kevent100 */ | 3715 | /* netbsd32___kevent100 */ | |
3716 | case 501: { | 3716 | case 501: { | |
3717 | const struct netbsd32___kevent100_args *p = params; | 3717 | const struct netbsd32___kevent100_args *p = params; | |
3718 | iarg[0] = SCARG(p, fd); /* int */ | 3718 | iarg[0] = SCARG(p, fd); /* int */ | |
3719 | uarg[1] = (intptr_t) SCARG(p, changelist).i32; /* const netbsd32_keventp_t */ | 3719 | uarg[1] = (intptr_t) SCARG(p, changelist).i32; /* const netbsd32_keventp_t */ | |
3720 | iarg[2] = SCARG(p, nchanges); /* netbsd32_size_t */ | 3720 | iarg[2] = SCARG(p, nchanges); /* netbsd32_size_t */ | |
3721 | uarg[3] = (intptr_t) SCARG(p, eventlist).i32; /* netbsd32_keventp_t */ | 3721 | uarg[3] = (intptr_t) SCARG(p, eventlist).i32; /* netbsd32_keventp_t */ | |
3722 | iarg[4] = SCARG(p, nevents); /* netbsd32_size_t */ | 3722 | iarg[4] = SCARG(p, nevents); /* netbsd32_size_t */ | |
3723 | uarg[5] = (intptr_t) SCARG(p, timeout).i32; /* const netbsd32_timespecp_t */ | 3723 | uarg[5] = (intptr_t) SCARG(p, timeout).i32; /* const netbsd32_timespecp_t */ | |
3724 | *n_args = 6; | 3724 | *n_args = 6; | |
3725 | break; | 3725 | break; | |
3726 | } | 3726 | } | |
3727 | /* netbsd32_epoll_create1 */ | |||
3728 | case 502: { | |||
3729 | const struct netbsd32_epoll_create1_args *p = params; | |||
3730 | iarg[0] = SCARG(p, flags); /* int */ | |||
3731 | *n_args = 1; | |||
3732 | break; | |||
3733 | } | |||
3734 | /* netbsd32_epoll_ctl */ | |||
3735 | case 503: { | |||
3736 | const struct netbsd32_epoll_ctl_args *p = params; | |||
3737 | iarg[0] = SCARG(p, epfd); /* int */ | |||
3738 | iarg[1] = SCARG(p, op); /* int */ | |||
3739 | iarg[2] = SCARG(p, fd); /* int */ | |||
3740 | uarg[3] = (intptr_t) SCARG(p, event).i32; /* netbsd32_epoll_eventp_t */ | |||
3741 | *n_args = 4; | |||
3742 | break; | |||
3743 | } | |||
3744 | /* netbsd32_epoll_pwait2 */ | |||
3745 | case 504: { | |||
3746 | const struct netbsd32_epoll_pwait2_args *p = params; | |||
3747 | iarg[0] = SCARG(p, epfd); /* int */ | |||
3748 | uarg[1] = (intptr_t) SCARG(p, events).i32; /* netbsd32_epoll_eventp_t */ | |||
3749 | iarg[2] = SCARG(p, maxevents); /* int */ | |||
3750 | uarg[3] = (intptr_t) SCARG(p, timeout).i32; /* netbsd32_timespecp_t */ | |||
3751 | uarg[4] = (intptr_t) SCARG(p, sigmask).i32; /* netbsd32_sigsetp_t */ | |||
3752 | *n_args = 5; | |||
3753 | break; | |||
3754 | } | |||
3727 | default: | 3755 | default: | |
3728 | *n_args = 0; | 3756 | *n_args = 0; | |
3729 | break; | 3757 | break; | |
3730 | }; | 3758 | }; | |
3731 | } | 3759 | } | |
3732 | static void | 3760 | static void | |
3733 | systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz) | 3761 | systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz) | |
3734 | { | 3762 | { | |
3735 | const char *p = NULL; | 3763 | const char *p = NULL; | |
3736 | switch (sysnum) { | 3764 | switch (sysnum) { | |
3737 | /* netbsd32_syscall */ | 3765 | /* netbsd32_syscall */ | |
3738 | case 0: | 3766 | case 0: | |
3739 | switch(ndx) { | 3767 | switch(ndx) { | |
@@ -10071,26 +10099,77 @@ systrace_entry_setargdesc(int sysnum, in | @@ -10071,26 +10099,77 @@ systrace_entry_setargdesc(int sysnum, in | |||
10071 | case 3: | 10099 | case 3: | |
10072 | p = "netbsd32_keventp_t"; | 10100 | p = "netbsd32_keventp_t"; | |
10073 | break; | 10101 | break; | |
10074 | case 4: | 10102 | case 4: | |
10075 | p = "netbsd32_size_t"; | 10103 | p = "netbsd32_size_t"; | |
10076 | break; | 10104 | break; | |
10077 | case 5: | 10105 | case 5: | |
10078 | p = "const netbsd32_timespecp_t"; | 10106 | p = "const netbsd32_timespecp_t"; | |
10079 | break; | 10107 | break; | |
10080 | default: | 10108 | default: | |
10081 | break; | 10109 | break; | |
10082 | }; | 10110 | }; | |
10083 | break; | 10111 | break; | |
10112 | /* netbsd32_epoll_create1 */ | |||
10113 | case 502: | |||
10114 | switch(ndx) { | |||
10115 | case 0: | |||
10116 | p = "int"; | |||
10117 | break; | |||
10118 | default: | |||
10119 | break; | |||
10120 | }; | |||
10121 | break; | |||
10122 | /* netbsd32_epoll_ctl */ | |||
10123 | case 503: | |||
10124 | switch(ndx) { | |||
10125 | case 0: | |||
10126 | p = "int"; | |||
10127 | break; | |||
10128 | case 1: | |||
10129 | p = "int"; | |||
10130 | break; | |||
10131 | case 2: | |||
10132 | p = "int"; | |||
10133 | break; | |||
10134 | case 3: | |||
10135 | p = "netbsd32_epoll_eventp_t"; | |||
10136 | break; | |||
10137 | default: | |||
10138 | break; | |||
10139 | }; | |||
10140 | break; | |||
10141 | /* netbsd32_epoll_pwait2 */ | |||
10142 | case 504: | |||
10143 | switch(ndx) { | |||
10144 | case 0: | |||
10145 | p = "int"; | |||
10146 | break; | |||
10147 | case 1: | |||
10148 | p = "netbsd32_epoll_eventp_t"; | |||
10149 | break; | |||
10150 | case 2: | |||
10151 | p = "int"; | |||
10152 | break; | |||
10153 | case 3: | |||
10154 | p = "netbsd32_timespecp_t"; | |||
10155 | break; | |||
10156 | case 4: | |||
10157 | p = "netbsd32_sigsetp_t"; | |||
10158 | break; | |||
10159 | default: | |||
10160 | break; | |||
10161 | }; | |||
10162 | break; | |||
10084 | default: | 10163 | default: | |
10085 | break; | 10164 | break; | |
10086 | }; | 10165 | }; | |
10087 | if (p != NULL) | 10166 | if (p != NULL) | |
10088 | strlcpy(desc, p, descsz); | 10167 | strlcpy(desc, p, descsz); | |
10089 | } | 10168 | } | |
10090 | static void | 10169 | static void | |
10091 | systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz) | 10170 | systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz) | |
10092 | { | 10171 | { | |
10093 | const char *p = NULL; | 10172 | const char *p = NULL; | |
10094 | switch (sysnum) { | 10173 | switch (sysnum) { | |
10095 | /* netbsd32_syscall */ | 10174 | /* netbsd32_syscall */ | |
10096 | case 0: | 10175 | case 0: | |
@@ -12173,19 +12252,34 @@ systrace_return_setargdesc(int sysnum, i | @@ -12173,19 +12252,34 @@ systrace_return_setargdesc(int sysnum, i | |||
12173 | if (ndx == 0 || ndx == 1) | 12252 | if (ndx == 0 || ndx == 1) | |
12174 | p = "long"; | 12253 | p = "long"; | |
12175 | break; | 12254 | break; | |
12176 | /* netbsd32_memfd_create */ | 12255 | /* netbsd32_memfd_create */ | |
12177 | case 500: | 12256 | case 500: | |
12178 | if (ndx == 0 || ndx == 1) | 12257 | if (ndx == 0 || ndx == 1) | |
12179 | p = "int"; | 12258 | p = "int"; | |
12180 | break; | 12259 | break; | |
12181 | /* netbsd32___kevent100 */ | 12260 | /* netbsd32___kevent100 */ | |
12182 | case 501: | 12261 | case 501: | |
12183 | if (ndx == 0 || ndx == 1) | 12262 | if (ndx == 0 || ndx == 1) | |
12184 | p = "int"; | 12263 | p = "int"; | |
12185 | break; | 12264 | break; | |
12265 | /* netbsd32_epoll_create1 */ | |||
12266 | case 502: | |||
12267 | if (ndx == 0 || ndx == 1) | |||
12268 | p = "int"; | |||
12269 | break; | |||
12270 | /* netbsd32_epoll_ctl */ | |||
12271 | case 503: | |||
12272 | if (ndx == 0 || ndx == 1) | |||
12273 | p = "int"; | |||
12274 | break; | |||
12275 | /* netbsd32_epoll_pwait2 */ | |||
12276 | case 504: | |||
12277 | if (ndx == 0 || ndx == 1) | |||
12278 | p = "int"; | |||
12279 | break; | |||
12186 | default: | 12280 | default: | |
12187 | break; | 12281 | break; | |
12188 | }; | 12282 | }; | |
12189 | if (p != NULL) | 12283 | if (p != NULL) | |
12190 | strlcpy(desc, p, descsz); | 12284 | strlcpy(desc, p, descsz); | |
12191 | } | 12285 | } |