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/84233fa14a1a
branches:  trunk
changeset: 1026427:84233fa14a1a
user:      ryo <ryo%NetBSD.org@localhost>
date:      Wed Nov 24 18:57:24 2021 +0000

description:
regen

diffstat:

 sys/compat/linux/arch/aarch64/linux_syscall.h       |   7 +++-
 sys/compat/linux/arch/aarch64/linux_syscallargs.h   |   8 +++-
 sys/compat/linux/arch/aarch64/linux_syscalls.c      |  10 +++---
 sys/compat/linux/arch/aarch64/linux_sysent.c        |  12 ++++---
 sys/compat/linux/arch/aarch64/linux_systrace_args.c |  32 ++++++++++++++++++++-
 sys/compat/linux/arch/arm/linux_syscall.h           |   2 +-
 sys/compat/linux/arch/arm/linux_syscallargs.h       |   2 +-
 sys/compat/linux/arch/arm/linux_syscalls.c          |   4 +-
 sys/compat/linux/arch/arm/linux_sysent.c            |   4 +-
 sys/compat/linux/arch/arm/linux_systrace_args.c     |   2 +-
 sys/compat/linux/arch/m68k/linux_syscall.h          |   5 ++-
 sys/compat/linux/arch/m68k/linux_syscallargs.h      |   6 +++-
 sys/compat/linux/arch/m68k/linux_syscalls.c         |   8 ++--
 sys/compat/linux/arch/m68k/linux_sysent.c           |  10 +++--
 sys/compat/linux/arch/mips/linux_syscall.h          |   5 ++-
 sys/compat/linux/arch/mips/linux_syscallargs.h      |   6 +++-
 sys/compat/linux/arch/mips/linux_syscalls.c         |   8 ++--
 sys/compat/linux/arch/mips/linux_sysent.c           |  10 +++--
 sys/compat/linux/arch/powerpc/linux_syscall.h       |   5 ++-
 sys/compat/linux/arch/powerpc/linux_syscallargs.h   |   6 +++-
 sys/compat/linux/arch/powerpc/linux_syscalls.c      |   8 ++--
 sys/compat/linux/arch/powerpc/linux_sysent.c        |  10 +++--
 22 files changed, 118 insertions(+), 52 deletions(-)

diffs (truncated from 591 to 300 lines):

diff -r 7aa4034d7785 -r 84233fa14a1a sys/compat/linux/arch/aarch64/linux_syscall.h
--- a/sys/compat/linux/arch/aarch64/linux_syscall.h     Wed Nov 24 18:52:13 2021 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_syscall.h     Wed Nov 24 18:57:24 2021 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.1 2021/09/23 06:56:27 ryo Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.2 2021/11/24 18:57:24 ryo Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD
+ * created from        NetBSD: syscalls.master,v 1.1 2021/09/23 06:56:27 ryo Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -582,6 +582,9 @@
 /* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */
 #define        LINUX_SYS_sendmmsg      269
 
+/* syscall: "getrandom" ret: "ssize_t" args: "void *" "size_t" "unsigned int" */
+#define        LINUX_SYS_getrandom     278
+
 /* syscall: "nosys" ret: "int" args: */
 #define        LINUX_SYS_nosys 440
 
diff -r 7aa4034d7785 -r 84233fa14a1a sys/compat/linux/arch/aarch64/linux_syscallargs.h
--- a/sys/compat/linux/arch/aarch64/linux_syscallargs.h Wed Nov 24 18:52:13 2021 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_syscallargs.h Wed Nov 24 18:57:24 2021 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.1 2021/09/23 06:56:27 ryo Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.2 2021/11/24 18:57:24 ryo Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD
+ * created from        NetBSD: syscalls.master,v 1.1 2021/09/23 06:56:27 ryo Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -965,6 +965,8 @@
 };
 check_syscall_args(linux_sys_sendmmsg)
 
+struct sys_getrandom_args;
+
 /*
  * System call prototypes.
  */
@@ -1352,6 +1354,8 @@
 
 int    linux_sys_sendmmsg(struct lwp *, const struct linux_sys_sendmmsg_args *, register_t *);
 
+int    sys_getrandom(struct lwp *, const struct sys_getrandom_args *, register_t *);
+
 int    linux_sys_nosys(struct lwp *, const void *, register_t *);
 
 #endif /* _LINUX_SYS_SYSCALLARGS_H_ */
diff -r 7aa4034d7785 -r 84233fa14a1a sys/compat/linux/arch/aarch64/linux_syscalls.c
--- a/sys/compat/linux/arch/aarch64/linux_syscalls.c    Wed Nov 24 18:52:13 2021 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_syscalls.c    Wed Nov 24 18:57:24 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.1 2021/09/23 06:56:27 ryo Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.2 2021/11/24 18:57:24 ryo Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD
+ * created from        NetBSD: syscalls.master,v 1.1 2021/09/23 06:56:27 ryo Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.1 2021/09/23 06:56:27 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.2 2021/11/24 18:57:24 ryo Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -339,7 +339,7 @@
        /* 275 */       "#275 (unimplemented sched_getattr)",
        /* 276 */       "#276 (unimplemented renameat2)",
        /* 277 */       "#277 (unimplemented seccomp)",
-       /* 278 */       "#278 (unimplemented getrandom)",
+       /* 278 */       "getrandom",
        /* 279 */       "#279 (unimplemented memfd_create)",
        /* 280 */       "#280 (unimplemented bpf)",
        /* 281 */       "#281 (unimplemented execveat)",
@@ -877,7 +877,7 @@
        /* 275 */       NULL, /* unimplemented sched_getattr */
        /* 276 */       NULL, /* unimplemented renameat2 */
        /* 277 */       NULL, /* unimplemented seccomp */
-       /* 278 */       NULL, /* unimplemented getrandom */
+       /* 278 */       NULL, /* getrandom */
        /* 279 */       NULL, /* unimplemented memfd_create */
        /* 280 */       NULL, /* unimplemented bpf */
        /* 281 */       NULL, /* unimplemented execveat */
diff -r 7aa4034d7785 -r 84233fa14a1a sys/compat/linux/arch/aarch64/linux_sysent.c
--- a/sys/compat/linux/arch/aarch64/linux_sysent.c      Wed Nov 24 18:52:13 2021 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_sysent.c      Wed Nov 24 18:57:24 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.1 2021/09/23 06:56:27 ryo Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.2 2021/11/24 18:57:24 ryo Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD
+ * created from        NetBSD: syscalls.master,v 1.1 2021/09/23 06:56:27 ryo Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.1 2021/09/23 06:56:27 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.2 2021/11/24 18:57:24 ryo Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sysv.h"
@@ -1223,8 +1223,10 @@
                .sy_call = linux_sys_nosys,
        },              /* 277 = filler */
        {
-               .sy_call = linux_sys_nosys,
-       },              /* 278 = filler */
+               ns(struct sys_getrandom_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)sys_getrandom
+       },              /* 278 = getrandom */
        {
                .sy_call = linux_sys_nosys,
        },              /* 279 = filler */
diff -r 7aa4034d7785 -r 84233fa14a1a sys/compat/linux/arch/aarch64/linux_systrace_args.c
--- a/sys/compat/linux/arch/aarch64/linux_systrace_args.c       Wed Nov 24 18:52:13 2021 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_systrace_args.c       Wed Nov 24 18:57:24 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_systrace_args.c,v 1.1 2021/09/23 06:56:27 ryo Exp $ */
+/* $NetBSD: linux_systrace_args.c,v 1.2 2021/11/24 18:57:24 ryo Exp $ */
 
 /*
  * System call argument to DTrace register array conversion.
@@ -1611,6 +1611,15 @@
                *n_args = 4;
                break;
        }
+       /* sys_getrandom */
+       case 278: {
+               const struct sys_getrandom_args *p = params;
+               uarg[0] = (intptr_t) SCARG(p, buf); /* void * */
+               uarg[1] = SCARG(p, buflen); /* size_t */
+               uarg[2] = SCARG(p, flags); /* unsigned int */
+               *n_args = 3;
+               break;
+       }
        /* linux_sys_nosys */
        case 440: {
                *n_args = 0;
@@ -4336,6 +4345,22 @@
                        break;
                };
                break;
+       /* sys_getrandom */
+       case 278:
+               switch(ndx) {
+               case 0:
+                       p = "void *";
+                       break;
+               case 1:
+                       p = "size_t";
+                       break;
+               case 2:
+                       p = "unsigned int";
+                       break;
+               default:
+                       break;
+               };
+               break;
        /* linux_sys_nosys */
        case 440:
                break;
@@ -5258,6 +5283,11 @@
                if (ndx == 0 || ndx == 1)
                        p = "int";
                break;
+       /* sys_getrandom */
+       case 278:
+               if (ndx == 0 || ndx == 1)
+                       p = "ssize_t";
+               break;
        /* linux_sys_nosys */
        case 440:
        default:
diff -r 7aa4034d7785 -r 84233fa14a1a sys/compat/linux/arch/arm/linux_syscall.h
--- a/sys/compat/linux/arch/arm/linux_syscall.h Wed Nov 24 18:52:13 2021 +0000
+++ b/sys/compat/linux/arch/arm/linux_syscall.h Wed Nov 24 18:57:24 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscall.h,v 1.86 2021/09/20 02:20:30 thorpej Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.87 2021/11/24 18:57:24 ryo Exp $ */
 
 /*
  * System call numbers.
diff -r 7aa4034d7785 -r 84233fa14a1a sys/compat/linux/arch/arm/linux_syscallargs.h
--- a/sys/compat/linux/arch/arm/linux_syscallargs.h     Wed Nov 24 18:52:13 2021 +0000
+++ b/sys/compat/linux/arch/arm/linux_syscallargs.h     Wed Nov 24 18:57:24 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscallargs.h,v 1.86 2021/09/20 02:20:30 thorpej Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.87 2021/11/24 18:57:24 ryo Exp $ */
 
 /*
  * System call argument lists.
diff -r 7aa4034d7785 -r 84233fa14a1a sys/compat/linux/arch/arm/linux_syscalls.c
--- a/sys/compat/linux/arch/arm/linux_syscalls.c        Wed Nov 24 18:52:13 2021 +0000
+++ b/sys/compat/linux/arch/arm/linux_syscalls.c        Wed Nov 24 18:57:24 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscalls.c,v 1.86 2021/09/20 02:20:30 thorpej Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.87 2021/11/24 18:57:24 ryo Exp $ */
 
 /*
  * System call names.
@@ -8,7 +8,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.86 2021/09/20 02:20:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.87 2021/11/24 18:57:24 ryo Exp $");
 
 #if defined(_KERNEL_OPT)
 #include <sys/param.h>
diff -r 7aa4034d7785 -r 84233fa14a1a sys/compat/linux/arch/arm/linux_sysent.c
--- a/sys/compat/linux/arch/arm/linux_sysent.c  Wed Nov 24 18:52:13 2021 +0000
+++ b/sys/compat/linux/arch/arm/linux_sysent.c  Wed Nov 24 18:57:24 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_sysent.c,v 1.86 2021/09/20 02:20:30 thorpej Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.87 2021/11/24 18:57:24 ryo Exp $ */
 
 /*
  * System call switch table.
@@ -8,7 +8,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.86 2021/09/20 02:20:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.87 2021/11/24 18:57:24 ryo Exp $");
 
 #include <sys/param.h>
 #include <sys/poll.h>
diff -r 7aa4034d7785 -r 84233fa14a1a sys/compat/linux/arch/arm/linux_systrace_args.c
--- a/sys/compat/linux/arch/arm/linux_systrace_args.c   Wed Nov 24 18:52:13 2021 +0000
+++ b/sys/compat/linux/arch/arm/linux_systrace_args.c   Wed Nov 24 18:57:24 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_systrace_args.c,v 1.19 2021/09/20 02:20:30 thorpej Exp $ */
+/* $NetBSD: linux_systrace_args.c,v 1.20 2021/11/24 18:57:24 ryo Exp $ */
 
 /*
  * System call argument to DTrace register array conversion.
diff -r 7aa4034d7785 -r 84233fa14a1a sys/compat/linux/arch/m68k/linux_syscall.h
--- a/sys/compat/linux/arch/m68k/linux_syscall.h        Wed Nov 24 18:52:13 2021 +0000
+++ b/sys/compat/linux/arch/m68k/linux_syscall.h        Wed Nov 24 18:57:24 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscall.h,v 1.112 2021/09/20 02:20:31 thorpej Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.113 2021/11/24 18:57:25 ryo Exp $ */
 
 /*
  * System call numbers.
@@ -759,6 +759,9 @@
 /* syscall: "pwritev" ret: "int" args: "int" "const struct iovcnt *" "int" "unsigned long" "unsigned long" */
 #define        LINUX_SYS_pwritev       330
 
+/* syscall: "getrandom" ret: "ssize_t" args: "void *" "size_t" "unsigned int" */
+#define        LINUX_SYS_getrandom     352
+
 /* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */
 #define        LINUX_SYS_accept4       361
 
diff -r 7aa4034d7785 -r 84233fa14a1a sys/compat/linux/arch/m68k/linux_syscallargs.h
--- a/sys/compat/linux/arch/m68k/linux_syscallargs.h    Wed Nov 24 18:52:13 2021 +0000
+++ b/sys/compat/linux/arch/m68k/linux_syscallargs.h    Wed Nov 24 18:57:24 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscallargs.h,v 1.111 2021/09/20 02:20:31 thorpej Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.112 2021/11/24 18:57:25 ryo Exp $ */
 
 /*
  * System call argument lists.
@@ -1175,6 +1175,8 @@
 };
 check_syscall_args(linux_sys_pwritev)
 
+struct sys_getrandom_args;
+
 struct linux_sys_accept4_args {
        syscallarg(int) s;
        syscallarg(struct osockaddr *) name;
@@ -1684,6 +1686,8 @@
 
 int    linux_sys_pwritev(struct lwp *, const struct linux_sys_pwritev_args *, register_t *);
 
+int    sys_getrandom(struct lwp *, const struct sys_getrandom_args *, register_t *);
+
 int    linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *);



Home | Main Index | Thread Index | Old Index