Source-Changes-HG archive

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

[src/trunk]: src/sys/compat Regen for preadv(2) / pwritev(2).



details:   https://anonhg.NetBSD.org/src/rev/bb778bc7bb46
branches:  trunk
changeset: 986337:bb778bc7bb46
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Sep 20 02:20:30 2021 +0000

description:
Regen for preadv(2) / pwritev(2).

diffstat:

 sys/compat/linux/arch/alpha/linux_syscall.h           |  10 +-
 sys/compat/linux/arch/alpha/linux_syscallargs.h       |  26 +++++-
 sys/compat/linux/arch/alpha/linux_syscalls.c          |  14 +-
 sys/compat/linux/arch/alpha/linux_sysent.c            |  20 ++-
 sys/compat/linux/arch/amd64/linux_syscall.h           |  10 +-
 sys/compat/linux/arch/amd64/linux_syscallargs.h       |  26 +++++-
 sys/compat/linux/arch/amd64/linux_syscalls.c          |  14 +-
 sys/compat/linux/arch/amd64/linux_sysent.c            |  20 ++-
 sys/compat/linux/arch/amd64/linux_systrace_args.c     |  78 ++++++++++++++++++-
 sys/compat/linux/arch/arm/linux_syscall.h             |  10 +-
 sys/compat/linux/arch/arm/linux_syscallargs.h         |  26 +++++-
 sys/compat/linux/arch/arm/linux_syscalls.c            |  14 +-
 sys/compat/linux/arch/arm/linux_sysent.c              |  20 ++-
 sys/compat/linux/arch/arm/linux_systrace_args.c       |  78 ++++++++++++++++++-
 sys/compat/linux/arch/i386/linux_syscall.h            |  10 +-
 sys/compat/linux/arch/i386/linux_syscallargs.h        |  26 +++++-
 sys/compat/linux/arch/i386/linux_syscalls.c           |  14 +-
 sys/compat/linux/arch/i386/linux_sysent.c             |  20 ++-
 sys/compat/linux/arch/i386/linux_systrace_args.c      |  78 ++++++++++++++++++-
 sys/compat/linux/arch/m68k/linux_syscall.h            |  10 +-
 sys/compat/linux/arch/m68k/linux_syscallargs.h        |  26 +++++-
 sys/compat/linux/arch/m68k/linux_syscalls.c           |  14 +-
 sys/compat/linux/arch/m68k/linux_sysent.c             |  20 ++-
 sys/compat/linux/arch/mips/linux_syscall.h            |  10 +-
 sys/compat/linux/arch/mips/linux_syscallargs.h        |  26 +++++-
 sys/compat/linux/arch/mips/linux_syscalls.c           |  14 +-
 sys/compat/linux/arch/mips/linux_sysent.c             |  20 ++-
 sys/compat/linux/arch/powerpc/linux_syscall.h         |  10 +-
 sys/compat/linux/arch/powerpc/linux_syscallargs.h     |  26 +++++-
 sys/compat/linux/arch/powerpc/linux_syscalls.c        |  14 +-
 sys/compat/linux/arch/powerpc/linux_sysent.c          |  20 ++-
 sys/compat/linux32/arch/amd64/linux32_syscall.h       |  10 +-
 sys/compat/linux32/arch/amd64/linux32_syscallargs.h   |  26 +++++-
 sys/compat/linux32/arch/amd64/linux32_syscalls.c      |  14 +-
 sys/compat/linux32/arch/amd64/linux32_sysent.c        |  16 ++-
 sys/compat/linux32/arch/amd64/linux32_systrace_args.c |  78 ++++++++++++++++++-
 36 files changed, 713 insertions(+), 155 deletions(-)

diffs (truncated from 1745 to 300 lines):

diff -r 3170c3ed82cf -r bb778bc7bb46 sys/compat/linux/arch/alpha/linux_syscall.h
--- a/sys/compat/linux/arch/alpha/linux_syscall.h       Mon Sep 20 02:20:02 2021 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscall.h       Mon Sep 20 02:20:30 2021 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.113 2021/09/20 00:09:33 thorpej Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.114 2021/09/20 02:20:30 thorpej Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.100 2021/09/20 00:09:01 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.101 2021/09/20 02:20:02 thorpej Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -741,6 +741,12 @@
 /* syscall: "pipe2" ret: "int" args: "int *" "int" */
 #define        LINUX_SYS_pipe2 488
 
+/* syscall: "preadv" ret: "int" args: "int" "const struct iovec *" "int" "unsigned long" "unsigned long" */
+#define        LINUX_SYS_preadv        490
+
+/* syscall: "pwritev" ret: "int" args: "int" "const struct iovcnt *" "int" "unsigned long" "unsigned long" */
+#define        LINUX_SYS_pwritev       491
+
 /* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */
 #define        LINUX_SYS_accept4       502
 
diff -r 3170c3ed82cf -r bb778bc7bb46 sys/compat/linux/arch/alpha/linux_syscallargs.h
--- a/sys/compat/linux/arch/alpha/linux_syscallargs.h   Mon Sep 20 02:20:02 2021 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscallargs.h   Mon Sep 20 02:20:30 2021 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.112 2021/09/20 00:09:33 thorpej Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.113 2021/09/20 02:20:30 thorpej Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.100 2021/09/20 00:09:01 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.101 2021/09/20 02:20:02 thorpej Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -1194,6 +1194,24 @@
 };
 check_syscall_args(linux_sys_pipe2)
 
+struct linux_sys_preadv_args {
+       syscallarg(int) fd;
+       syscallarg(const struct iovec *) iovp;
+       syscallarg(int) iovcnt;
+       syscallarg(unsigned long) off_lo;
+       syscallarg(unsigned long) off_hi;
+};
+check_syscall_args(linux_sys_preadv)
+
+struct linux_sys_pwritev_args {
+       syscallarg(int) fd;
+       syscallarg(const struct iovcnt *) iovp;
+       syscallarg(int) iovcnt;
+       syscallarg(unsigned long) off_lo;
+       syscallarg(unsigned long) off_hi;
+};
+check_syscall_args(linux_sys_pwritev)
+
 struct linux_sys_accept4_args {
        syscallarg(int) s;
        syscallarg(struct osockaddr *) name;
@@ -1704,6 +1722,10 @@
 
 int    linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *);
 
+int    linux_sys_preadv(struct lwp *, const struct linux_sys_preadv_args *, register_t *);
+
+int    linux_sys_pwritev(struct lwp *, const struct linux_sys_pwritev_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 3170c3ed82cf -r bb778bc7bb46 sys/compat/linux/arch/alpha/linux_syscalls.c
--- a/sys/compat/linux/arch/alpha/linux_syscalls.c      Mon Sep 20 02:20:02 2021 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscalls.c      Mon Sep 20 02:20:30 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.114 2021/09/20 00:09:33 thorpej Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.115 2021/09/20 02:20:30 thorpej Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.100 2021/09/20 00:09:01 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.101 2021/09/20 02:20:02 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.114 2021/09/20 00:09:33 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.115 2021/09/20 02:20:30 thorpej Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -549,8 +549,8 @@
        /* 487 */       "dup3",
        /* 488 */       "pipe2",
        /* 489 */       "#489 (unimplemented inotify_init1)",
-       /* 490 */       "#490 (unimplemented preadv)",
-       /* 491 */       "#491 (unimplemented pwritev)",
+       /* 490 */       "preadv",
+       /* 491 */       "pwritev",
        /* 492 */       "#492 (unimplemented rt_tgsigqueueinfo)",
        /* 493 */       "#493 (unimplemented perf_counter_open)",
        /* 494 */       "#494 (unimplemented fanotify_init)",
@@ -1090,8 +1090,8 @@
        /* 487 */       NULL, /* dup3 */
        /* 488 */       NULL, /* pipe2 */
        /* 489 */       NULL, /* unimplemented inotify_init1 */
-       /* 490 */       NULL, /* unimplemented preadv */
-       /* 491 */       NULL, /* unimplemented pwritev */
+       /* 490 */       NULL, /* preadv */
+       /* 491 */       NULL, /* pwritev */
        /* 492 */       NULL, /* unimplemented rt_tgsigqueueinfo */
        /* 493 */       NULL, /* unimplemented perf_counter_open */
        /* 494 */       NULL, /* unimplemented fanotify_init */
diff -r 3170c3ed82cf -r bb778bc7bb46 sys/compat/linux/arch/alpha/linux_sysent.c
--- a/sys/compat/linux/arch/alpha/linux_sysent.c        Mon Sep 20 02:20:02 2021 +0000
+++ b/sys/compat/linux/arch/alpha/linux_sysent.c        Mon Sep 20 02:20:30 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.113 2021/09/20 00:09:33 thorpej Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.114 2021/09/20 02:20:30 thorpej Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.100 2021/09/20 00:09:01 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.101 2021/09/20 02:20:02 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.113 2021/09/20 00:09:33 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.114 2021/09/20 02:20:30 thorpej Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sysv.h"
@@ -1954,11 +1954,15 @@
                .sy_call = linux_sys_nosys,
        },              /* 489 = filler */
        {
-               .sy_call = linux_sys_nosys,
-       },              /* 490 = filler */
-       {
-               .sy_call = linux_sys_nosys,
-       },              /* 491 = filler */
+               ns(struct linux_sys_preadv_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_preadv
+       },              /* 490 = preadv */
+       {
+               ns(struct linux_sys_pwritev_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_pwritev
+       },              /* 491 = pwritev */
        {
                .sy_call = linux_sys_nosys,
        },              /* 492 = filler */
diff -r 3170c3ed82cf -r bb778bc7bb46 sys/compat/linux/arch/amd64/linux_syscall.h
--- a/sys/compat/linux/arch/amd64/linux_syscall.h       Mon Sep 20 02:20:02 2021 +0000
+++ b/sys/compat/linux/arch/amd64/linux_syscall.h       Mon Sep 20 02:20:30 2021 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.74 2021/09/20 00:09:33 thorpej Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.75 2021/09/20 02:20:30 thorpej Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.65 2021/09/20 00:09:01 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.66 2021/09/20 02:20:02 thorpej Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -687,6 +687,12 @@
 /* syscall: "pipe2" ret: "int" args: "int *" "int" */
 #define        LINUX_SYS_pipe2 293
 
+/* syscall: "preadv" ret: "int" args: "int" "const struct iovec *" "int" "unsigned long" "unsigned long" */
+#define        LINUX_SYS_preadv        295
+
+/* syscall: "pwritev" ret: "int" args: "int" "const struct iovcnt *" "int" "unsigned long" "unsigned long" */
+#define        LINUX_SYS_pwritev       296
+
 /* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */
 #define        LINUX_SYS_recvmmsg      299
 
diff -r 3170c3ed82cf -r bb778bc7bb46 sys/compat/linux/arch/amd64/linux_syscallargs.h
--- a/sys/compat/linux/arch/amd64/linux_syscallargs.h   Mon Sep 20 02:20:02 2021 +0000
+++ b/sys/compat/linux/arch/amd64/linux_syscallargs.h   Mon Sep 20 02:20:30 2021 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.74 2021/09/20 00:09:33 thorpej Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.75 2021/09/20 02:20:30 thorpej Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.65 2021/09/20 00:09:01 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.66 2021/09/20 02:20:02 thorpej Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -1083,6 +1083,24 @@
 };
 check_syscall_args(linux_sys_pipe2)
 
+struct linux_sys_preadv_args {
+       syscallarg(int) fd;
+       syscallarg(const struct iovec *) iovp;
+       syscallarg(int) iovcnt;
+       syscallarg(unsigned long) off_lo;
+       syscallarg(unsigned long) off_hi;
+};
+check_syscall_args(linux_sys_preadv)
+
+struct linux_sys_pwritev_args {
+       syscallarg(int) fd;
+       syscallarg(const struct iovcnt *) iovp;
+       syscallarg(int) iovcnt;
+       syscallarg(unsigned long) off_lo;
+       syscallarg(unsigned long) off_hi;
+};
+check_syscall_args(linux_sys_pwritev)
+
 struct linux_sys_recvmmsg_args {
        syscallarg(int) s;
        syscallarg(struct linux_mmsghdr *) msgvec;
@@ -1559,6 +1577,10 @@
 
 int    linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *);
 
+int    linux_sys_preadv(struct lwp *, const struct linux_sys_preadv_args *, register_t *);
+
+int    linux_sys_pwritev(struct lwp *, const struct linux_sys_pwritev_args *, register_t *);
+
 int    linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, register_t *);
 
 int    linux_sys_sendmmsg(struct lwp *, const struct linux_sys_sendmmsg_args *, register_t *);
diff -r 3170c3ed82cf -r bb778bc7bb46 sys/compat/linux/arch/amd64/linux_syscalls.c
--- a/sys/compat/linux/arch/amd64/linux_syscalls.c      Mon Sep 20 02:20:02 2021 +0000
+++ b/sys/compat/linux/arch/amd64/linux_syscalls.c      Mon Sep 20 02:20:30 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.74 2021/09/20 00:09:33 thorpej Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.75 2021/09/20 02:20:30 thorpej Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.65 2021/09/20 00:09:01 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.66 2021/09/20 02:20:02 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.74 2021/09/20 00:09:33 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.75 2021/09/20 02:20:30 thorpej Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -361,8 +361,8 @@
        /* 292 */       "dup3",
        /* 293 */       "pipe2",
        /* 294 */       "#294 (unimplemented inotify_init1)",
-       /* 295 */       "#295 (unimplemented preadv)",
-       /* 296 */       "#296 (unimplemented pwritev)",
+       /* 295 */       "preadv",
+       /* 296 */       "pwritev",
        /* 297 */       "#297 (unimplemented rt_tgsigqueueinfo)",
        /* 298 */       "#298 (unimplemented perf_counter_open)",
        /* 299 */       "recvmmsg",
@@ -905,8 +905,8 @@
        /* 292 */       NULL, /* dup3 */
        /* 293 */       NULL, /* pipe2 */
        /* 294 */       NULL, /* unimplemented inotify_init1 */
-       /* 295 */       NULL, /* unimplemented preadv */
-       /* 296 */       NULL, /* unimplemented pwritev */
+       /* 295 */       NULL, /* preadv */
+       /* 296 */       NULL, /* pwritev */
        /* 297 */       NULL, /* unimplemented rt_tgsigqueueinfo */
        /* 298 */       NULL, /* unimplemented perf_counter_open */
        /* 299 */       NULL, /* recvmmsg */
diff -r 3170c3ed82cf -r bb778bc7bb46 sys/compat/linux/arch/amd64/linux_sysent.c
--- a/sys/compat/linux/arch/amd64/linux_sysent.c        Mon Sep 20 02:20:02 2021 +0000
+++ b/sys/compat/linux/arch/amd64/linux_sysent.c        Mon Sep 20 02:20:30 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.74 2021/09/20 00:09:33 thorpej Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.75 2021/09/20 02:20:30 thorpej Exp $ */
 
 /*
  * System call switch table.
  *



Home | Main Index | Thread Index | Old Index