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/amd64 Regen for write(2) size argument...



details:   https://anonhg.NetBSD.org/src/rev/8824c626ed28
branches:  trunk
changeset: 338595:8824c626ed28
user:      njoly <njoly%NetBSD.org@localhost>
date:      Sun May 31 10:50:04 2015 +0000

description:
Regen for write(2) size argument fix.

diffstat:

 sys/compat/linux/arch/amd64/linux_syscall.h       |     6 +-
 sys/compat/linux/arch/amd64/linux_syscallargs.h   |     4 +-
 sys/compat/linux/arch/amd64/linux_syscalls.c      |     6 +-
 sys/compat/linux/arch/amd64/linux_sysent.c        |  2962 +++++++++++++-------
 sys/compat/linux/arch/amd64/linux_systrace_args.c |     6 +-
 5 files changed, 1921 insertions(+), 1063 deletions(-)

diffs (truncated from 3088 to 300 lines):

diff -r 782c10220560 -r 8824c626ed28 sys/compat/linux/arch/amd64/linux_syscall.h
--- a/sys/compat/linux/arch/amd64/linux_syscall.h       Sun May 31 10:49:27 2015 +0000
+++ b/sys/compat/linux/arch/amd64/linux_syscall.h       Sun May 31 10:50:04 2015 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.56 2015/03/07 16:41:53 christos Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.57 2015/05/31 10:50:04 njoly Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.54 2015/03/07 03:25:19 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.55 2015/05/31 10:49:27 njoly Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -15,7 +15,7 @@
 /* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */
 #define        LINUX_SYS_read  0
 
-/* syscall: "write" ret: "ssize_t" args: "int" "const void *" "int" */
+/* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */
 #define        LINUX_SYS_write 1
 
 /* syscall: "open" ret: "int" args: "const char *" "int" "linux_umode_t" */
diff -r 782c10220560 -r 8824c626ed28 sys/compat/linux/arch/amd64/linux_syscallargs.h
--- a/sys/compat/linux/arch/amd64/linux_syscallargs.h   Sun May 31 10:49:27 2015 +0000
+++ b/sys/compat/linux/arch/amd64/linux_syscallargs.h   Sun May 31 10:50:04 2015 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.56 2015/03/07 16:41:53 christos Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.57 2015/05/31 10:50:04 njoly Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.54 2015/03/07 03:25:19 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.55 2015/05/31 10:49:27 njoly Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALLARGS_H_
diff -r 782c10220560 -r 8824c626ed28 sys/compat/linux/arch/amd64/linux_syscalls.c
--- a/sys/compat/linux/arch/amd64/linux_syscalls.c      Sun May 31 10:49:27 2015 +0000
+++ b/sys/compat/linux/arch/amd64/linux_syscalls.c      Sun May 31 10:50:04 2015 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.56 2015/03/07 16:41:53 christos Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.57 2015/05/31 10:50:04 njoly Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.54 2015/03/07 03:25:19 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.55 2015/05/31 10:49:27 njoly Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.56 2015/03/07 16:41:53 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.57 2015/05/31 10:50:04 njoly Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
diff -r 782c10220560 -r 8824c626ed28 sys/compat/linux/arch/amd64/linux_sysent.c
--- a/sys/compat/linux/arch/amd64/linux_sysent.c        Sun May 31 10:49:27 2015 +0000
+++ b/sys/compat/linux/arch/amd64/linux_sysent.c        Sun May 31 10:50:04 2015 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.56 2015/03/07 16:41:53 christos Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.57 2015/05/31 10:50:04 njoly Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.54 2015/03/07 03:25:19 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.55 2015/05/31 10:49:27 njoly Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.56 2015/03/07 16:41:53 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.57 2015/05/31 10:50:04 njoly Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sysv.h"
@@ -36,1070 +36,1928 @@
 
 #define        s(type) sizeof(type)
 #define        n(type) (sizeof(type)/sizeof (register_t))
-#define        ns(type)        n(type), s(type)
+#define        ns(type)        .sy_narg = n(type), .sy_argsize = s(type)
 
 struct sysent linux_sysent[] = {
-       { ns(struct sys_read_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_read, 0, 0 },              /* 0 = read */
-       { ns(struct sys_write_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_write, 0, 0 },             /* 1 = write */
-       { ns(struct linux_sys_open_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_open, 0, 0 },        /* 2 = open */
-       { ns(struct sys_close_args), 0,
-           (sy_call_t *)sys_close, 0, 0 },             /* 3 = close */
-       { ns(struct linux_sys_stat64_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_stat64, 0, 0 },      /* 4 = stat64 */
-       { ns(struct linux_sys_fstat64_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_fstat64, 0, 0 },     /* 5 = fstat64 */
-       { ns(struct linux_sys_lstat64_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_lstat64, 0, 0 },     /* 6 = lstat64 */
-       { ns(struct sys_poll_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_poll, 0, 0 },              /* 7 = poll */
-       { ns(struct compat_43_sys_lseek_args), 0,
-           (sy_call_t *)compat_43_sys_lseek, 0, 0 },   /* 8 = lseek */
-       { ns(struct linux_sys_mmap_args), 0,
-           (sy_call_t *)linux_sys_mmap, 0, 0 },        /* 9 = mmap */
-       { ns(struct linux_sys_mprotect_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_mprotect, 0, 0 },    /* 10 = mprotect */
-       { ns(struct sys_munmap_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_munmap, 0, 0 },            /* 11 = munmap */
-       { ns(struct linux_sys_brk_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_brk, 0, 0 }, /* 12 = brk */
-       { ns(struct linux_sys_rt_sigaction_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_rt_sigaction, 0, 0 },/* 13 = rt_sigaction */
-       { ns(struct linux_sys_rt_sigprocmask_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_rt_sigprocmask, 0, 0 },/* 14 = rt_sigprocmask */
-       { 0, 0, 0,
-           (sy_call_t *)linux_sys_rt_sigreturn, 0, 0 },/* 15 = rt_sigreturn */
-       { ns(struct linux_sys_ioctl_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_ioctl, 0, 0 },       /* 16 = ioctl */
-       { ns(struct linux_sys_pread_args), SYCALL_NARGS64_VAL(1) | SYCALL_ARG3_64 | SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_pread, 0, 0 },       /* 17 = pread */
-       { ns(struct linux_sys_pwrite_args), SYCALL_NARGS64_VAL(1) | SYCALL_ARG3_64 | SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_pwrite, 0, 0 },      /* 18 = pwrite */
-       { ns(struct sys_readv_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_readv, 0, 0 },             /* 19 = readv */
-       { ns(struct sys_writev_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_writev, 0, 0 },            /* 20 = writev */
-       { ns(struct sys_access_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_access, 0, 0 },            /* 21 = access */
-       { ns(struct linux_sys_pipe_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_pipe, 0, 0 },        /* 22 = pipe */
-       { ns(struct linux_sys_select_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_select, 0, 0 },      /* 23 = select */
-       { 0, 0, 0,
-           (sy_call_t *)linux_sys_sched_yield, 0, 0 },/* 24 = sched_yield */
-       { ns(struct linux_sys_mremap_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_mremap, 0, 0 },      /* 25 = mremap */
-       { ns(struct sys___msync13_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys___msync13, 0, 0 }, /* 26 = __msync13 */
-       { ns(struct sys_mincore_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_mincore, 0, 0 },           /* 27 = mincore */
-       { ns(struct sys_madvise_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_madvise, 0, 0 },           /* 28 = madvise */
+       {
+               ns(struct sys_read_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)sys_read
+       },              /* 0 = read */
+       {
+               ns(struct sys_write_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)sys_write
+       },              /* 1 = write */
+       {
+               ns(struct linux_sys_open_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_open
+       },              /* 2 = open */
+       {
+               ns(struct sys_close_args),
+               .sy_call = (sy_call_t *)sys_close
+       },              /* 3 = close */
+       {
+               ns(struct linux_sys_stat64_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_stat64
+       },              /* 4 = stat64 */
+       {
+               ns(struct linux_sys_fstat64_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_fstat64
+       },              /* 5 = fstat64 */
+       {
+               ns(struct linux_sys_lstat64_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_lstat64
+       },              /* 6 = lstat64 */
+       {
+               ns(struct sys_poll_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)sys_poll
+       },              /* 7 = poll */
+       {
+               ns(struct compat_43_sys_lseek_args),
+               .sy_call = (sy_call_t *)compat_43_sys_lseek
+       },              /* 8 = lseek */
+       {
+               ns(struct linux_sys_mmap_args),
+               .sy_call = (sy_call_t *)linux_sys_mmap
+       },              /* 9 = mmap */
+       {
+               ns(struct linux_sys_mprotect_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_mprotect
+       },              /* 10 = mprotect */
+       {
+               ns(struct sys_munmap_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)sys_munmap
+       },              /* 11 = munmap */
+       {
+               ns(struct linux_sys_brk_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_brk
+       },              /* 12 = brk */
+       {
+               ns(struct linux_sys_rt_sigaction_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_rt_sigaction
+       },              /* 13 = rt_sigaction */
+       {
+               ns(struct linux_sys_rt_sigprocmask_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_rt_sigprocmask
+       },              /* 14 = rt_sigprocmask */
+       {
+               .sy_call = (sy_call_t *)linux_sys_rt_sigreturn
+       },              /* 15 = rt_sigreturn */
+       {
+               ns(struct linux_sys_ioctl_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_ioctl
+       },              /* 16 = ioctl */
+       {
+               ns(struct linux_sys_pread_args),
+               .sy_flags = SYCALL_NARGS64_VAL(1) | SYCALL_ARG3_64 | SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_pread
+       },              /* 17 = pread */
+       {
+               ns(struct linux_sys_pwrite_args),
+               .sy_flags = SYCALL_NARGS64_VAL(1) | SYCALL_ARG3_64 | SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_pwrite
+       },              /* 18 = pwrite */
+       {
+               ns(struct sys_readv_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)sys_readv
+       },              /* 19 = readv */
+       {
+               ns(struct sys_writev_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)sys_writev
+       },              /* 20 = writev */
+       {
+               ns(struct sys_access_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)sys_access
+       },              /* 21 = access */
+       {
+               ns(struct linux_sys_pipe_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_pipe
+       },              /* 22 = pipe */
+       {
+               ns(struct linux_sys_select_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_select
+       },              /* 23 = select */
+       {
+               .sy_call = (sy_call_t *)linux_sys_sched_yield
+       },              /* 24 = sched_yield */
+       {
+               ns(struct linux_sys_mremap_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux_sys_mremap
+       },              /* 25 = mremap */
+       {
+               ns(struct sys___msync13_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)sys___msync13
+       },              /* 26 = __msync13 */
+       {
+               ns(struct sys_mincore_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)sys_mincore
+       },              /* 27 = mincore */
+       {
+               ns(struct sys_madvise_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)sys_madvise
+       },              /* 28 = madvise */
 #ifdef SYSVSHM
-       { ns(struct linux_sys_shmget_args), 0,
-           (sy_call_t *)linux_sys_shmget, 0, 0 },      /* 29 = shmget */
-       { ns(struct sys_shmat_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_shmat, 0, 0 },             /* 30 = shmat */
-       { ns(struct linux_sys_shmctl_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_shmctl, 0, 0 },      /* 31 = shmctl */
+       {
+               ns(struct linux_sys_shmget_args),
+               .sy_call = (sy_call_t *)linux_sys_shmget
+       },              /* 29 = shmget */
+       {
+               ns(struct sys_shmat_args),



Home | Main Index | Thread Index | Old Index