Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/arch regen



details:   https://anonhg.NetBSD.org/src/rev/ca8e1dc29644
branches:  trunk
changeset: 378265:ca8e1dc29644
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jul 28 19:01:44 2023 +0000

description:
regen

diffstat:

 sys/compat/linux/arch/aarch64/linux_syscall.h       |    18 +-
 sys/compat/linux/arch/aarch64/linux_syscallargs.h   |    43 +-
 sys/compat/linux/arch/aarch64/linux_syscalls.c      |    22 +-
 sys/compat/linux/arch/aarch64/linux_sysent.c        |    33 +-
 sys/compat/linux/arch/aarch64/linux_systrace_args.c |   134 +-
 sys/compat/linux/arch/alpha/linux_syscall.h         |    26 +-
 sys/compat/linux/arch/alpha/linux_syscallargs.h     |    60 +-
 sys/compat/linux/arch/alpha/linux_syscalls.c        |  1054 ++++++++++++-
 sys/compat/linux/arch/alpha/linux_sysent.c          |  1592 ++++++++++++++++++-
 sys/compat/linux/arch/arm/linux_syscall.h           |    24 +-
 sys/compat/linux/arch/arm/linux_syscallargs.h       |    60 +-
 sys/compat/linux/arch/arm/linux_syscalls.c          |   234 +-
 sys/compat/linux/arch/arm/linux_sysent.c            |    44 +-
 sys/compat/linux/arch/arm/linux_systrace_args.c     |   190 ++-
 sys/compat/linux/arch/i386/linux_syscall.h          |    24 +-
 sys/compat/linux/arch/i386/linux_syscallargs.h      |    60 +-
 sys/compat/linux/arch/i386/linux_syscalls.c         |    30 +-
 sys/compat/linux/arch/i386/linux_sysent.c           |    44 +-
 sys/compat/linux/arch/i386/linux_systrace_args.c    |   190 ++-
 sys/compat/linux/arch/m68k/linux_syscall.h          |    24 +-
 sys/compat/linux/arch/m68k/linux_syscallargs.h      |    60 +-
 sys/compat/linux/arch/m68k/linux_syscalls.c         |   278 +-
 sys/compat/linux/arch/m68k/linux_sysent.c           |    44 +-
 sys/compat/linux/arch/mips/linux_syscall.h          |    24 +-
 sys/compat/linux/arch/mips/linux_syscallargs.h      |    60 +-
 sys/compat/linux/arch/mips/linux_syscalls.c         |   326 +-
 sys/compat/linux/arch/mips/linux_sysent.c           |    44 +-
 sys/compat/linux/arch/powerpc/linux_syscall.h       |    24 +-
 sys/compat/linux/arch/powerpc/linux_syscallargs.h   |    60 +-
 sys/compat/linux/arch/powerpc/linux_syscalls.c      |   262 +-
 sys/compat/linux/arch/powerpc/linux_sysent.c        |    44 +-
 31 files changed, 4389 insertions(+), 743 deletions(-)

diffs (truncated from 6814 to 300 lines):

diff -r 489ed1646952 -r ca8e1dc29644 sys/compat/linux/arch/aarch64/linux_syscall.h
--- a/sys/compat/linux/arch/aarch64/linux_syscall.h     Fri Jul 28 19:01:10 2023 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_syscall.h     Fri Jul 28 19:01:44 2023 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.5 2023/07/10 21:08:37 christos Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.6 2023/07/28 19:01:44 christos Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.5 2023/07/10 21:08:26 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.6 2023/07/28 19:01:10 christos Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -54,6 +54,15 @@
 /* syscall: "eventfd2" ret: "int" args: "unsigned int" "int" */
 #define        LINUX_SYS_eventfd2      19
 
+/* syscall: "epoll_create1" ret: "int" args: "int" */
+#define        LINUX_SYS_epoll_create1 20
+
+/* syscall: "epoll_ctl" ret: "int" args: "int" "int" "int" "struct linux_epoll_event *" */
+#define        LINUX_SYS_epoll_ctl     21
+
+/* syscall: "epoll_pwait" ret: "int" args: "int" "struct linux_epoll_event *" "int" "int" "const linux_sigset_t *" */
+#define        LINUX_SYS_epoll_pwait   22
+
 /* syscall: "dup" ret: "int" args: "int" */
 #define        LINUX_SYS_dup   23
 
@@ -597,6 +606,9 @@
 /* syscall: "nosys" ret: "int" args: */
 #define        LINUX_SYS_nosys 440
 
-#define        LINUX_SYS_MAXSYSCALL    441
+/* syscall: "epoll_pwait2" ret: "int" args: "int" "struct linux_epoll_event *" "int" "const struct linux_timespec *" "const linux_sigset_t *" */
+#define        LINUX_SYS_epoll_pwait2  441
+
+#define        LINUX_SYS_MAXSYSCALL    442
 #define        LINUX_SYS_NSYSENT       512
 #endif /* _LINUX_SYS_SYSCALL_H_ */
diff -r 489ed1646952 -r ca8e1dc29644 sys/compat/linux/arch/aarch64/linux_syscallargs.h
--- a/sys/compat/linux/arch/aarch64/linux_syscallargs.h Fri Jul 28 19:01:10 2023 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_syscallargs.h Fri Jul 28 19:01:44 2023 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.5 2023/07/10 21:08:37 christos Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.6 2023/07/28 19:01:44 christos Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.5 2023/07/10 21:08:26 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.6 2023/07/28 19:01:10 christos Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -132,6 +132,28 @@ struct linux_sys_eventfd2_args {
 };
 check_syscall_args(linux_sys_eventfd2)
 
+struct linux_sys_epoll_create1_args {
+       syscallarg(int) flags;
+};
+check_syscall_args(linux_sys_epoll_create1)
+
+struct linux_sys_epoll_ctl_args {
+       syscallarg(int) epfd;
+       syscallarg(int) op;
+       syscallarg(int) fd;
+       syscallarg(struct linux_epoll_event *) event;
+};
+check_syscall_args(linux_sys_epoll_ctl)
+
+struct linux_sys_epoll_pwait_args {
+       syscallarg(int) epfd;
+       syscallarg(struct linux_epoll_event *) events;
+       syscallarg(int) maxevents;
+       syscallarg(int) timeout;
+       syscallarg(const linux_sigset_t *) sigmask;
+};
+check_syscall_args(linux_sys_epoll_pwait)
+
 struct sys_dup_args;
 
 struct linux_sys_dup3_args {
@@ -990,6 +1012,15 @@ struct linux_sys_statx_args {
 };
 check_syscall_args(linux_sys_statx)
 
+struct linux_sys_epoll_pwait2_args {
+       syscallarg(int) epfd;
+       syscallarg(struct linux_epoll_event *) events;
+       syscallarg(int) maxevents;
+       syscallarg(const struct linux_timespec *) timeout;
+       syscallarg(const linux_sigset_t *) sigmask;
+};
+check_syscall_args(linux_sys_epoll_pwait2)
+
 /*
  * System call prototypes.
  */
@@ -1022,6 +1053,12 @@ int      sys___getcwd(struct lwp *, const str
 
 int    linux_sys_eventfd2(struct lwp *, const struct linux_sys_eventfd2_args *, register_t *);
 
+int    linux_sys_epoll_create1(struct lwp *, const struct linux_sys_epoll_create1_args *, register_t *);
+
+int    linux_sys_epoll_ctl(struct lwp *, const struct linux_sys_epoll_ctl_args *, register_t *);
+
+int    linux_sys_epoll_pwait(struct lwp *, const struct linux_sys_epoll_pwait_args *, register_t *);
+
 int    sys_dup(struct lwp *, const struct sys_dup_args *, register_t *);
 
 int    linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *);
@@ -1387,4 +1424,6 @@ int       linux_sys_statx(struct lwp *, const 
 
 int    linux_sys_nosys(struct lwp *, const void *, register_t *);
 
+int    linux_sys_epoll_pwait2(struct lwp *, const struct linux_sys_epoll_pwait2_args *, register_t *);
+
 #endif /* _LINUX_SYS_SYSCALLARGS_H_ */
diff -r 489ed1646952 -r ca8e1dc29644 sys/compat/linux/arch/aarch64/linux_syscalls.c
--- a/sys/compat/linux/arch/aarch64/linux_syscalls.c    Fri Jul 28 19:01:10 2023 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_syscalls.c    Fri Jul 28 19:01:44 2023 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.5 2023/07/10 21:08:37 christos Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.6 2023/07/28 19:01:44 christos Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.5 2023/07/10 21:08:26 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.6 2023/07/28 19:01:10 christos Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.5 2023/07/10 21:08:37 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.6 2023/07/28 19:01:44 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -60,9 +60,9 @@ const char *const linux_syscallnames[] =
        /*  17 */       "__getcwd",
        /*  18 */       "#18 (unimplemented lookup_dcookie)",
        /*  19 */       "eventfd2",
-       /*  20 */       "#20 (unimplemented epoll_create1)",
-       /*  21 */       "#21 (unimplemented epoll_ctl)",
-       /*  22 */       "#22 (unimplemented epoll_pwait)",
+       /*  20 */       "epoll_create1",
+       /*  21 */       "epoll_ctl",
+       /*  22 */       "epoll_pwait",
        /*  23 */       "dup",
        /*  24 */       "dup3",
        /*  25 */       "fcntl",
@@ -502,7 +502,7 @@ const char *const linux_syscallnames[] =
        /* 438 */       "#438 (unimplemented pidfd_getfd)",
        /* 439 */       "#439 (unimplemented faccessat2)",
        /* 440 */       "nosys",
-       /* 441 */       "# filler",
+       /* 441 */       "epoll_pwait2",
        /* 442 */       "# filler",
        /* 443 */       "# filler",
        /* 444 */       "# filler",
@@ -598,9 +598,9 @@ const char *const altlinux_syscallnames[
        /*  17 */       NULL, /* __getcwd */
        /*  18 */       NULL, /* unimplemented lookup_dcookie */
        /*  19 */       NULL, /* eventfd2 */
-       /*  20 */       NULL, /* unimplemented epoll_create1 */
-       /*  21 */       NULL, /* unimplemented epoll_ctl */
-       /*  22 */       NULL, /* unimplemented epoll_pwait */
+       /*  20 */       NULL, /* epoll_create1 */
+       /*  21 */       NULL, /* epoll_ctl */
+       /*  22 */       NULL, /* epoll_pwait */
        /*  23 */       NULL, /* dup */
        /*  24 */       NULL, /* dup3 */
        /*  25 */       NULL, /* fcntl */
@@ -1040,7 +1040,7 @@ const char *const altlinux_syscallnames[
        /* 438 */       NULL, /* unimplemented pidfd_getfd */
        /* 439 */       NULL, /* unimplemented faccessat2 */
        /* 440 */       NULL, /* nosys */
-       /* 441 */       NULL, /* filler */
+       /* 441 */       NULL, /* epoll_pwait2 */
        /* 442 */       NULL, /* filler */
        /* 443 */       NULL, /* filler */
        /* 444 */       NULL, /* filler */
diff -r 489ed1646952 -r ca8e1dc29644 sys/compat/linux/arch/aarch64/linux_sysent.c
--- a/sys/compat/linux/arch/aarch64/linux_sysent.c      Fri Jul 28 19:01:10 2023 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_sysent.c      Fri Jul 28 19:01:44 2023 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.5 2023/07/10 21:08:37 christos Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.6 2023/07/28 19:01:44 christos Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.5 2023/07/10 21:08:26 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.6 2023/07/28 19:01:10 christos Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.5 2023/07/10 21:08:37 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.6 2023/07/28 19:01:44 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sysv.h"
@@ -128,14 +128,19 @@ struct sysent linux_sysent[] = {
                .sy_call = (sy_call_t *)linux_sys_eventfd2
        },              /* 19 = eventfd2 */
        {
-               .sy_call = linux_sys_nosys,
-       },              /* 20 = filler */
-       {
-               .sy_call = linux_sys_nosys,
-       },              /* 21 = filler */
-       {
-               .sy_call = linux_sys_nosys,
-       },              /* 22 = filler */
+               ns(struct linux_sys_epoll_create1_args),
+               .sy_call = (sy_call_t *)linux_sys_epoll_create1
+       },              /* 20 = epoll_create1 */
+       {
+               ns(struct linux_sys_epoll_ctl_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_epoll_ctl
+       },              /* 21 = epoll_ctl */
+       {
+               ns(struct linux_sys_epoll_pwait_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_epoll_pwait
+       },              /* 22 = epoll_pwait */
        {
                ns(struct sys_dup_args),
                .sy_call = (sy_call_t *)sys_dup
@@ -1720,8 +1725,10 @@ struct sysent linux_sysent[] = {
                .sy_call = (sy_call_t *)linux_sys_nosys
        },              /* 440 = nosys */
        {
-               .sy_call = linux_sys_nosys,
-       },              /* 441 = filler */
+               ns(struct linux_sys_epoll_pwait2_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_epoll_pwait2
+       },              /* 441 = epoll_pwait2 */
        {
                .sy_call = linux_sys_nosys,
        },              /* 442 = filler */
diff -r 489ed1646952 -r ca8e1dc29644 sys/compat/linux/arch/aarch64/linux_systrace_args.c
--- a/sys/compat/linux/arch/aarch64/linux_systrace_args.c       Fri Jul 28 19:01:10 2023 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_systrace_args.c       Fri Jul 28 19:01:44 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_systrace_args.c,v 1.5 2023/07/10 21:08:37 christos Exp $ */
+/* $NetBSD: linux_systrace_args.c,v 1.6 2023/07/28 19:01:44 christos Exp $ */
 
 /*
  * System call argument to DTrace register array conversion.
@@ -142,6 +142,34 @@ systrace_args(register_t sysnum, const v
                *n_args = 2;
                break;
        }
+       /* linux_sys_epoll_create1 */
+       case 20: {
+               const struct linux_sys_epoll_create1_args *p = params;
+               iarg[0] = SCARG(p, flags); /* int */
+               *n_args = 1;
+               break;
+       }
+       /* linux_sys_epoll_ctl */
+       case 21: {
+               const struct linux_sys_epoll_ctl_args *p = params;
+               iarg[0] = SCARG(p, epfd); /* int */
+               iarg[1] = SCARG(p, op); /* int */
+               iarg[2] = SCARG(p, fd); /* int */
+               uarg[3] = (intptr_t) SCARG(p, event); /* struct linux_epoll_event * */
+               *n_args = 4;
+               break;
+       }
+       /* linux_sys_epoll_pwait */
+       case 22: {
+               const struct linux_sys_epoll_pwait_args *p = params;
+               iarg[0] = SCARG(p, epfd); /* int */
+               uarg[1] = (intptr_t) SCARG(p, events); /* struct linux_epoll_event * */
+               iarg[2] = SCARG(p, maxevents); /* int */
+               iarg[3] = SCARG(p, timeout); /* int */
+               uarg[4] = (intptr_t) SCARG(p, sigmask); /* const linux_sigset_t * */
+               *n_args = 5;
+               break;
+       }
        /* sys_dup */
        case 23: {
                const struct sys_dup_args *p = params;
@@ -1654,6 +1682,17 @@ systrace_args(register_t sysnum, const v
                *n_args = 0;
                break;
        }
+       /* linux_sys_epoll_pwait2 */



Home | Main Index | Thread Index | Old Index