Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/aoutm68k compat/aoutm68k: Drop SYS_sbrk



details:   https://anonhg.NetBSD.org/src/rev/d14894202047
branches:  trunk
changeset: 828570:d14894202047
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Dec 19 18:10:22 2017 +0000

description:
compat/aoutm68k: Drop SYS_sbrk

sbrk - change data segment size

This syscall is dummy since the inception of the project. It's implemented
in userland in libc.

Sponsored by <The NetBSD Foundation>

diffstat:

 sys/compat/aoutm68k/aoutm68k_syscall.h     |   8 +++-----
 sys/compat/aoutm68k/aoutm68k_syscallargs.h |   8 ++------
 sys/compat/aoutm68k/aoutm68k_syscalls.c    |  10 +++++-----
 sys/compat/aoutm68k/aoutm68k_sysent.c      |  11 +++++------
 sys/compat/aoutm68k/syscalls.master        |   4 ++--
 5 files changed, 17 insertions(+), 24 deletions(-)

diffs (151 lines):

diff -r bfae9f2d4645 -r d14894202047 sys/compat/aoutm68k/aoutm68k_syscall.h
--- a/sys/compat/aoutm68k/aoutm68k_syscall.h    Tue Dec 19 17:05:15 2017 +0000
+++ b/sys/compat/aoutm68k/aoutm68k_syscall.h    Tue Dec 19 18:10:22 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: aoutm68k_syscall.h,v 1.49 2017/12/19 08:09:36 kamil Exp $ */
+/* $NetBSD: aoutm68k_syscall.h,v 1.50 2017/12/19 18:10:22 kamil Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.37 2011/03/07 19:26:35 bouyer Exp
+ * created from        NetBSD: syscalls.master,v 1.38 2017/12/19 08:09:36 kamil Exp
  */
 
 #ifndef _AOUTM68K_SYS_SYSCALL_H_
@@ -264,9 +264,7 @@
 
                                /* 67 is obsolete vread */
                                /* 68 is obsolete vwrite */
-/* syscall: "sbrk" ret: "int" args: "intptr_t" */
-#define        AOUTM68K_SYS_sbrk       69
-
+                               /* 69 is obsolete sbrk */
                                /* 70 is obsolete sstk */
 #if defined(COMPAT_43) || !defined(_KERNEL)
 /* syscall: "ommap" ret: "int" args: "void *" "size_t" "int" "int" "int" "long" */
diff -r bfae9f2d4645 -r d14894202047 sys/compat/aoutm68k/aoutm68k_syscallargs.h
--- a/sys/compat/aoutm68k/aoutm68k_syscallargs.h        Tue Dec 19 17:05:15 2017 +0000
+++ b/sys/compat/aoutm68k/aoutm68k_syscallargs.h        Tue Dec 19 18:10:22 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: aoutm68k_syscallargs.h,v 1.47 2017/12/19 08:09:36 kamil Exp $ */
+/* $NetBSD: aoutm68k_syscallargs.h,v 1.48 2017/12/19 18:10:22 kamil Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.37 2011/03/07 19:26:35 bouyer Exp
+ * created from        NetBSD: syscalls.master,v 1.38 2017/12/19 08:09:36 kamil Exp
  */
 
 #ifndef _AOUTM68K_SYS_SYSCALLARGS_H_
@@ -189,8 +189,6 @@
 struct compat_12_sys_msync_args;
 #else
 #endif
-
-struct sys_sbrk_args;
 #if defined(COMPAT_43) || !defined(_KERNEL)
 
 struct compat_43_sys_mmap_args;
@@ -820,8 +818,6 @@
 #endif
 int    sys_vfork(struct lwp *, const void *, register_t *);
 
-int    sys_sbrk(struct lwp *, const struct sys_sbrk_args *, register_t *);
-
 #if defined(COMPAT_43) || !defined(_KERNEL)
 int    compat_43_sys_mmap(struct lwp *, const struct compat_43_sys_mmap_args *, register_t *);
 
diff -r bfae9f2d4645 -r d14894202047 sys/compat/aoutm68k/aoutm68k_syscalls.c
--- a/sys/compat/aoutm68k/aoutm68k_syscalls.c   Tue Dec 19 17:05:15 2017 +0000
+++ b/sys/compat/aoutm68k/aoutm68k_syscalls.c   Tue Dec 19 18:10:22 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: aoutm68k_syscalls.c,v 1.46 2017/12/19 08:09:36 kamil Exp $ */
+/* $NetBSD: aoutm68k_syscalls.c,v 1.47 2017/12/19 18:10:22 kamil Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.37 2011/03/07 19:26:35 bouyer Exp
+ * created from        NetBSD: syscalls.master,v 1.38 2017/12/19 08:09:36 kamil Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aoutm68k_syscalls.c,v 1.46 2017/12/19 08:09:36 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aoutm68k_syscalls.c,v 1.47 2017/12/19 18:10:22 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -151,7 +151,7 @@
        /*  66 */       "vfork",
        /*  67 */       "#67 (obsolete vread)",
        /*  68 */       "#68 (obsolete vwrite)",
-       /*  69 */       "sbrk",
+       /*  69 */       "#69 (obsolete sbrk)",
        /*  70 */       "#70 (obsolete sstk)",
 #if defined(COMPAT_43) || !defined(_KERNEL)
        /*  71 */       "ommap",
@@ -898,7 +898,7 @@
        /*  66 */       NULL, /* vfork */
        /*  67 */       NULL, /* obsolete vread */
        /*  68 */       NULL, /* obsolete vwrite */
-       /*  69 */       NULL, /* sbrk */
+       /*  69 */       NULL, /* obsolete sbrk */
        /*  70 */       NULL, /* obsolete sstk */
 #if defined(COMPAT_43) || !defined(_KERNEL)
        /*  71 */       "mmap",
diff -r bfae9f2d4645 -r d14894202047 sys/compat/aoutm68k/aoutm68k_sysent.c
--- a/sys/compat/aoutm68k/aoutm68k_sysent.c     Tue Dec 19 17:05:15 2017 +0000
+++ b/sys/compat/aoutm68k/aoutm68k_sysent.c     Tue Dec 19 18:10:22 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: aoutm68k_sysent.c,v 1.51 2017/12/19 08:09:36 kamil Exp $ */
+/* $NetBSD: aoutm68k_sysent.c,v 1.52 2017/12/19 18:10:22 kamil Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.37 2011/03/07 19:26:35 bouyer Exp
+ * created from        NetBSD: syscalls.master,v 1.38 2017/12/19 08:09:36 kamil Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aoutm68k_sysent.c,v 1.51 2017/12/19 08:09:36 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aoutm68k_sysent.c,v 1.52 2017/12/19 18:10:22 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ktrace.h"
@@ -417,9 +417,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 bfae9f2d4645 -r d14894202047 sys/compat/aoutm68k/syscalls.master
--- a/sys/compat/aoutm68k/syscalls.master       Tue Dec 19 17:05:15 2017 +0000
+++ b/sys/compat/aoutm68k/syscalls.master       Tue Dec 19 18:10:22 2017 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.38 2017/12/19 08:09:36 kamil Exp $
+       $NetBSD: syscalls.master,v 1.39 2017/12/19 18:10:22 kamil Exp $
 
 ;      @(#)syscalls.master     8.2 (Berkeley) 1/13/94
 
@@ -212,7 +212,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
 #if defined(COMPAT_43) || !defined(_KERNEL)
 71     NOARGS          { int|compat_43_sys||mmap(void *addr, size_t len, \



Home | Main Index | Thread Index | Old Index