Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/7d1b72cca935
branches:  trunk
changeset: 1026599:7d1b72cca935
user:      ryo <ryo%NetBSD.org@localhost>
date:      Thu Dec 02 04:39:44 2021 +0000

description:
regen

diffstat:

 sys/compat/linux/arch/aarch64/linux_syscall.h           |   5 +-
 sys/compat/linux/arch/aarch64/linux_syscallargs.h       |  12 +++++-
 sys/compat/linux/arch/aarch64/linux_syscalls.c          |   8 +-
 sys/compat/linux/arch/aarch64/linux_sysent.c            |  10 ++-
 sys/compat/linux/arch/aarch64/linux_systrace_args.c     |  36 ++++++++++++++++-
 sys/compat/linux/arch/alpha/linux_syscall.h             |   5 +-
 sys/compat/linux/arch/alpha/linux_syscallargs.h         |  12 +++++-
 sys/compat/linux/arch/alpha/linux_syscalls.c            |   8 +-
 sys/compat/linux/arch/alpha/linux_sysent.c              |  10 ++-
 sys/compat/linux/arch/amd64/linux_syscall.h             |   5 +-
 sys/compat/linux/arch/amd64/linux_syscallargs.h         |  12 +++++-
 sys/compat/linux/arch/amd64/linux_syscalls.c            |   8 +-
 sys/compat/linux/arch/amd64/linux_sysent.c              |  10 ++-
 sys/compat/linux/arch/amd64/linux_systrace_args.c       |  36 ++++++++++++++++-
 sys/compat/linux/arch/arm/linux_syscall.h               |   7 ++-
 sys/compat/linux/arch/arm/linux_syscallargs.h           |  14 +++++-
 sys/compat/linux/arch/arm/linux_syscalls.c              |  10 ++--
 sys/compat/linux/arch/arm/linux_sysent.c                |  12 +++--
 sys/compat/linux/arch/arm/linux_systrace_args.c         |  36 ++++++++++++++++-
 sys/compat/linux/arch/i386/linux_syscall.h              |   5 +-
 sys/compat/linux/arch/i386/linux_syscallargs.h          |  12 +++++-
 sys/compat/linux/arch/i386/linux_syscalls.c             |   8 +-
 sys/compat/linux/arch/i386/linux_sysent.c               |  10 ++-
 sys/compat/linux/arch/i386/linux_systrace_args.c        |  36 ++++++++++++++++-
 sys/compat/linux/arch/m68k/linux_syscall.h              |   7 ++-
 sys/compat/linux/arch/m68k/linux_syscallargs.h          |  14 +++++-
 sys/compat/linux/arch/m68k/linux_syscalls.c             |  10 ++--
 sys/compat/linux/arch/m68k/linux_sysent.c               |  12 +++--
 sys/compat/linux/arch/mips/linux_syscall.h              |   7 ++-
 sys/compat/linux/arch/mips/linux_syscallargs.h          |  14 +++++-
 sys/compat/linux/arch/mips/linux_syscalls.c             |  10 ++--
 sys/compat/linux/arch/mips/linux_sysent.c               |  12 +++--
 sys/compat/linux/arch/powerpc/linux_syscall.h           |   7 ++-
 sys/compat/linux/arch/powerpc/linux_syscallargs.h       |  14 +++++-
 sys/compat/linux/arch/powerpc/linux_syscalls.c          |  10 ++--
 sys/compat/linux/arch/powerpc/linux_sysent.c            |  12 +++--
 sys/compat/linux32/arch/aarch64/linux32_syscall.h       |   5 +-
 sys/compat/linux32/arch/aarch64/linux32_syscallargs.h   |  12 +++++-
 sys/compat/linux32/arch/aarch64/linux32_syscalls.c      |   8 +-
 sys/compat/linux32/arch/aarch64/linux32_sysent.c        |   9 ++-
 sys/compat/linux32/arch/aarch64/linux32_systrace_args.c |  36 ++++++++++++++++-
 sys/compat/linux32/arch/amd64/linux32_syscall.h         |   5 +-
 sys/compat/linux32/arch/amd64/linux32_syscallargs.h     |  12 +++++-
 sys/compat/linux32/arch/amd64/linux32_syscalls.c        |   8 +-
 sys/compat/linux32/arch/amd64/linux32_sysent.c          |   9 ++-
 sys/compat/linux32/arch/amd64/linux32_systrace_args.c   |  36 ++++++++++++++++-
 46 files changed, 474 insertions(+), 122 deletions(-)

diffs (truncated from 1648 to 300 lines):

diff -r ecc1fab6ee38 -r 7d1b72cca935 sys/compat/linux/arch/aarch64/linux_syscall.h
--- a/sys/compat/linux/arch/aarch64/linux_syscall.h     Thu Dec 02 04:29:47 2021 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_syscall.h     Thu Dec 02 04:39:44 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscall.h,v 1.3 2021/11/25 02:32:24 ryo Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.4 2021/12/02 04:39:44 ryo Exp $ */
 
 /*
  * System call numbers.
@@ -579,6 +579,9 @@
 /* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage50 *" */
 #define        LINUX_SYS_wait4 260
 
+/* syscall: "prlimit64" ret: "int" args: "pid_t" "int" "struct rlimit *" "struct rlimit *" */
+#define        LINUX_SYS_prlimit64     261
+
 /* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */
 #define        LINUX_SYS_sendmmsg      269
 
diff -r ecc1fab6ee38 -r 7d1b72cca935 sys/compat/linux/arch/aarch64/linux_syscallargs.h
--- a/sys/compat/linux/arch/aarch64/linux_syscallargs.h Thu Dec 02 04:29:47 2021 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_syscallargs.h Thu Dec 02 04:39:44 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscallargs.h,v 1.3 2021/11/25 02:32:24 ryo Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.4 2021/12/02 04:39:44 ryo Exp $ */
 
 /*
  * System call argument lists.
@@ -957,6 +957,14 @@
 };
 check_syscall_args(linux_sys_wait4)
 
+struct linux_sys_prlimit64_args {
+       syscallarg(pid_t) pid;
+       syscallarg(int) which;
+       syscallarg(struct rlimit *) new_rlp;
+       syscallarg(struct rlimit *) old_rlp;
+};
+check_syscall_args(linux_sys_prlimit64)
+
 struct linux_sys_sendmmsg_args {
        syscallarg(int) s;
        syscallarg(struct linux_mmsghdr *) msgvec;
@@ -1361,6 +1369,8 @@
 
 int    linux_sys_wait4(struct lwp *, const struct linux_sys_wait4_args *, register_t *);
 
+int    linux_sys_prlimit64(struct lwp *, const struct linux_sys_prlimit64_args *, register_t *);
+
 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 *);
diff -r ecc1fab6ee38 -r 7d1b72cca935 sys/compat/linux/arch/aarch64/linux_syscalls.c
--- a/sys/compat/linux/arch/aarch64/linux_syscalls.c    Thu Dec 02 04:29:47 2021 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_syscalls.c    Thu Dec 02 04:39:44 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscalls.c,v 1.3 2021/11/25 02:32:24 ryo Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.4 2021/12/02 04:39:44 ryo Exp $ */
 
 /*
  * System call names.
@@ -8,7 +8,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.3 2021/11/25 02:32:24 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.4 2021/12/02 04:39:44 ryo Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -322,7 +322,7 @@
        /* 258 */       "#258 (unimplemented)",
        /* 259 */       "#259 (unimplemented)",
        /* 260 */       "wait4",
-       /* 261 */       "#261 (unimplemented prlimit64)",
+       /* 261 */       "prlimit64",
        /* 262 */       "#262 (unimplemented fanotify_init)",
        /* 263 */       "#263 (unimplemented fanotify_mark)",
        /* 264 */       "#264 (unimplemented name_to_handle_at)",
@@ -860,7 +860,7 @@
        /* 258 */       NULL, /* unimplemented */
        /* 259 */       NULL, /* unimplemented */
        /* 260 */       NULL, /* wait4 */
-       /* 261 */       NULL, /* unimplemented prlimit64 */
+       /* 261 */       NULL, /* prlimit64 */
        /* 262 */       NULL, /* unimplemented fanotify_init */
        /* 263 */       NULL, /* unimplemented fanotify_mark */
        /* 264 */       NULL, /* unimplemented name_to_handle_at */
diff -r ecc1fab6ee38 -r 7d1b72cca935 sys/compat/linux/arch/aarch64/linux_sysent.c
--- a/sys/compat/linux/arch/aarch64/linux_sysent.c      Thu Dec 02 04:29:47 2021 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_sysent.c      Thu Dec 02 04:39:44 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_sysent.c,v 1.3 2021/11/25 02:32:24 ryo Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.4 2021/12/02 04:39:44 ryo Exp $ */
 
 /*
  * System call switch table.
@@ -8,7 +8,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.3 2021/11/25 02:32:24 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.4 2021/12/02 04:39:44 ryo Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sysv.h"
@@ -1170,8 +1170,10 @@
                .sy_call = (sy_call_t *)linux_sys_wait4
        },              /* 260 = wait4 */
        {
-               .sy_call = linux_sys_nosys,
-       },              /* 261 = filler */
+               ns(struct linux_sys_prlimit64_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_prlimit64
+       },              /* 261 = prlimit64 */
        {
                .sy_call = linux_sys_nosys,
        },              /* 262 = filler */
diff -r ecc1fab6ee38 -r 7d1b72cca935 sys/compat/linux/arch/aarch64/linux_systrace_args.c
--- a/sys/compat/linux/arch/aarch64/linux_systrace_args.c       Thu Dec 02 04:29:47 2021 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_systrace_args.c       Thu Dec 02 04:39:44 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_systrace_args.c,v 1.3 2021/11/25 02:32:24 ryo Exp $ */
+/* $NetBSD: linux_systrace_args.c,v 1.4 2021/12/02 04:39:44 ryo Exp $ */
 
 /*
  * System call argument to DTrace register array conversion.
@@ -1601,6 +1601,16 @@
                *n_args = 4;
                break;
        }
+       /* linux_sys_prlimit64 */
+       case 261: {
+               const struct linux_sys_prlimit64_args *p = params;
+               iarg[0] = SCARG(p, pid); /* pid_t */
+               iarg[1] = SCARG(p, which); /* int */
+               uarg[2] = (intptr_t) SCARG(p, new_rlp); /* struct rlimit * */
+               uarg[3] = (intptr_t) SCARG(p, old_rlp); /* struct rlimit * */
+               *n_args = 4;
+               break;
+       }
        /* linux_sys_sendmmsg */
        case 269: {
                const struct linux_sys_sendmmsg_args *p = params;
@@ -4337,6 +4347,25 @@
                        break;
                };
                break;
+       /* linux_sys_prlimit64 */
+       case 261:
+               switch(ndx) {
+               case 0:
+                       p = "pid_t";
+                       break;
+               case 1:
+                       p = "int";
+                       break;
+               case 2:
+                       p = "struct rlimit *";
+                       break;
+               case 3:
+                       p = "struct rlimit *";
+                       break;
+               default:
+                       break;
+               };
+               break;
        /* linux_sys_sendmmsg */
        case 269:
                switch(ndx) {
@@ -5311,6 +5340,11 @@
                if (ndx == 0 || ndx == 1)
                        p = "int";
                break;
+       /* linux_sys_prlimit64 */
+       case 261:
+               if (ndx == 0 || ndx == 1)
+                       p = "int";
+               break;
        /* linux_sys_sendmmsg */
        case 269:
                if (ndx == 0 || ndx == 1)
diff -r ecc1fab6ee38 -r 7d1b72cca935 sys/compat/linux/arch/alpha/linux_syscall.h
--- a/sys/compat/linux/arch/alpha/linux_syscall.h       Thu Dec 02 04:29:47 2021 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscall.h       Thu Dec 02 04:39:44 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscall.h,v 1.114 2021/09/20 02:20:30 thorpej Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.115 2021/12/02 04:39:44 ryo Exp $ */
 
 /*
  * System call numbers.
@@ -747,6 +747,9 @@
 /* syscall: "pwritev" ret: "int" args: "int" "const struct iovcnt *" "int" "unsigned long" "unsigned long" */
 #define        LINUX_SYS_pwritev       491
 
+/* syscall: "prlimit64" ret: "int" args: "pid_t" "int" "struct rlimit *" "struct rlimit *" */
+#define        LINUX_SYS_prlimit64     496
+
 /* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */
 #define        LINUX_SYS_accept4       502
 
diff -r ecc1fab6ee38 -r 7d1b72cca935 sys/compat/linux/arch/alpha/linux_syscallargs.h
--- a/sys/compat/linux/arch/alpha/linux_syscallargs.h   Thu Dec 02 04:29:47 2021 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscallargs.h   Thu Dec 02 04:39:44 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscallargs.h,v 1.113 2021/09/20 02:20:30 thorpej Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.114 2021/12/02 04:39:44 ryo Exp $ */
 
 /*
  * System call argument lists.
@@ -1212,6 +1212,14 @@
 };
 check_syscall_args(linux_sys_pwritev)
 
+struct linux_sys_prlimit64_args {
+       syscallarg(pid_t) pid;
+       syscallarg(int) which;
+       syscallarg(struct rlimit *) new_rlp;
+       syscallarg(struct rlimit *) old_rlp;
+};
+check_syscall_args(linux_sys_prlimit64)
+
 struct linux_sys_accept4_args {
        syscallarg(int) s;
        syscallarg(struct osockaddr *) name;
@@ -1726,6 +1734,8 @@
 
 int    linux_sys_pwritev(struct lwp *, const struct linux_sys_pwritev_args *, register_t *);
 
+int    linux_sys_prlimit64(struct lwp *, const struct linux_sys_prlimit64_args *, register_t *);
+
 int    linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *);
 
 int    linux_sys_sendmmsg(struct lwp *, const struct linux_sys_sendmmsg_args *, register_t *);
diff -r ecc1fab6ee38 -r 7d1b72cca935 sys/compat/linux/arch/alpha/linux_syscalls.c
--- a/sys/compat/linux/arch/alpha/linux_syscalls.c      Thu Dec 02 04:29:47 2021 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscalls.c      Thu Dec 02 04:39:44 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscalls.c,v 1.115 2021/09/20 02:20:30 thorpej Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.116 2021/12/02 04:39:44 ryo Exp $ */
 
 /*
  * System call names.
@@ -8,7 +8,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.115 2021/09/20 02:20:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.116 2021/12/02 04:39:44 ryo Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -555,7 +555,7 @@
        /* 493 */       "#493 (unimplemented perf_counter_open)",
        /* 494 */       "#494 (unimplemented fanotify_init)",
        /* 495 */       "#495 (unimplemented fanotify_mark)",
-       /* 496 */       "#496 (unimplemented prlimit64)",
+       /* 496 */       "prlimit64",
        /* 497 */       "#497 (unimplemented name_to_handle_at)",
        /* 498 */       "#498 (unimplemented open_by_handle_at)",
        /* 499 */       "#499 (unimplemented clock_adjtime)",
@@ -1096,7 +1096,7 @@
        /* 493 */       NULL, /* unimplemented perf_counter_open */
        /* 494 */       NULL, /* unimplemented fanotify_init */
        /* 495 */       NULL, /* unimplemented fanotify_mark */
-       /* 496 */       NULL, /* unimplemented prlimit64 */
+       /* 496 */       NULL, /* prlimit64 */
        /* 497 */       NULL, /* unimplemented name_to_handle_at */
        /* 498 */       NULL, /* unimplemented open_by_handle_at */
        /* 499 */       NULL, /* unimplemented clock_adjtime */
diff -r ecc1fab6ee38 -r 7d1b72cca935 sys/compat/linux/arch/alpha/linux_sysent.c
--- a/sys/compat/linux/arch/alpha/linux_sysent.c        Thu Dec 02 04:29:47 2021 +0000
+++ b/sys/compat/linux/arch/alpha/linux_sysent.c        Thu Dec 02 04:39:44 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_sysent.c,v 1.114 2021/09/20 02:20:30 thorpej Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.115 2021/12/02 04:39:44 ryo Exp $ */
 
 /*
  * System call switch table.
@@ -8,7 +8,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.114 2021/09/20 02:20:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.115 2021/12/02 04:39:44 ryo Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sysv.h"
@@ -1976,8 +1976,10 @@
                .sy_call = linux_sys_nosys,
        },              /* 495 = filler */
        {
-               .sy_call = linux_sys_nosys,
-       },              /* 496 = filler */
+               ns(struct linux_sys_prlimit64_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_prlimit64
+       },              /* 496 = prlimit64 */
        {



Home | Main Index | Thread Index | Old Index