Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/70c492989631
branches:  trunk
changeset: 358270:70c492989631
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Dec 19 18:15:08 2017 +0000

description:
compat/freebsd: 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/freebsd/freebsd_syscall.h     |   8 +++-----
 sys/compat/freebsd/freebsd_syscallargs.h |   8 ++------
 sys/compat/freebsd/freebsd_syscalls.c    |  10 +++++-----
 sys/compat/freebsd/freebsd_sysent.c      |  11 +++++------
 sys/compat/freebsd/syscalls.master       |   4 ++--
 5 files changed, 17 insertions(+), 24 deletions(-)

diffs (151 lines):

diff -r 214dc4077b2b -r 70c492989631 sys/compat/freebsd/freebsd_syscall.h
--- a/sys/compat/freebsd/freebsd_syscall.h      Tue Dec 19 18:10:22 2017 +0000
+++ b/sys/compat/freebsd/freebsd_syscall.h      Tue Dec 19 18:15:08 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: freebsd_syscall.h,v 1.85 2017/12/19 08:27:05 kamil Exp $ */
+/* $NetBSD: freebsd_syscall.h,v 1.86 2017/12/19 18:15:08 kamil Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.68 2017/08/08 08:04:06 maxv Exp
+ * created from        NetBSD: syscalls.master,v 1.69 2017/12/19 08:27:05 kamil Exp
  */
 
 #ifndef _FREEBSD_SYS_SYSCALL_H_
@@ -217,9 +217,7 @@
 
                                /* 67 is obsolete vread */
                                /* 68 is obsolete vwrite */
-/* syscall: "sbrk" ret: "int" args: "intptr_t" */
-#define        FREEBSD_SYS_sbrk        69
-
+                               /* 69 is obsolete sbrk */
                                /* 70 is obsolete sstk */
 /* syscall: "ommap" ret: "int" args: "void *" "size_t" "int" "int" "int" "long" */
 #define        FREEBSD_SYS_ommap       71
diff -r 214dc4077b2b -r 70c492989631 sys/compat/freebsd/freebsd_syscallargs.h
--- a/sys/compat/freebsd/freebsd_syscallargs.h  Tue Dec 19 18:10:22 2017 +0000
+++ b/sys/compat/freebsd/freebsd_syscallargs.h  Tue Dec 19 18:15:08 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: freebsd_syscallargs.h,v 1.88 2017/12/19 08:27:05 kamil Exp $ */
+/* $NetBSD: freebsd_syscallargs.h,v 1.89 2017/12/19 18:15:08 kamil Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.68 2017/08/08 08:04:06 maxv Exp
+ * created from        NetBSD: syscalls.master,v 1.69 2017/12/19 08:27:05 kamil Exp
  */
 
 #ifndef _FREEBSD_SYS_SYSCALLARGS_H_
@@ -165,8 +165,6 @@
 };
 check_syscall_args(freebsd_sys_msync)
 
-struct sys_sbrk_args;
-
 struct compat_43_sys_mmap_args;
 
 struct sys_ovadvise_args;
@@ -738,8 +736,6 @@
 
 int    sys_vfork(struct lwp *, const void *, register_t *);
 
-int    sys_sbrk(struct lwp *, const struct sys_sbrk_args *, register_t *);
-
 int    compat_43_sys_mmap(struct lwp *, const struct compat_43_sys_mmap_args *, register_t *);
 
 int    sys_ovadvise(struct lwp *, const struct sys_ovadvise_args *, register_t *);
diff -r 214dc4077b2b -r 70c492989631 sys/compat/freebsd/freebsd_syscalls.c
--- a/sys/compat/freebsd/freebsd_syscalls.c     Tue Dec 19 18:10:22 2017 +0000
+++ b/sys/compat/freebsd/freebsd_syscalls.c     Tue Dec 19 18:15:08 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: freebsd_syscalls.c,v 1.86 2017/12/19 08:27:05 kamil Exp $ */
+/* $NetBSD: freebsd_syscalls.c,v 1.87 2017/12/19 18:15:08 kamil Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.68 2017/08/08 08:04:06 maxv Exp
+ * created from        NetBSD: syscalls.master,v 1.69 2017/12/19 08:27:05 kamil Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: freebsd_syscalls.c,v 1.86 2017/12/19 08:27:05 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: freebsd_syscalls.c,v 1.87 2017/12/19 18:15:08 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -104,7 +104,7 @@
        /*  66 */       "vfork",
        /*  67 */       "#67 (obsolete vread)",
        /*  68 */       "#68 (obsolete vwrite)",
-       /*  69 */       "sbrk",
+       /*  69 */       "#69 (obsolete sbrk)",
        /*  70 */       "#70 (obsolete sstk)",
        /*  71 */       "ommap",
        /*  72 */       "vadvise",
@@ -674,7 +674,7 @@
        /*  66 */       NULL, /* vfork */
        /*  67 */       NULL, /* obsolete vread */
        /*  68 */       NULL, /* obsolete vwrite */
-       /*  69 */       NULL, /* sbrk */
+       /*  69 */       NULL, /* obsolete sbrk */
        /*  70 */       NULL, /* obsolete sstk */
        /*  71 */       "mmap",
        /*  72 */       "ovadvise",
diff -r 214dc4077b2b -r 70c492989631 sys/compat/freebsd/freebsd_sysent.c
--- a/sys/compat/freebsd/freebsd_sysent.c       Tue Dec 19 18:10:22 2017 +0000
+++ b/sys/compat/freebsd/freebsd_sysent.c       Tue Dec 19 18:15:08 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: freebsd_sysent.c,v 1.88 2017/12/19 08:27:05 kamil Exp $ */
+/* $NetBSD: freebsd_sysent.c,v 1.89 2017/12/19 18:15:08 kamil Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.68 2017/08/08 08:04:06 maxv Exp
+ * created from        NetBSD: syscalls.master,v 1.69 2017/12/19 08:27:05 kamil Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: freebsd_sysent.c,v 1.88 2017/12/19 08:27:05 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: freebsd_sysent.c,v 1.89 2017/12/19 18:15:08 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ktrace.h"
@@ -340,9 +340,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 214dc4077b2b -r 70c492989631 sys/compat/freebsd/syscalls.master
--- a/sys/compat/freebsd/syscalls.master        Tue Dec 19 18:10:22 2017 +0000
+++ b/sys/compat/freebsd/syscalls.master        Tue Dec 19 18:15:08 2017 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.69 2017/12/19 08:27:05 kamil Exp $
+       $NetBSD: syscalls.master,v 1.70 2017/12/19 18:15:08 kamil Exp $
 
 ;      from: @(#)syscalls.master       8.2 (Berkeley) 1/13/94
 
@@ -157,7 +157,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     NOARGS          { int|compat_43_sys||mmap(void *addr, size_t len, \
                            int prot, int flags, int fd, long pos); } ommap



Home | Main Index | Thread Index | Old Index