Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/ultrix compat ultrix: Drop the sstk(2) syscall
details: https://anonhg.NetBSD.org/src/rev/91d1e6a06683
branches: trunk
changeset: 358256:91d1e6a06683
user: kamil <kamil%NetBSD.org@localhost>
date: Tue Dec 19 08:23:22 2017 +0000
description:
compat ultrix: Drop the sstk(2) syscall
sstk(2) has never been implemented by the NetBSD kernel.
Sponsored by <The NetBSD Foundation>
diffstat:
sys/compat/ultrix/syscalls.master | 5 ++---
sys/compat/ultrix/ultrix_syscall.h | 6 ++----
sys/compat/ultrix/ultrix_syscallargs.h | 6 +-----
sys/compat/ultrix/ultrix_syscalls.c | 8 ++++----
sys/compat/ultrix/ultrix_sysent.c | 9 ++++-----
5 files changed, 13 insertions(+), 21 deletions(-)
diffs (136 lines):
diff -r 3cf887bb0153 -r 91d1e6a06683 sys/compat/ultrix/syscalls.master
--- a/sys/compat/ultrix/syscalls.master Tue Dec 19 08:09:36 2017 +0000
+++ b/sys/compat/ultrix/syscalls.master Tue Dec 19 08:23:22 2017 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.52 2013/11/07 19:37:19 njoly Exp $
+ $NetBSD: syscalls.master,v 1.53 2017/12/19 08:23:22 kamil Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -119,7 +119,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 STD { int|ultrix_sys||mmap(void *addr, size_t len, \
int prot, u_int flags, int fd, long pos); }
72 NOARGS { int|sys||ovadvise(int anom); } vadvise
@@ -358,4 +358,3 @@
unsigned nbytes, int *start, char *arg); }
257 STD { int|ultrix_sys||setsysinfo(unsigned op, char *buffer, \
unsigned nbytes, unsigned arg, unsigned flag); }
-
diff -r 3cf887bb0153 -r 91d1e6a06683 sys/compat/ultrix/ultrix_syscall.h
--- a/sys/compat/ultrix/ultrix_syscall.h Tue Dec 19 08:09:36 2017 +0000
+++ b/sys/compat/ultrix/ultrix_syscall.h Tue Dec 19 08:23:22 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ultrix_syscall.h,v 1.68 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: ultrix_syscall.h,v 1.69 2017/12/19 08:23:22 kamil Exp $ */
/*
* System call numbers.
@@ -159,9 +159,7 @@
/* syscall: "sbrk" ret: "int" args: "intptr_t" */
#define ULTRIX_SYS_sbrk 69
-/* syscall: "sstk" ret: "int" args: "int" */
-#define ULTRIX_SYS_sstk 70
-
+ /* 70 is obsolete sstk */
/* syscall: "mmap" ret: "int" args: "void *" "size_t" "int" "u_int" "int" "long" */
#define ULTRIX_SYS_mmap 71
diff -r 3cf887bb0153 -r 91d1e6a06683 sys/compat/ultrix/ultrix_syscallargs.h
--- a/sys/compat/ultrix/ultrix_syscallargs.h Tue Dec 19 08:09:36 2017 +0000
+++ b/sys/compat/ultrix/ultrix_syscallargs.h Tue Dec 19 08:23:22 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ultrix_syscallargs.h,v 1.63 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: ultrix_syscallargs.h,v 1.64 2017/12/19 08:23:22 kamil Exp $ */
/*
* System call argument lists.
@@ -147,8 +147,6 @@
struct sys_sbrk_args;
-struct sys_sstk_args;
-
struct ultrix_sys_mmap_args {
syscallarg(void *) addr;
syscallarg(size_t) len;
@@ -528,8 +526,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 ultrix_sys_mmap(struct lwp *, const struct ultrix_sys_mmap_args *, register_t *);
int sys_ovadvise(struct lwp *, const struct sys_ovadvise_args *, register_t *);
diff -r 3cf887bb0153 -r 91d1e6a06683 sys/compat/ultrix/ultrix_syscalls.c
--- a/sys/compat/ultrix/ultrix_syscalls.c Tue Dec 19 08:09:36 2017 +0000
+++ b/sys/compat/ultrix/ultrix_syscalls.c Tue Dec 19 08:23:22 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ultrix_syscalls.c,v 1.67 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: ultrix_syscalls.c,v 1.68 2017/12/19 08:23:22 kamil Exp $ */
/*
* System call names.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ultrix_syscalls.c,v 1.67 2017/05/10 06:19:49 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ultrix_syscalls.c,v 1.68 2017/12/19 08:23:22 kamil Exp $");
#if defined(_KERNEL_OPT)
#include <sys/param.h>
@@ -93,7 +93,7 @@
/* 67 */ "#67 (obsolete vread)",
/* 68 */ "#68 (obsolete vwrite)",
/* 69 */ "sbrk",
- /* 70 */ "sstk",
+ /* 70 */ "#70 (obsolete sstk)",
/* 71 */ "mmap",
/* 72 */ "vadvise",
/* 73 */ "munmap",
@@ -615,7 +615,7 @@
/* 67 */ NULL, /* obsolete vread */
/* 68 */ NULL, /* obsolete vwrite */
/* 69 */ NULL, /* sbrk */
- /* 70 */ NULL, /* sstk */
+ /* 70 */ NULL, /* obsolete sstk */
/* 71 */ NULL, /* mmap */
/* 72 */ "ovadvise",
/* 73 */ NULL, /* munmap */
diff -r 3cf887bb0153 -r 91d1e6a06683 sys/compat/ultrix/ultrix_sysent.c
--- a/sys/compat/ultrix/ultrix_sysent.c Tue Dec 19 08:09:36 2017 +0000
+++ b/sys/compat/ultrix/ultrix_sysent.c Tue Dec 19 08:23:22 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ultrix_sysent.c,v 1.70 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: ultrix_sysent.c,v 1.71 2017/12/19 08:23:22 kamil Exp $ */
/*
* System call switch table.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ultrix_sysent.c,v 1.70 2017/05/10 06:19:49 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ultrix_sysent.c,v 1.71 2017/12/19 08:23:22 kamil Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -291,9 +291,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 ultrix_sys_mmap_args),
.sy_flags = SYCALL_ARG_PTR,
Home |
Main Index |
Thread Index |
Old Index