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 the sstk(2) syscall
details: https://anonhg.NetBSD.org/src/rev/29276815c0ce
branches: trunk
changeset: 358259:29276815c0ce
user: kamil <kamil%NetBSD.org@localhost>
date: Tue Dec 19 08:27:05 2017 +0000
description:
compat freebsd: Drop the sstk(2) syscall
sstk(2) has never been implemented by the NetBSD kernel.
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 658f4ab42219 -r 29276815c0ce sys/compat/freebsd/freebsd_syscall.h
--- a/sys/compat/freebsd/freebsd_syscall.h Tue Dec 19 08:25:37 2017 +0000
+++ b/sys/compat/freebsd/freebsd_syscall.h Tue Dec 19 08:27:05 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: freebsd_syscall.h,v 1.84 2017/05/10 06:19:48 riastradh Exp $ */
+/* $NetBSD: freebsd_syscall.h,v 1.85 2017/12/19 08:27:05 kamil Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.67 2013/11/07 19:37:18 njoly Exp
+ * created from NetBSD: syscalls.master,v 1.68 2017/08/08 08:04:06 maxv Exp
*/
#ifndef _FREEBSD_SYS_SYSCALL_H_
@@ -220,9 +220,7 @@
/* syscall: "sbrk" ret: "int" args: "intptr_t" */
#define FREEBSD_SYS_sbrk 69
-/* syscall: "sstk" ret: "int" args: "int" */
-#define FREEBSD_SYS_sstk 70
-
+ /* 70 is obsolete sstk */
/* syscall: "ommap" ret: "int" args: "void *" "size_t" "int" "int" "int" "long" */
#define FREEBSD_SYS_ommap 71
diff -r 658f4ab42219 -r 29276815c0ce sys/compat/freebsd/freebsd_syscallargs.h
--- a/sys/compat/freebsd/freebsd_syscallargs.h Tue Dec 19 08:25:37 2017 +0000
+++ b/sys/compat/freebsd/freebsd_syscallargs.h Tue Dec 19 08:27:05 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: freebsd_syscallargs.h,v 1.87 2017/05/10 06:19:48 riastradh Exp $ */
+/* $NetBSD: freebsd_syscallargs.h,v 1.88 2017/12/19 08:27:05 kamil Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.67 2013/11/07 19:37:18 njoly Exp
+ * created from NetBSD: syscalls.master,v 1.68 2017/08/08 08:04:06 maxv Exp
*/
#ifndef _FREEBSD_SYS_SYSCALLARGS_H_
@@ -167,8 +167,6 @@
struct sys_sbrk_args;
-struct sys_sstk_args;
-
struct compat_43_sys_mmap_args;
struct sys_ovadvise_args;
@@ -742,8 +740,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 *);
-
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 658f4ab42219 -r 29276815c0ce sys/compat/freebsd/freebsd_syscalls.c
--- a/sys/compat/freebsd/freebsd_syscalls.c Tue Dec 19 08:25:37 2017 +0000
+++ b/sys/compat/freebsd/freebsd_syscalls.c Tue Dec 19 08:27:05 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: freebsd_syscalls.c,v 1.85 2017/08/08 08:04:06 maxv Exp $ */
+/* $NetBSD: freebsd_syscalls.c,v 1.86 2017/12/19 08:27:05 kamil Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.67 2013/11/07 19:37:18 njoly Exp
+ * created from NetBSD: syscalls.master,v 1.68 2017/08/08 08:04:06 maxv Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: freebsd_syscalls.c,v 1.85 2017/08/08 08:04:06 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: freebsd_syscalls.c,v 1.86 2017/12/19 08:27:05 kamil Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -105,7 +105,7 @@
/* 67 */ "#67 (obsolete vread)",
/* 68 */ "#68 (obsolete vwrite)",
/* 69 */ "sbrk",
- /* 70 */ "sstk",
+ /* 70 */ "#70 (obsolete sstk)",
/* 71 */ "ommap",
/* 72 */ "vadvise",
/* 73 */ "munmap",
@@ -675,7 +675,7 @@
/* 67 */ NULL, /* obsolete vread */
/* 68 */ NULL, /* obsolete vwrite */
/* 69 */ NULL, /* sbrk */
- /* 70 */ NULL, /* sstk */
+ /* 70 */ NULL, /* obsolete sstk */
/* 71 */ "mmap",
/* 72 */ "ovadvise",
/* 73 */ NULL, /* munmap */
diff -r 658f4ab42219 -r 29276815c0ce sys/compat/freebsd/freebsd_sysent.c
--- a/sys/compat/freebsd/freebsd_sysent.c Tue Dec 19 08:25:37 2017 +0000
+++ b/sys/compat/freebsd/freebsd_sysent.c Tue Dec 19 08:27:05 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: freebsd_sysent.c,v 1.87 2017/08/08 08:04:06 maxv Exp $ */
+/* $NetBSD: freebsd_sysent.c,v 1.88 2017/12/19 08:27:05 kamil Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.67 2013/11/07 19:37:18 njoly Exp
+ * created from NetBSD: syscalls.master,v 1.68 2017/08/08 08:04:06 maxv Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: freebsd_sysent.c,v 1.87 2017/08/08 08:04:06 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: freebsd_sysent.c,v 1.88 2017/12/19 08:27:05 kamil Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ktrace.h"
@@ -344,9 +344,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 658f4ab42219 -r 29276815c0ce sys/compat/freebsd/syscalls.master
--- a/sys/compat/freebsd/syscalls.master Tue Dec 19 08:25:37 2017 +0000
+++ b/sys/compat/freebsd/syscalls.master Tue Dec 19 08:27:05 2017 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.68 2017/08/08 08:04:06 maxv Exp $
+ $NetBSD: syscalls.master,v 1.69 2017/12/19 08:27:05 kamil Exp $
; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@@ -158,7 +158,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
71 NOARGS { int|compat_43_sys||mmap(void *addr, size_t len, \
int prot, int flags, int fd, long pos); } ommap
72 NOARGS { int|sys||ovadvise(int anom); } vadvise
Home |
Main Index |
Thread Index |
Old Index