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 the sstk(2) syscall



details:   https://anonhg.NetBSD.org/src/rev/1ebfd048ff7e
branches:  trunk
changeset: 828559:1ebfd048ff7e
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Dec 19 08:25:37 2017 +0000

description:
compat sunos: Drop the sstk(2) syscall

sstk(2) has never been implemented by the NetBSD kernel.

Sponsored by <The NetBSD Foundation>

diffstat:

 sys/compat/sunos/sunos_syscall.h     |  6 ++----
 sys/compat/sunos/sunos_syscallargs.h |  6 +-----
 sys/compat/sunos/sunos_syscalls.c    |  8 ++++----
 sys/compat/sunos/sunos_sysent.c      |  9 ++++-----
 sys/compat/sunos/syscalls.master     |  4 ++--
 5 files changed, 13 insertions(+), 20 deletions(-)

diffs (131 lines):

diff -r 989ab68f78b6 -r 1ebfd048ff7e sys/compat/sunos/sunos_syscall.h
--- a/sys/compat/sunos/sunos_syscall.h  Tue Dec 19 08:24:41 2017 +0000
+++ b/sys/compat/sunos/sunos_syscall.h  Tue Dec 19 08:25:37 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos_syscall.h,v 1.92 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: sunos_syscall.h,v 1.93 2017/12/19 08:25:37 kamil Exp $ */
 
 /*
  * System call numbers.
@@ -159,9 +159,7 @@
 /* syscall: "sbrk" ret: "int" args: "intptr_t" */
 #define        SUNOS_SYS_sbrk  69
 
-/* syscall: "sstk" ret: "int" args: "int" */
-#define        SUNOS_SYS_sstk  70
-
+                               /* 70 is obsolete sstk */
 /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" */
 #define        SUNOS_SYS_mmap  71
 
diff -r 989ab68f78b6 -r 1ebfd048ff7e sys/compat/sunos/sunos_syscallargs.h
--- a/sys/compat/sunos/sunos_syscallargs.h      Tue Dec 19 08:24:41 2017 +0000
+++ b/sys/compat/sunos/sunos_syscallargs.h      Tue Dec 19 08:25:37 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos_syscallargs.h,v 1.76 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: sunos_syscallargs.h,v 1.77 2017/12/19 08:25:37 kamil Exp $ */
 
 /*
  * System call argument lists.
@@ -169,8 +169,6 @@
 
 struct sys_sbrk_args;
 
-struct sys_sstk_args;
-
 struct sunos_sys_mmap_args {
        syscallarg(void *) addr;
        syscallarg(size_t) len;
@@ -556,8 +554,6 @@
 
 int    sys_sbrk(struct lwp *, const struct sys_sbrk_args *, register_t *);
 
-int    sys_sstk(struct lwp *, const struct sys_sstk_args *, register_t *);
-
 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 *);
diff -r 989ab68f78b6 -r 1ebfd048ff7e sys/compat/sunos/sunos_syscalls.c
--- a/sys/compat/sunos/sunos_syscalls.c Tue Dec 19 08:24:41 2017 +0000
+++ b/sys/compat/sunos/sunos_syscalls.c Tue Dec 19 08:25:37 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos_syscalls.c,v 1.91 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: sunos_syscalls.c,v 1.92 2017/12/19 08:25:37 kamil Exp $ */
 
 /*
  * System call names.
@@ -8,7 +8,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunos_syscalls.c,v 1.91 2017/05/10 06:19:49 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_syscalls.c,v 1.92 2017/12/19 08:25:37 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -98,7 +98,7 @@
        /*  67 */       "#67 (obsolete vread)",
        /*  68 */       "#68 (obsolete vwrite)",
        /*  69 */       "sbrk",
-       /*  70 */       "sstk",
+       /*  70 */       "#70 (obsolete sstk)",
        /*  71 */       "mmap",
        /*  72 */       "vadvise",
        /*  73 */       "munmap",
@@ -371,7 +371,7 @@
        /*  67 */       NULL, /* obsolete vread */
        /*  68 */       NULL, /* obsolete vwrite */
        /*  69 */       NULL, /* sbrk */
-       /*  70 */       NULL, /* sstk */
+       /*  70 */       NULL, /* obsolete sstk */
        /*  71 */       NULL, /* mmap */
        /*  72 */       "ovadvise",
        /*  73 */       NULL, /* munmap */
diff -r 989ab68f78b6 -r 1ebfd048ff7e sys/compat/sunos/sunos_sysent.c
--- a/sys/compat/sunos/sunos_sysent.c   Tue Dec 19 08:24:41 2017 +0000
+++ b/sys/compat/sunos/sunos_sysent.c   Tue Dec 19 08:25:37 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos_sysent.c,v 1.87 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: sunos_sysent.c,v 1.88 2017/12/19 08:25:37 kamil Exp $ */
 
 /*
  * System call switch table.
@@ -8,7 +8,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunos_sysent.c,v 1.87 2017/05/10 06:19:49 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_sysent.c,v 1.88 2017/12/19 08:25:37 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sysv.h"
@@ -306,9 +306,8 @@
                .sy_call = (sy_call_t *)sys_sbrk
        },              /* 69 = sbrk */
        {
-               ns(struct sys_sstk_args),
-               .sy_call = (sy_call_t *)sys_sstk
-       },              /* 70 = sstk */
+               .sy_call = sys_nosys,
+       },              /* 70 = filler */
        {
                ns(struct sunos_sys_mmap_args),
                .sy_flags = SYCALL_ARG_PTR,
diff -r 989ab68f78b6 -r 1ebfd048ff7e sys/compat/sunos/syscalls.master
--- a/sys/compat/sunos/syscalls.master  Tue Dec 19 08:24:41 2017 +0000
+++ b/sys/compat/sunos/syscalls.master  Tue Dec 19 08:25:37 2017 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.76 2013/11/07 19:37:19 njoly Exp $
+       $NetBSD: syscalls.master,v 1.77 2017/12/19 08:25:37 kamil Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -129,7 +129,7 @@
 67     OBSOL           vread
 68     OBSOL           vwrite
 69     NOARGS          { int|sys||sbrk(intptr_t incr); }
-70     NOARGS          { int|sys||sstk(int incr); }
+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



Home | Main Index | Thread Index | Old Index