Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/sunos compat/sunos: Drop SYS_vadvise



details:   https://anonhg.NetBSD.org/src/rev/eba2c319b02d
branches:  trunk
changeset: 358283:eba2c319b02d
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Dec 19 19:19:16 2017 +0000

description:
compat/sunos: Drop SYS_vadvise

The (o)vadvise syscall is dummy since the beginning of NetBSD.

Sponsored by <The NetBSD Foundation>

diffstat:

 sys/compat/sunos/sunos_syscall.h     |   8 +++-----
 sys/compat/sunos/sunos_syscallargs.h |   8 ++------
 sys/compat/sunos/sunos_syscalls.c    |  10 +++++-----
 sys/compat/sunos/sunos_sysent.c      |  11 +++++------
 sys/compat/sunos/syscalls.master     |   4 ++--
 5 files changed, 17 insertions(+), 24 deletions(-)

diffs (151 lines):

diff -r 40d6b32acc21 -r eba2c319b02d sys/compat/sunos/sunos_syscall.h
--- a/sys/compat/sunos/sunos_syscall.h  Tue Dec 19 19:18:18 2017 +0000
+++ b/sys/compat/sunos/sunos_syscall.h  Tue Dec 19 19:19:16 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: sunos_syscall.h,v 1.94 2017/12/19 18:24:21 kamil Exp $ */
+/* $NetBSD: sunos_syscall.h,v 1.95 2017/12/19 19:19:16 kamil Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.77 2017/12/19 08:25:37 kamil Exp
+ * created from        NetBSD: syscalls.master,v 1.78 2017/12/19 18:24:21 kamil Exp
  */
 
 #ifndef _SUNOS_SYS_SYSCALL_H_
@@ -161,9 +161,7 @@
 /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" */
 #define        SUNOS_SYS_mmap  71
 
-/* syscall: "vadvise" ret: "int" args: "int" */
-#define        SUNOS_SYS_vadvise       72
-
+                               /* 72 is obsolete vadvise */
 /* syscall: "munmap" ret: "int" args: "void *" "size_t" */
 #define        SUNOS_SYS_munmap        73
 
diff -r 40d6b32acc21 -r eba2c319b02d sys/compat/sunos/sunos_syscallargs.h
--- a/sys/compat/sunos/sunos_syscallargs.h      Tue Dec 19 19:18:18 2017 +0000
+++ b/sys/compat/sunos/sunos_syscallargs.h      Tue Dec 19 19:19:16 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: sunos_syscallargs.h,v 1.78 2017/12/19 18:24:21 kamil Exp $ */
+/* $NetBSD: sunos_syscallargs.h,v 1.79 2017/12/19 19:19:16 kamil Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.77 2017/12/19 08:25:37 kamil Exp
+ * created from        NetBSD: syscalls.master,v 1.78 2017/12/19 18:24:21 kamil Exp
  */
 
 #ifndef _SUNOS_SYS_SYSCALLARGS_H_
@@ -177,8 +177,6 @@
 };
 check_syscall_args(sunos_sys_mmap)
 
-struct sys_ovadvise_args;
-
 struct sys_munmap_args;
 
 struct sys_mprotect_args;
@@ -552,8 +550,6 @@
 
 int    sunos_sys_mmap(struct lwp *, const struct sunos_sys_mmap_args *, register_t *);
 
-int    sys_ovadvise(struct lwp *, const struct sys_ovadvise_args *, register_t *);
-
 int    sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *);
 
 int    sys_mprotect(struct lwp *, const struct sys_mprotect_args *, register_t *);
diff -r 40d6b32acc21 -r eba2c319b02d sys/compat/sunos/sunos_syscalls.c
--- a/sys/compat/sunos/sunos_syscalls.c Tue Dec 19 19:18:18 2017 +0000
+++ b/sys/compat/sunos/sunos_syscalls.c Tue Dec 19 19:19:16 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: sunos_syscalls.c,v 1.93 2017/12/19 18:24:21 kamil Exp $ */
+/* $NetBSD: sunos_syscalls.c,v 1.94 2017/12/19 19:19:16 kamil Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.77 2017/12/19 08:25:37 kamil Exp
+ * created from        NetBSD: syscalls.master,v 1.78 2017/12/19 18:24:21 kamil Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunos_syscalls.c,v 1.93 2017/12/19 18:24:21 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_syscalls.c,v 1.94 2017/12/19 19:19:16 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -100,7 +100,7 @@
        /*  69 */       "#69 (obsolete sbrk)",
        /*  70 */       "#70 (obsolete sstk)",
        /*  71 */       "mmap",
-       /*  72 */       "vadvise",
+       /*  72 */       "#72 (obsolete vadvise)",
        /*  73 */       "munmap",
        /*  74 */       "mprotect",
        /*  75 */       "madvise",
@@ -373,7 +373,7 @@
        /*  69 */       NULL, /* obsolete sbrk */
        /*  70 */       NULL, /* obsolete sstk */
        /*  71 */       NULL, /* mmap */
-       /*  72 */       "ovadvise",
+       /*  72 */       NULL, /* obsolete vadvise */
        /*  73 */       NULL, /* munmap */
        /*  74 */       NULL, /* mprotect */
        /*  75 */       NULL, /* madvise */
diff -r 40d6b32acc21 -r eba2c319b02d sys/compat/sunos/sunos_sysent.c
--- a/sys/compat/sunos/sunos_sysent.c   Tue Dec 19 19:18:18 2017 +0000
+++ b/sys/compat/sunos/sunos_sysent.c   Tue Dec 19 19:19:16 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: sunos_sysent.c,v 1.89 2017/12/19 18:24:21 kamil Exp $ */
+/* $NetBSD: sunos_sysent.c,v 1.90 2017/12/19 19:19:16 kamil Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.77 2017/12/19 08:25:37 kamil Exp
+ * created from        NetBSD: syscalls.master,v 1.78 2017/12/19 18:24:21 kamil Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunos_sysent.c,v 1.89 2017/12/19 18:24:21 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_sysent.c,v 1.90 2017/12/19 19:19:16 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sysv.h"
@@ -313,9 +313,8 @@
                .sy_call = (sy_call_t *)sunos_sys_mmap
        },              /* 71 = mmap */
        {
-               ns(struct sys_ovadvise_args),
-               .sy_call = (sy_call_t *)sys_ovadvise
-       },              /* 72 = vadvise */
+               .sy_call = sys_nosys,
+       },              /* 72 = filler */
        {
                ns(struct sys_munmap_args),
                .sy_flags = SYCALL_ARG_PTR,
diff -r 40d6b32acc21 -r eba2c319b02d sys/compat/sunos/syscalls.master
--- a/sys/compat/sunos/syscalls.master  Tue Dec 19 19:18:18 2017 +0000
+++ b/sys/compat/sunos/syscalls.master  Tue Dec 19 19:19:16 2017 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.78 2017/12/19 18:24:21 kamil Exp $
+       $NetBSD: syscalls.master,v 1.79 2017/12/19 19:19:16 kamil Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -132,7 +132,7 @@
 70     OBSOL           sstk
 71     STD             { void *|sunos_sys||mmap(void *addr, size_t len, \
                            int prot, int flags, int fd, long pos); }
-72     NOARGS          { int|sys||ovadvise(int anom); } vadvise
+72     OBSOL           vadvise
 73     NOARGS          { int|sys||munmap(void *addr, size_t len); }
 74     NOARGS          { int|sys||mprotect(void *addr, size_t len, \
                            int prot); }



Home | Main Index | Thread Index | Old Index