Source-Changes-HG archive

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

[src/thorpej-futex]: src/sys/compat/linux/arch Regen for preadv(2) and pwrite...



details:   https://anonhg.NetBSD.org/src/rev/6fadff46c88b
branches:  thorpej-futex
changeset: 961137:6fadff46c88b
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Dec 17 03:14:35 2020 +0000

description:
Regen for preadv(2) and 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 +++--
 31 files changed, 588 insertions(+), 136 deletions(-)

diffs (truncated from 1478 to 300 lines):

diff -r 2b0a3bef9e8c -r 6fadff46c88b sys/compat/linux/arch/alpha/linux_syscall.h
--- a/sys/compat/linux/arch/alpha/linux_syscall.h       Thu Dec 17 03:14:15 2020 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscall.h       Thu Dec 17 03:14:35 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.110.2.1 2020/12/15 14:07:51 thorpej Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.110.2.2 2020/12/17 03:14:35 thorpej Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.97.2.1 2020/12/15 14:07:20 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.97.2.2 2020/12/17 03:14:15 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 2b0a3bef9e8c -r 6fadff46c88b sys/compat/linux/arch/alpha/linux_syscallargs.h
--- a/sys/compat/linux/arch/alpha/linux_syscallargs.h   Thu Dec 17 03:14:15 2020 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscallargs.h   Thu Dec 17 03:14:35 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.109.2.1 2020/12/15 14:07:51 thorpej Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.109.2.2 2020/12/17 03:14:35 thorpej Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.97.2.1 2020/12/15 14:07:20 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.97.2.2 2020/12/17 03:14:15 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 2b0a3bef9e8c -r 6fadff46c88b sys/compat/linux/arch/alpha/linux_syscalls.c
--- a/sys/compat/linux/arch/alpha/linux_syscalls.c      Thu Dec 17 03:14:15 2020 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscalls.c      Thu Dec 17 03:14:35 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.111.2.1 2020/12/15 14:07:51 thorpej Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.111.2.2 2020/12/17 03:14:35 thorpej Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.97.2.1 2020/12/15 14:07:20 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.97.2.2 2020/12/17 03:14:15 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.111.2.1 2020/12/15 14:07:51 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.111.2.2 2020/12/17 03:14:35 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 2b0a3bef9e8c -r 6fadff46c88b sys/compat/linux/arch/alpha/linux_sysent.c
--- a/sys/compat/linux/arch/alpha/linux_sysent.c        Thu Dec 17 03:14:15 2020 +0000
+++ b/sys/compat/linux/arch/alpha/linux_sysent.c        Thu Dec 17 03:14:35 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.110.2.1 2020/12/15 14:07:51 thorpej Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.110.2.2 2020/12/17 03:14:35 thorpej Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.97.2.1 2020/12/15 14:07:20 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.97.2.2 2020/12/17 03:14:15 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.110.2.1 2020/12/15 14:07:51 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.110.2.2 2020/12/17 03:14:35 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 2b0a3bef9e8c -r 6fadff46c88b sys/compat/linux/arch/amd64/linux_syscall.h
--- a/sys/compat/linux/arch/amd64/linux_syscall.h       Thu Dec 17 03:14:15 2020 +0000
+++ b/sys/compat/linux/arch/amd64/linux_syscall.h       Thu Dec 17 03:14:35 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.71.2.1 2020/12/15 14:07:51 thorpej Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.71.2.2 2020/12/17 03:14:35 thorpej Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.62.2.1 2020/12/15 14:07:20 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.62.2.2 2020/12/17 03:14:15 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 2b0a3bef9e8c -r 6fadff46c88b sys/compat/linux/arch/amd64/linux_syscallargs.h
--- a/sys/compat/linux/arch/amd64/linux_syscallargs.h   Thu Dec 17 03:14:15 2020 +0000
+++ b/sys/compat/linux/arch/amd64/linux_syscallargs.h   Thu Dec 17 03:14:35 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.71.2.1 2020/12/15 14:07:51 thorpej Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.71.2.2 2020/12/17 03:14:35 thorpej Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.62.2.1 2020/12/15 14:07:20 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.62.2.2 2020/12/17 03:14:15 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 2b0a3bef9e8c -r 6fadff46c88b sys/compat/linux/arch/amd64/linux_syscalls.c
--- a/sys/compat/linux/arch/amd64/linux_syscalls.c      Thu Dec 17 03:14:15 2020 +0000
+++ b/sys/compat/linux/arch/amd64/linux_syscalls.c      Thu Dec 17 03:14:35 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.71.2.1 2020/12/15 14:07:51 thorpej Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.71.2.2 2020/12/17 03:14:35 thorpej Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.62.2.1 2020/12/15 14:07:20 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.62.2.2 2020/12/17 03:14:15 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.71.2.1 2020/12/15 14:07:51 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.71.2.2 2020/12/17 03:14:35 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 2b0a3bef9e8c -r 6fadff46c88b sys/compat/linux/arch/amd64/linux_sysent.c
--- a/sys/compat/linux/arch/amd64/linux_sysent.c        Thu Dec 17 03:14:15 2020 +0000
+++ b/sys/compat/linux/arch/amd64/linux_sysent.c        Thu Dec 17 03:14:35 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.71.2.1 2020/12/15 14:07:51 thorpej Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.71.2.2 2020/12/17 03:14:35 thorpej Exp $ */
 
 /*
  * System call switch table.
  *



Home | Main Index | Thread Index | Old Index