Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Drop the sstk(2) syscall stub
details: https://anonhg.NetBSD.org/src/rev/9a7e78526f74
branches: trunk
changeset: 358260:9a7e78526f74
user: kamil <kamil%NetBSD.org@localhost>
date: Tue Dec 19 08:48:19 2017 +0000
description:
Drop the sstk(2) syscall stub
sstk - change stack section size
This functionality has never been implemented and is a remnant from 16-bit
UNIX. This stub appeared with the first NetBSD commit.
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 | 8 ++++----
sys/kern/syscalls.master | 4 ++--
sys/kern/systrace_args.c | 24 +-----------------------
sys/rump/librump/rumpkern/rump_syscalls.c | 9 +++++----
sys/sys/syscall.h | 6 ++----
sys/sys/syscallargs.h | 11 +----------
sys/uvm/uvm_mmap.c | 19 ++-----------------
15 files changed, 42 insertions(+), 134 deletions(-)
diffs (truncated from 504 to 300 lines):
diff -r 29276815c0ce -r 9a7e78526f74 sys/compat/netbsd32/netbsd32_netbsd.c
--- a/sys/compat/netbsd32/netbsd32_netbsd.c Tue Dec 19 08:27:05 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_netbsd.c Tue Dec 19 08:48:19 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_netbsd.c,v 1.208 2017/12/06 19:15:27 christos Exp $ */
+/* $NetBSD: netbsd32_netbsd.c,v 1.209 2017/12/19 08:48:19 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.208 2017/12/06 19:15:27 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.209 2017/12/19 08:48:19 kamil Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ddb.h"
@@ -713,18 +713,6 @@
}
int
-netbsd32_sstk(struct lwp *l, const struct netbsd32_sstk_args *uap, register_t *retval)
-{
- /* {
- syscallarg(int) incr;
- } */
- struct sys_sstk_args ua;
-
- NETBSD32TO64_UAP(incr);
- return (sys_sstk(l, &ua, retval));
-}
-
-int
netbsd32_munmap(struct lwp *l, const struct netbsd32_munmap_args *uap, register_t *retval)
{
/* {
diff -r 29276815c0ce -r 9a7e78526f74 sys/compat/netbsd32/netbsd32_syscall.h
--- a/sys/compat/netbsd32/netbsd32_syscall.h Tue Dec 19 08:27:05 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscall.h Tue Dec 19 08:48:19 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: netbsd32_syscall.h,v 1.130 2017/12/19 07:58:50 kamil Exp $ */
+/* $NetBSD: netbsd32_syscall.h,v 1.131 2017/12/19 08:48:19 kamil Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.115 2016/10/19 09:44:01 skrll Exp
+ * created from NetBSD: syscalls.master,v 1.116 2017/12/19 07:58:50 kamil Exp
*/
#ifndef _NETBSD32_SYS_SYSCALL_H_
@@ -216,9 +216,7 @@
/* syscall: "netbsd32_sbrk" ret: "int" args: "netbsd32_intptr_t" */
#define NETBSD32_SYS_netbsd32_sbrk 69
-/* syscall: "netbsd32_sstk" ret: "int" args: "int" */
-#define NETBSD32_SYS_netbsd32_sstk 70
-
+ /* 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 29276815c0ce -r 9a7e78526f74 sys/compat/netbsd32/netbsd32_syscallargs.h
--- a/sys/compat/netbsd32/netbsd32_syscallargs.h Tue Dec 19 08:27:05 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscallargs.h Tue Dec 19 08:48:19 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: netbsd32_syscallargs.h,v 1.130 2017/12/19 07:58:50 kamil Exp $ */
+/* $NetBSD: netbsd32_syscallargs.h,v 1.131 2017/12/19 08:48:19 kamil Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.115 2016/10/19 09:44:01 skrll Exp
+ * created from NetBSD: syscalls.master,v 1.116 2017/12/19 07:58:50 kamil Exp
*/
#ifndef _NETBSD32_SYS_SYSCALLARGS_H_
@@ -380,11 +380,6 @@
};
check_syscall_args(netbsd32_sbrk)
-struct netbsd32_sstk_args {
- syscallarg(int) incr;
-};
-check_syscall_args(netbsd32_sstk)
-
struct compat_43_netbsd32_ommap_args {
syscallarg(netbsd32_voidp) addr;
syscallarg(netbsd32_size_t) len;
@@ -2741,8 +2736,6 @@
int netbsd32_sbrk(struct lwp *, const struct netbsd32_sbrk_args *, register_t *);
-int netbsd32_sstk(struct lwp *, const struct netbsd32_sstk_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 29276815c0ce -r 9a7e78526f74 sys/compat/netbsd32/netbsd32_syscalls.c
--- a/sys/compat/netbsd32/netbsd32_syscalls.c Tue Dec 19 08:27:05 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscalls.c Tue Dec 19 08:48:19 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_syscalls.c,v 1.128 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: netbsd32_syscalls.c,v 1.129 2017/12/19 08:48:19 kamil Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.115 2016/10/19 09:44:01 skrll Exp
+ * created from NetBSD: syscalls.master,v 1.116 2017/12/19 07:58:50 kamil Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.128 2017/05/10 06:19:49 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.129 2017/12/19 08:48:19 kamil Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -98,7 +98,7 @@
/* 67 */ "#67 (obsolete vread)",
/* 68 */ "#68 (obsolete vwrite)",
/* 69 */ "netbsd32_sbrk",
- /* 70 */ "netbsd32_sstk",
+ /* 70 */ "#70 (obsolete sstk)",
/* 71 */ "compat_43_netbsd32_ommap",
/* 72 */ "vadvise",
/* 73 */ "netbsd32_munmap",
@@ -628,7 +628,7 @@
/* 67 */ NULL, /* obsolete vread */
/* 68 */ NULL, /* obsolete vwrite */
/* 69 */ "sbrk",
- /* 70 */ "sstk",
+ /* 70 */ NULL, /* obsolete sstk */
/* 71 */ NULL, /* compat_43_netbsd32_ommap */
/* 72 */ "ovadvise",
/* 73 */ "munmap",
diff -r 29276815c0ce -r 9a7e78526f74 sys/compat/netbsd32/netbsd32_sysent.c
--- a/sys/compat/netbsd32/netbsd32_sysent.c Tue Dec 19 08:27:05 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_sysent.c Tue Dec 19 08:48:19 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_sysent.c,v 1.128 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: netbsd32_sysent.c,v 1.129 2017/12/19 08:48:19 kamil Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.115 2016/10/19 09:44:01 skrll Exp
+ * created from NetBSD: syscalls.master,v 1.116 2017/12/19 07:58:50 kamil Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.128 2017/05/10 06:19:49 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.129 2017/12/19 08:48:19 kamil Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -385,9 +385,8 @@
.sy_call = (sy_call_t *)netbsd32_sbrk
}, /* 69 = netbsd32_sbrk */
{
- ns(struct netbsd32_sstk_args),
- .sy_call = (sy_call_t *)netbsd32_sstk
- }, /* 70 = netbsd32_sstk */
+ .sy_call = sys_nosys,
+ }, /* 70 = filler */
{
ns(struct compat_43_netbsd32_ommap_args),
.sy_call = (sy_call_t *)compat_43(netbsd32_ommap)
diff -r 29276815c0ce -r 9a7e78526f74 sys/compat/netbsd32/netbsd32_systrace_args.c
--- a/sys/compat/netbsd32/netbsd32_systrace_args.c Tue Dec 19 08:27:05 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_systrace_args.c Tue Dec 19 08:48:19 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_systrace_args.c,v 1.20 2017/12/19 07:58:50 kamil Exp $ */
+/* $NetBSD: netbsd32_systrace_args.c,v 1.21 2017/12/19 08:48:19 kamil Exp $ */
/*
* System call argument to DTrace register array converstion.
@@ -529,13 +529,6 @@
*n_args = 1;
break;
}
- /* netbsd32_sstk */
- case 70: {
- const struct netbsd32_sstk_args *p = params;
- iarg[0] = SCARG(p, incr); /* int */
- *n_args = 1;
- break;
- }
/* netbsd32_ommap */
case 71: {
const struct compat_43_netbsd32_ommap_args *p = params;
@@ -4283,16 +4276,6 @@
break;
};
break;
- /* netbsd32_sstk */
- case 70:
- switch(ndx) {
- case 0:
- p = "int";
- break;
- default:
- break;
- };
- break;
/* netbsd32_ommap */
case 71:
switch(ndx) {
@@ -9669,11 +9652,6 @@
if (ndx == 0 || ndx == 1)
p = "int";
break;
- /* netbsd32_sstk */
- case 70:
- if (ndx == 0 || ndx == 1)
- p = "int";
- break;
/* netbsd32_ommap */
case 71:
if (ndx == 0 || ndx == 1)
diff -r 29276815c0ce -r 9a7e78526f74 sys/compat/netbsd32/syscalls.master
--- a/sys/compat/netbsd32/syscalls.master Tue Dec 19 08:27:05 2017 +0000
+++ b/sys/compat/netbsd32/syscalls.master Tue Dec 19 08:48:19 2017 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.116 2017/12/19 07:58:50 kamil Exp $
+ $NetBSD: syscalls.master,v 1.117 2017/12/19 08:48:19 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
@@ -175,7 +175,7 @@
67 OBSOL vread
68 OBSOL vwrite
69 STD { int|netbsd32||sbrk(netbsd32_intptr_t incr); }
-70 STD { int|netbsd32||sstk(int incr); }
+70 OBSOL sstk
71 COMPAT_43 { int|netbsd32||ommap(netbsd32_voidp addr, \
netbsd32_size_t len, int prot, int flags, int fd, \
netbsd32_long pos); }
diff -r 29276815c0ce -r 9a7e78526f74 sys/kern/init_sysent.c
--- a/sys/kern/init_sysent.c Tue Dec 19 08:27:05 2017 +0000
+++ b/sys/kern/init_sysent.c Tue Dec 19 08:48:19 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: init_sysent.c,v 1.315 2017/05/10 06:19:47 riastradh Exp $ */
+/* $NetBSD: init_sysent.c,v 1.316 2017/12/19 08:48:19 kamil Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.286 2016/11/02 00:11:59 pgoyette Exp
+ * created from NetBSD: syscalls.master,v 1.287 2017/12/08 01:19:29 christos Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.315 2017/05/10 06:19:47 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.316 2017/12/19 08:48:19 kamil Exp $");
#include "opt_modular.h"
#include "opt_ntp.h"
@@ -426,9 +426,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 compat_43_sys_mmap_args),
.sy_flags = SYCALL_ARG_PTR,
diff -r 29276815c0ce -r 9a7e78526f74 sys/kern/syscalls.c
--- a/sys/kern/syscalls.c Tue Dec 19 08:27:05 2017 +0000
+++ b/sys/kern/syscalls.c Tue Dec 19 08:48:19 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscalls.c,v 1.306 2017/12/08 01:20:52 christos Exp $ */
+/* $NetBSD: syscalls.c,v 1.307 2017/12/19 08:48:19 kamil Exp $ */
/*
* System call names.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.306 2017/12/08 01:20:52 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.307 2017/12/19 08:48:19 kamil Exp $");
#if defined(_KERNEL_OPT)
#include "opt_modular.h"
@@ -97,7 +97,7 @@
/* 67 */ "#67 (obsolete vread)",
/* 68 */ "#68 (obsolete vwrite)",
/* 69 */ "sbrk",
- /* 70 */ "sstk",
+ /* 70 */ "#70 (obsolete sstk)",
Home |
Main Index |
Thread Index |
Old Index