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_sbrk



details:   https://anonhg.NetBSD.org/src/rev/45dfdd027124
branches:  trunk
changeset: 828573:45dfdd027124
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Dec 19 18:24:21 2017 +0000

description:
compat/sunos: Drop SYS_sbrk

sbrk - change data segment size

This syscall is dummy since the inception of the project.

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 5f957ce33752 -r 45dfdd027124 sys/compat/sunos/sunos_syscall.h
--- a/sys/compat/sunos/sunos_syscall.h  Tue Dec 19 18:20:11 2017 +0000
+++ b/sys/compat/sunos/sunos_syscall.h  Tue Dec 19 18:24:21 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: sunos_syscall.h,v 1.93 2017/12/19 08:25:37 kamil Exp $ */
+/* $NetBSD: sunos_syscall.h,v 1.94 2017/12/19 18:24:21 kamil Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.76 2013/11/07 19:37:19 njoly Exp
+ * created from        NetBSD: syscalls.master,v 1.77 2017/12/19 08:25:37 kamil Exp
  */
 
 #ifndef _SUNOS_SYS_SYSCALL_H_
@@ -156,9 +156,7 @@
 
                                /* 67 is obsolete vread */
                                /* 68 is obsolete vwrite */
-/* syscall: "sbrk" ret: "int" args: "intptr_t" */
-#define        SUNOS_SYS_sbrk  69
-
+                               /* 69 is obsolete sbrk */
                                /* 70 is obsolete sstk */
 /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" */
 #define        SUNOS_SYS_mmap  71
diff -r 5f957ce33752 -r 45dfdd027124 sys/compat/sunos/sunos_syscallargs.h
--- a/sys/compat/sunos/sunos_syscallargs.h      Tue Dec 19 18:20:11 2017 +0000
+++ b/sys/compat/sunos/sunos_syscallargs.h      Tue Dec 19 18:24:21 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: sunos_syscallargs.h,v 1.77 2017/12/19 08:25:37 kamil Exp $ */
+/* $NetBSD: sunos_syscallargs.h,v 1.78 2017/12/19 18:24:21 kamil Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.76 2013/11/07 19:37:19 njoly Exp
+ * created from        NetBSD: syscalls.master,v 1.77 2017/12/19 08:25:37 kamil Exp
  */
 
 #ifndef _SUNOS_SYS_SYSCALLARGS_H_
@@ -167,8 +167,6 @@
 };
 check_syscall_args(sunos_sys_omsync)
 
-struct sys_sbrk_args;
-
 struct sunos_sys_mmap_args {
        syscallarg(void *) addr;
        syscallarg(size_t) len;
@@ -552,8 +550,6 @@
 
 int    sys_vfork(struct lwp *, const void *, register_t *);
 
-int    sys_sbrk(struct lwp *, const struct sys_sbrk_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 5f957ce33752 -r 45dfdd027124 sys/compat/sunos/sunos_syscalls.c
--- a/sys/compat/sunos/sunos_syscalls.c Tue Dec 19 18:20:11 2017 +0000
+++ b/sys/compat/sunos/sunos_syscalls.c Tue Dec 19 18:24:21 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: sunos_syscalls.c,v 1.92 2017/12/19 08:25:37 kamil Exp $ */
+/* $NetBSD: sunos_syscalls.c,v 1.93 2017/12/19 18:24:21 kamil Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.76 2013/11/07 19:37:19 njoly Exp
+ * created from        NetBSD: syscalls.master,v 1.77 2017/12/19 08:25:37 kamil Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunos_syscalls.c,v 1.92 2017/12/19 08:25:37 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_syscalls.c,v 1.93 2017/12/19 18:24:21 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -97,7 +97,7 @@
        /*  66 */       "vfork",
        /*  67 */       "#67 (obsolete vread)",
        /*  68 */       "#68 (obsolete vwrite)",
-       /*  69 */       "sbrk",
+       /*  69 */       "#69 (obsolete sbrk)",
        /*  70 */       "#70 (obsolete sstk)",
        /*  71 */       "mmap",
        /*  72 */       "vadvise",
@@ -370,7 +370,7 @@
        /*  66 */       NULL, /* vfork */
        /*  67 */       NULL, /* obsolete vread */
        /*  68 */       NULL, /* obsolete vwrite */
-       /*  69 */       NULL, /* sbrk */
+       /*  69 */       NULL, /* obsolete sbrk */
        /*  70 */       NULL, /* obsolete sstk */
        /*  71 */       NULL, /* mmap */
        /*  72 */       "ovadvise",
diff -r 5f957ce33752 -r 45dfdd027124 sys/compat/sunos/sunos_sysent.c
--- a/sys/compat/sunos/sunos_sysent.c   Tue Dec 19 18:20:11 2017 +0000
+++ b/sys/compat/sunos/sunos_sysent.c   Tue Dec 19 18:24:21 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: sunos_sysent.c,v 1.88 2017/12/19 08:25:37 kamil Exp $ */
+/* $NetBSD: sunos_sysent.c,v 1.89 2017/12/19 18:24:21 kamil Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.76 2013/11/07 19:37:19 njoly Exp
+ * created from        NetBSD: syscalls.master,v 1.77 2017/12/19 08:25:37 kamil Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunos_sysent.c,v 1.88 2017/12/19 08:25:37 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_sysent.c,v 1.89 2017/12/19 18:24:21 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sysv.h"
@@ -302,9 +302,8 @@
                .sy_call = sys_nosys,
        },              /* 68 = filler */
        {
-               ns(struct sys_sbrk_args),
-               .sy_call = (sy_call_t *)sys_sbrk
-       },              /* 69 = sbrk */
+               .sy_call = sys_nosys,
+       },              /* 69 = filler */
        {
                .sy_call = sys_nosys,
        },              /* 70 = filler */
diff -r 5f957ce33752 -r 45dfdd027124 sys/compat/sunos/syscalls.master
--- a/sys/compat/sunos/syscalls.master  Tue Dec 19 18:20:11 2017 +0000
+++ b/sys/compat/sunos/syscalls.master  Tue Dec 19 18:24:21 2017 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.77 2017/12/19 08:25:37 kamil Exp $
+       $NetBSD: syscalls.master,v 1.78 2017/12/19 18:24:21 kamil Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -128,7 +128,7 @@
 66     NOARGS          { int|sys||vfork(void); }
 67     OBSOL           vread
 68     OBSOL           vwrite
-69     NOARGS          { int|sys||sbrk(intptr_t incr); }
+69     OBSOL           sbrk
 70     OBSOL           sstk
 71     STD             { void *|sunos_sys||mmap(void *addr, size_t len, \
                            int prot, int flags, int fd, long pos); }



Home | Main Index | Thread Index | Old Index