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: Mark sstk(2) as OBSOL
details: https://anonhg.NetBSD.org/src/rev/c9e665b59344
branches: trunk
changeset: 828556:c9e665b59344
user: kamil <kamil%NetBSD.org@localhost>
date: Tue Dec 19 08:09:36 2017 +0000
description:
compat aoutm68k: Mark sstk(2) as OBSOL
Remove the sstk(2) syscall support and mark it as obsolete.
It has never been implemented in the kernel.
Sponsored by <The NetBSD Foundation>
diffstat:
sys/compat/aoutm68k/aoutm68k_syscall.h | 6 ++----
sys/compat/aoutm68k/aoutm68k_syscallargs.h | 6 +-----
sys/compat/aoutm68k/aoutm68k_syscalls.c | 8 ++++----
sys/compat/aoutm68k/aoutm68k_sysent.c | 9 ++++-----
sys/compat/aoutm68k/syscalls.master | 4 ++--
5 files changed, 13 insertions(+), 20 deletions(-)
diffs (131 lines):
diff -r c2f3728d569b -r c9e665b59344 sys/compat/aoutm68k/aoutm68k_syscall.h
--- a/sys/compat/aoutm68k/aoutm68k_syscall.h Tue Dec 19 08:02:55 2017 +0000
+++ b/sys/compat/aoutm68k/aoutm68k_syscall.h Tue Dec 19 08:09:36 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aoutm68k_syscall.h,v 1.48 2017/05/10 06:19:48 riastradh Exp $ */
+/* $NetBSD: aoutm68k_syscall.h,v 1.49 2017/12/19 08:09:36 kamil Exp $ */
/*
* System call numbers.
@@ -267,9 +267,7 @@
/* syscall: "sbrk" ret: "int" args: "intptr_t" */
#define AOUTM68K_SYS_sbrk 69
-/* syscall: "sstk" ret: "int" args: "int" */
-#define AOUTM68K_SYS_sstk 70
-
+ /* 70 is obsolete sstk */
#if defined(COMPAT_43) || !defined(_KERNEL)
/* syscall: "ommap" ret: "int" args: "void *" "size_t" "int" "int" "int" "long" */
#define AOUTM68K_SYS_ommap 71
diff -r c2f3728d569b -r c9e665b59344 sys/compat/aoutm68k/aoutm68k_syscallargs.h
--- a/sys/compat/aoutm68k/aoutm68k_syscallargs.h Tue Dec 19 08:02:55 2017 +0000
+++ b/sys/compat/aoutm68k/aoutm68k_syscallargs.h Tue Dec 19 08:09:36 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aoutm68k_syscallargs.h,v 1.46 2017/05/10 06:19:48 riastradh Exp $ */
+/* $NetBSD: aoutm68k_syscallargs.h,v 1.47 2017/12/19 08:09:36 kamil Exp $ */
/*
* System call argument lists.
@@ -191,8 +191,6 @@
#endif
struct sys_sbrk_args;
-
-struct sys_sstk_args;
#if defined(COMPAT_43) || !defined(_KERNEL)
struct compat_43_sys_mmap_args;
@@ -824,8 +822,6 @@
int sys_sbrk(struct lwp *, const struct sys_sbrk_args *, register_t *);
-int sys_sstk(struct lwp *, const struct sys_sstk_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 c2f3728d569b -r c9e665b59344 sys/compat/aoutm68k/aoutm68k_syscalls.c
--- a/sys/compat/aoutm68k/aoutm68k_syscalls.c Tue Dec 19 08:02:55 2017 +0000
+++ b/sys/compat/aoutm68k/aoutm68k_syscalls.c Tue Dec 19 08:09:36 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aoutm68k_syscalls.c,v 1.45 2017/05/10 06:19:48 riastradh Exp $ */
+/* $NetBSD: aoutm68k_syscalls.c,v 1.46 2017/12/19 08:09:36 kamil Exp $ */
/*
* System call names.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aoutm68k_syscalls.c,v 1.45 2017/05/10 06:19:48 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aoutm68k_syscalls.c,v 1.46 2017/12/19 08:09:36 kamil Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -152,7 +152,7 @@
/* 67 */ "#67 (obsolete vread)",
/* 68 */ "#68 (obsolete vwrite)",
/* 69 */ "sbrk",
- /* 70 */ "sstk",
+ /* 70 */ "#70 (obsolete sstk)",
#if defined(COMPAT_43) || !defined(_KERNEL)
/* 71 */ "ommap",
#else
@@ -899,7 +899,7 @@
/* 67 */ NULL, /* obsolete vread */
/* 68 */ NULL, /* obsolete vwrite */
/* 69 */ NULL, /* sbrk */
- /* 70 */ NULL, /* sstk */
+ /* 70 */ NULL, /* obsolete sstk */
#if defined(COMPAT_43) || !defined(_KERNEL)
/* 71 */ "mmap",
#else
diff -r c2f3728d569b -r c9e665b59344 sys/compat/aoutm68k/aoutm68k_sysent.c
--- a/sys/compat/aoutm68k/aoutm68k_sysent.c Tue Dec 19 08:02:55 2017 +0000
+++ b/sys/compat/aoutm68k/aoutm68k_sysent.c Tue Dec 19 08:09:36 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aoutm68k_sysent.c,v 1.50 2017/05/10 06:19:48 riastradh Exp $ */
+/* $NetBSD: aoutm68k_sysent.c,v 1.51 2017/12/19 08:09:36 kamil Exp $ */
/*
* System call switch table.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aoutm68k_sysent.c,v 1.50 2017/05/10 06:19:48 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aoutm68k_sysent.c,v 1.51 2017/12/19 08:09:36 kamil Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ktrace.h"
@@ -421,9 +421,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 */
#if defined(COMPAT_43) || !defined(_KERNEL)
{
ns(struct compat_43_sys_mmap_args),
diff -r c2f3728d569b -r c9e665b59344 sys/compat/aoutm68k/syscalls.master
--- a/sys/compat/aoutm68k/syscalls.master Tue Dec 19 08:02:55 2017 +0000
+++ b/sys/compat/aoutm68k/syscalls.master Tue Dec 19 08:09:36 2017 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.37 2011/03/07 19:26:35 bouyer Exp $
+ $NetBSD: syscalls.master,v 1.38 2017/12/19 08:09:36 kamil Exp $
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@@ -213,7 +213,7 @@
67 OBSOL vread
68 OBSOL vwrite
69 NOARGS { int|sys||sbrk(intptr_t incr); }
-70 NOARGS { int|sys||sstk(int incr); }
+70 OBSOL sstk
#if defined(COMPAT_43) || !defined(_KERNEL)
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