Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Drop SYS_sbrk
details: https://anonhg.NetBSD.org/src/rev/6304870c20fb
branches: trunk
changeset: 358274:6304870c20fb
user: kamil <kamil%NetBSD.org@localhost>
date: Tue Dec 19 18:34:47 2017 +0000
description:
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/netbsd32/netbsd32_netbsd.c | 16 ++--------------
sys/compat/netbsd32/netbsd32_syscall.h | 8 +++-----
sys/compat/netbsd32/netbsd32_syscallargs.h | 11 ++---------
sys/compat/netbsd32/netbsd32_syscalls.c | 10 +++++-----
sys/compat/netbsd32/netbsd32_sysent.c | 11 +++++------
sys/compat/netbsd32/netbsd32_systrace_args.c | 24 +-----------------------
sys/compat/netbsd32/syscalls.master | 4 ++--
sys/kern/init_sysent.c | 11 +++++------
sys/kern/syscalls.c | 10 +++++-----
sys/kern/syscalls.master | 4 ++--
sys/kern/systrace_args.c | 24 +-----------------------
sys/rump/librump/rumpkern/rump_syscalls.c | 11 ++++++-----
sys/sys/syscall.h | 8 +++-----
sys/sys/syscallargs.h | 13 ++-----------
sys/uvm/uvm_mmap.c | 23 ++---------------------
15 files changed, 46 insertions(+), 142 deletions(-)
diffs (truncated from 532 to 300 lines):
diff -r 783f1cb33d6c -r 6304870c20fb sys/compat/netbsd32/netbsd32_netbsd.c
--- a/sys/compat/netbsd32/netbsd32_netbsd.c Tue Dec 19 18:25:53 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_netbsd.c Tue Dec 19 18:34:47 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_netbsd.c,v 1.209 2017/12/19 08:48:19 kamil Exp $ */
+/* $NetBSD: netbsd32_netbsd.c,v 1.210 2017/12/19 18:34:47 kamil Exp $ */
/*
* Copyright (c) 1998, 2001, 2008 Matthew R. Green
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.209 2017/12/19 08:48:19 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.210 2017/12/19 18:34:47 kamil Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ddb.h"
@@ -701,18 +701,6 @@
}
int
-netbsd32_sbrk(struct lwp *l, const struct netbsd32_sbrk_args *uap, register_t *retval)
-{
- /* {
- syscallarg(int) incr;
- } */
- struct sys_sbrk_args ua;
-
- NETBSD32TO64_UAP(incr);
- return (sys_sbrk(l, &ua, retval));
-}
-
-int
netbsd32_munmap(struct lwp *l, const struct netbsd32_munmap_args *uap, register_t *retval)
{
/* {
diff -r 783f1cb33d6c -r 6304870c20fb sys/compat/netbsd32/netbsd32_syscall.h
--- a/sys/compat/netbsd32/netbsd32_syscall.h Tue Dec 19 18:25:53 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscall.h Tue Dec 19 18:34:47 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: netbsd32_syscall.h,v 1.131 2017/12/19 08:48:19 kamil Exp $ */
+/* $NetBSD: netbsd32_syscall.h,v 1.132 2017/12/19 18:34:47 kamil Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.116 2017/12/19 07:58:50 kamil Exp
+ * created from NetBSD: syscalls.master,v 1.117 2017/12/19 08:48:19 kamil Exp
*/
#ifndef _NETBSD32_SYS_SYSCALL_H_
@@ -213,9 +213,7 @@
/* 67 is obsolete vread */
/* 68 is obsolete vwrite */
-/* syscall: "netbsd32_sbrk" ret: "int" args: "netbsd32_intptr_t" */
-#define NETBSD32_SYS_netbsd32_sbrk 69
-
+ /* 69 is obsolete sbrk */
/* 70 is obsolete sstk */
/* syscall: "compat_43_netbsd32_ommap" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" "int" "int" "int" "netbsd32_long" */
#define NETBSD32_SYS_compat_43_netbsd32_ommap 71
diff -r 783f1cb33d6c -r 6304870c20fb sys/compat/netbsd32/netbsd32_syscallargs.h
--- a/sys/compat/netbsd32/netbsd32_syscallargs.h Tue Dec 19 18:25:53 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscallargs.h Tue Dec 19 18:34:47 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: netbsd32_syscallargs.h,v 1.131 2017/12/19 08:48:19 kamil Exp $ */
+/* $NetBSD: netbsd32_syscallargs.h,v 1.132 2017/12/19 18:34:47 kamil Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.116 2017/12/19 07:58:50 kamil Exp
+ * created from NetBSD: syscalls.master,v 1.117 2017/12/19 08:48:19 kamil Exp
*/
#ifndef _NETBSD32_SYS_SYSCALLARGS_H_
@@ -375,11 +375,6 @@
};
check_syscall_args(compat_12_netbsd32_msync)
-struct netbsd32_sbrk_args {
- syscallarg(netbsd32_intptr_t) incr;
-};
-check_syscall_args(netbsd32_sbrk)
-
struct compat_43_netbsd32_ommap_args {
syscallarg(netbsd32_voidp) addr;
syscallarg(netbsd32_size_t) len;
@@ -2734,8 +2729,6 @@
int sys_vfork(struct lwp *, const void *, register_t *);
-int netbsd32_sbrk(struct lwp *, const struct netbsd32_sbrk_args *, register_t *);
-
int compat_43_netbsd32_ommap(struct lwp *, const struct compat_43_netbsd32_ommap_args *, register_t *);
int netbsd32_ovadvise(struct lwp *, const struct netbsd32_ovadvise_args *, register_t *);
diff -r 783f1cb33d6c -r 6304870c20fb sys/compat/netbsd32/netbsd32_syscalls.c
--- a/sys/compat/netbsd32/netbsd32_syscalls.c Tue Dec 19 18:25:53 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscalls.c Tue Dec 19 18:34:47 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_syscalls.c,v 1.129 2017/12/19 08:48:19 kamil Exp $ */
+/* $NetBSD: netbsd32_syscalls.c,v 1.130 2017/12/19 18:34:47 kamil Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.116 2017/12/19 07:58:50 kamil Exp
+ * created from NetBSD: syscalls.master,v 1.117 2017/12/19 08:48:19 kamil Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.129 2017/12/19 08:48:19 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.130 2017/12/19 18:34:47 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 */ "netbsd32_sbrk",
+ /* 69 */ "#69 (obsolete sbrk)",
/* 70 */ "#70 (obsolete sstk)",
/* 71 */ "compat_43_netbsd32_ommap",
/* 72 */ "vadvise",
@@ -627,7 +627,7 @@
/* 66 */ NULL, /* vfork */
/* 67 */ NULL, /* obsolete vread */
/* 68 */ NULL, /* obsolete vwrite */
- /* 69 */ "sbrk",
+ /* 69 */ NULL, /* obsolete sbrk */
/* 70 */ NULL, /* obsolete sstk */
/* 71 */ NULL, /* compat_43_netbsd32_ommap */
/* 72 */ "ovadvise",
diff -r 783f1cb33d6c -r 6304870c20fb sys/compat/netbsd32/netbsd32_sysent.c
--- a/sys/compat/netbsd32/netbsd32_sysent.c Tue Dec 19 18:25:53 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_sysent.c Tue Dec 19 18:34:47 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_sysent.c,v 1.129 2017/12/19 08:48:19 kamil Exp $ */
+/* $NetBSD: netbsd32_sysent.c,v 1.130 2017/12/19 18:34:47 kamil Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.116 2017/12/19 07:58:50 kamil Exp
+ * created from NetBSD: syscalls.master,v 1.117 2017/12/19 08:48:19 kamil Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.129 2017/12/19 08:48:19 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.130 2017/12/19 18:34:47 kamil Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -381,9 +381,8 @@
.sy_call = sys_nosys,
}, /* 68 = filler */
{
- ns(struct netbsd32_sbrk_args),
- .sy_call = (sy_call_t *)netbsd32_sbrk
- }, /* 69 = netbsd32_sbrk */
+ .sy_call = sys_nosys,
+ }, /* 69 = filler */
{
.sy_call = sys_nosys,
}, /* 70 = filler */
diff -r 783f1cb33d6c -r 6304870c20fb sys/compat/netbsd32/netbsd32_systrace_args.c
--- a/sys/compat/netbsd32/netbsd32_systrace_args.c Tue Dec 19 18:25:53 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_systrace_args.c Tue Dec 19 18:34:47 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_systrace_args.c,v 1.21 2017/12/19 08:48:19 kamil Exp $ */
+/* $NetBSD: netbsd32_systrace_args.c,v 1.22 2017/12/19 18:34:47 kamil Exp $ */
/*
* System call argument to DTrace register array converstion.
@@ -522,13 +522,6 @@
*n_args = 0;
break;
}
- /* netbsd32_sbrk */
- case 69: {
- const struct netbsd32_sbrk_args *p = params;
- iarg[0] = SCARG(p, incr); /* netbsd32_intptr_t */
- *n_args = 1;
- break;
- }
/* netbsd32_ommap */
case 71: {
const struct compat_43_netbsd32_ommap_args *p = params;
@@ -4266,16 +4259,6 @@
/* sys_vfork */
case 66:
break;
- /* netbsd32_sbrk */
- case 69:
- switch(ndx) {
- case 0:
- p = "netbsd32_intptr_t";
- break;
- default:
- break;
- };
- break;
/* netbsd32_ommap */
case 71:
switch(ndx) {
@@ -9647,11 +9630,6 @@
break;
/* sys_vfork */
case 66:
- /* netbsd32_sbrk */
- case 69:
- if (ndx == 0 || ndx == 1)
- p = "int";
- break;
/* netbsd32_ommap */
case 71:
if (ndx == 0 || ndx == 1)
diff -r 783f1cb33d6c -r 6304870c20fb sys/compat/netbsd32/syscalls.master
--- a/sys/compat/netbsd32/syscalls.master Tue Dec 19 18:25:53 2017 +0000
+++ b/sys/compat/netbsd32/syscalls.master Tue Dec 19 18:34:47 2017 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.117 2017/12/19 08:48:19 kamil Exp $
+ $NetBSD: syscalls.master,v 1.118 2017/12/19 18:34:47 kamil Exp $
; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@@ -174,7 +174,7 @@
66 NOARGS { int|sys||vfork(void); }
67 OBSOL vread
68 OBSOL vwrite
-69 STD { int|netbsd32||sbrk(netbsd32_intptr_t incr); }
+69 OBSOL sbrk
70 OBSOL sstk
71 COMPAT_43 { int|netbsd32||ommap(netbsd32_voidp addr, \
netbsd32_size_t len, int prot, int flags, int fd, \
diff -r 783f1cb33d6c -r 6304870c20fb sys/kern/init_sysent.c
--- a/sys/kern/init_sysent.c Tue Dec 19 18:25:53 2017 +0000
+++ b/sys/kern/init_sysent.c Tue Dec 19 18:34:47 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: init_sysent.c,v 1.316 2017/12/19 08:48:19 kamil Exp $ */
+/* $NetBSD: init_sysent.c,v 1.317 2017/12/19 18:34:47 kamil Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.287 2017/12/08 01:19:29 christos Exp
+ * created from NetBSD: syscalls.master,v 1.288 2017/12/19 08:48:19 kamil Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.316 2017/12/19 08:48:19 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.317 2017/12/19 18:34:47 kamil Exp $");
#include "opt_modular.h"
#include "opt_ntp.h"
@@ -422,9 +422,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 783f1cb33d6c -r 6304870c20fb sys/kern/syscalls.c
--- a/sys/kern/syscalls.c Tue Dec 19 18:25:53 2017 +0000
+++ b/sys/kern/syscalls.c Tue Dec 19 18:34:47 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: syscalls.c,v 1.307 2017/12/19 08:48:19 kamil Exp $ */
+/* $NetBSD: syscalls.c,v 1.308 2017/12/19 18:34:47 kamil Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.287 2017/12/08 01:19:29 christos Exp
+ * created from NetBSD: syscalls.master,v 1.288 2017/12/19 08:48:19 kamil Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.307 2017/12/19 08:48:19 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.308 2017/12/19 18:34:47 kamil Exp $");
#if defined(_KERNEL_OPT)
#include "opt_modular.h"
@@ -96,7 +96,7 @@
/* 66 */ "vfork",
/* 67 */ "#67 (obsolete vread)",
Home |
Main Index |
Thread Index |
Old Index