Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Drop SYS_vadvise
details: https://anonhg.NetBSD.org/src/rev/e34fd4a9fb46
branches: trunk
changeset: 828587:e34fd4a9fb46
user: kamil <kamil%NetBSD.org@localhost>
date: Tue Dec 19 19:40:03 2017 +0000
description:
Drop SYS_vadvise
The (o)vadvise syscall is dummy since the beginning of NetBSD.
It is an obsolete remnant from the old UNIX.
Sponsored by <The NetBSD Foundation>
diffstat:
sys/compat/netbsd32/netbsd32_netbsd.c | 15 ++-------------
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_syscalls_autoload.c | 6 +++---
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/syscalls_autoload.c | 6 +++---
sys/kern/systrace_args.c | 24 +-----------------------
sys/rump/include/rump/rump_syscalls.h | 4 ++--
sys/rump/librump/rumpkern/rump_syscalls.c | 11 ++++++-----
sys/sys/syscall.h | 8 +++-----
sys/sys/syscallargs.h | 13 ++-----------
sys/uvm/uvm_unix.c | 21 ++-------------------
18 files changed, 54 insertions(+), 147 deletions(-)
diffs (truncated from 584 to 300 lines):
diff -r 5b89252c8d69 -r e34fd4a9fb46 sys/compat/netbsd32/netbsd32_netbsd.c
--- a/sys/compat/netbsd32/netbsd32_netbsd.c Tue Dec 19 19:20:30 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_netbsd.c Tue Dec 19 19:40:03 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_netbsd.c,v 1.210 2017/12/19 18:34:47 kamil Exp $ */
+/* $NetBSD: netbsd32_netbsd.c,v 1.211 2017/12/19 19:40:03 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.210 2017/12/19 18:34:47 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.211 2017/12/19 19:40:03 kamil Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ddb.h"
@@ -2006,17 +2006,6 @@
}
/* virtual memory syscalls */
-int
-netbsd32_ovadvise(struct lwp *l, const struct netbsd32_ovadvise_args *uap, register_t *retval)
-{
- /* {
- syscallarg(int) anom;
- } */
- struct sys_ovadvise_args ua;
-
- NETBSD32TO64_UAP(anom);
- return (sys_ovadvise(l, &ua, retval));
-}
void
netbsd32_adjust_limits(struct proc *p)
diff -r 5b89252c8d69 -r e34fd4a9fb46 sys/compat/netbsd32/netbsd32_syscall.h
--- a/sys/compat/netbsd32/netbsd32_syscall.h Tue Dec 19 19:20:30 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscall.h Tue Dec 19 19:40:03 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: netbsd32_syscall.h,v 1.132 2017/12/19 18:34:47 kamil Exp $ */
+/* $NetBSD: netbsd32_syscall.h,v 1.133 2017/12/19 19:40:03 kamil Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.117 2017/12/19 08:48:19 kamil Exp
+ * created from NetBSD: syscalls.master,v 1.118 2017/12/19 18:34:47 kamil Exp
*/
#ifndef _NETBSD32_SYS_SYSCALL_H_
@@ -218,9 +218,7 @@
/* 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
-/* syscall: "vadvise" ret: "int" args: "int" */
-#define NETBSD32_SYS_vadvise 72
-
+ /* 72 is obsolete vadvise */
/* syscall: "netbsd32_munmap" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" */
#define NETBSD32_SYS_netbsd32_munmap 73
diff -r 5b89252c8d69 -r e34fd4a9fb46 sys/compat/netbsd32/netbsd32_syscallargs.h
--- a/sys/compat/netbsd32/netbsd32_syscallargs.h Tue Dec 19 19:20:30 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscallargs.h Tue Dec 19 19:40:03 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: netbsd32_syscallargs.h,v 1.132 2017/12/19 18:34:47 kamil Exp $ */
+/* $NetBSD: netbsd32_syscallargs.h,v 1.133 2017/12/19 19:40:03 kamil Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.117 2017/12/19 08:48:19 kamil Exp
+ * created from NetBSD: syscalls.master,v 1.118 2017/12/19 18:34:47 kamil Exp
*/
#ifndef _NETBSD32_SYS_SYSCALLARGS_H_
@@ -385,11 +385,6 @@
};
check_syscall_args(compat_43_netbsd32_ommap)
-struct netbsd32_ovadvise_args {
- syscallarg(int) anom;
-};
-check_syscall_args(netbsd32_ovadvise)
-
struct netbsd32_munmap_args {
syscallarg(netbsd32_voidp) addr;
syscallarg(netbsd32_size_t) len;
@@ -2731,8 +2726,6 @@
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 *);
-
int netbsd32_munmap(struct lwp *, const struct netbsd32_munmap_args *, register_t *);
int netbsd32_mprotect(struct lwp *, const struct netbsd32_mprotect_args *, register_t *);
diff -r 5b89252c8d69 -r e34fd4a9fb46 sys/compat/netbsd32/netbsd32_syscalls.c
--- a/sys/compat/netbsd32/netbsd32_syscalls.c Tue Dec 19 19:20:30 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscalls.c Tue Dec 19 19:40:03 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_syscalls.c,v 1.130 2017/12/19 18:34:47 kamil Exp $ */
+/* $NetBSD: netbsd32_syscalls.c,v 1.131 2017/12/19 19:40:03 kamil Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.117 2017/12/19 08:48:19 kamil Exp
+ * created from NetBSD: syscalls.master,v 1.118 2017/12/19 18:34:47 kamil Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.130 2017/12/19 18:34:47 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.131 2017/12/19 19:40:03 kamil Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -100,7 +100,7 @@
/* 69 */ "#69 (obsolete sbrk)",
/* 70 */ "#70 (obsolete sstk)",
/* 71 */ "compat_43_netbsd32_ommap",
- /* 72 */ "vadvise",
+ /* 72 */ "#72 (obsolete vadvise)",
/* 73 */ "netbsd32_munmap",
/* 74 */ "netbsd32_mprotect",
/* 75 */ "netbsd32_madvise",
@@ -630,7 +630,7 @@
/* 69 */ NULL, /* obsolete sbrk */
/* 70 */ NULL, /* obsolete sstk */
/* 71 */ NULL, /* compat_43_netbsd32_ommap */
- /* 72 */ "ovadvise",
+ /* 72 */ NULL, /* obsolete vadvise */
/* 73 */ "munmap",
/* 74 */ "mprotect",
/* 75 */ "madvise",
diff -r 5b89252c8d69 -r e34fd4a9fb46 sys/compat/netbsd32/netbsd32_syscalls_autoload.c
--- a/sys/compat/netbsd32/netbsd32_syscalls_autoload.c Tue Dec 19 19:20:30 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscalls_autoload.c Tue Dec 19 19:40:03 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_syscalls_autoload.c,v 1.11 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: netbsd32_syscalls_autoload.c,v 1.12 2017/12/19 19:40:03 kamil Exp $ */
/*
* System call autoload 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.118 2017/12/19 18:34:47 kamil Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.11 2017/05/10 06:19:49 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.12 2017/12/19 19:40:03 kamil Exp $");
#include <sys/proc.h>
static struct sc_autoload netbsd32_syscalls_autoload[] = {
diff -r 5b89252c8d69 -r e34fd4a9fb46 sys/compat/netbsd32/netbsd32_sysent.c
--- a/sys/compat/netbsd32/netbsd32_sysent.c Tue Dec 19 19:20:30 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_sysent.c Tue Dec 19 19:40:03 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_sysent.c,v 1.130 2017/12/19 18:34:47 kamil Exp $ */
+/* $NetBSD: netbsd32_sysent.c,v 1.131 2017/12/19 19:40:03 kamil Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.117 2017/12/19 08:48:19 kamil Exp
+ * created from NetBSD: syscalls.master,v 1.118 2017/12/19 18:34:47 kamil Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.130 2017/12/19 18:34:47 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.131 2017/12/19 19:40:03 kamil Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -391,9 +391,8 @@
.sy_call = (sy_call_t *)compat_43(netbsd32_ommap)
}, /* 71 = compat_43_netbsd32_ommap */
{
- ns(struct netbsd32_ovadvise_args),
- .sy_call = (sy_call_t *)netbsd32_ovadvise
- }, /* 72 = vadvise */
+ .sy_call = sys_nosys,
+ }, /* 72 = filler */
{
ns(struct netbsd32_munmap_args),
.sy_call = (sy_call_t *)netbsd32_munmap
diff -r 5b89252c8d69 -r e34fd4a9fb46 sys/compat/netbsd32/netbsd32_systrace_args.c
--- a/sys/compat/netbsd32/netbsd32_systrace_args.c Tue Dec 19 19:20:30 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_systrace_args.c Tue Dec 19 19:40:03 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_systrace_args.c,v 1.22 2017/12/19 18:34:47 kamil Exp $ */
+/* $NetBSD: netbsd32_systrace_args.c,v 1.23 2017/12/19 19:40:03 kamil Exp $ */
/*
* System call argument to DTrace register array converstion.
@@ -534,13 +534,6 @@
*n_args = 6;
break;
}
- /* netbsd32_ovadvise */
- case 72: {
- const struct netbsd32_ovadvise_args *p = params;
- iarg[0] = SCARG(p, anom); /* int */
- *n_args = 1;
- break;
- }
/* netbsd32_munmap */
case 73: {
const struct netbsd32_munmap_args *p = params;
@@ -4284,16 +4277,6 @@
break;
};
break;
- /* netbsd32_ovadvise */
- case 72:
- switch(ndx) {
- case 0:
- p = "int";
- break;
- default:
- break;
- };
- break;
/* netbsd32_munmap */
case 73:
switch(ndx) {
@@ -9635,11 +9618,6 @@
if (ndx == 0 || ndx == 1)
p = "int";
break;
- /* netbsd32_ovadvise */
- case 72:
- if (ndx == 0 || ndx == 1)
- p = "int";
- break;
/* netbsd32_munmap */
case 73:
if (ndx == 0 || ndx == 1)
diff -r 5b89252c8d69 -r e34fd4a9fb46 sys/compat/netbsd32/syscalls.master
--- a/sys/compat/netbsd32/syscalls.master Tue Dec 19 19:20:30 2017 +0000
+++ b/sys/compat/netbsd32/syscalls.master Tue Dec 19 19:40:03 2017 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.118 2017/12/19 18:34:47 kamil Exp $
+ $NetBSD: syscalls.master,v 1.119 2017/12/19 19:40:03 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
@@ -179,7 +179,7 @@
71 COMPAT_43 { int|netbsd32||ommap(netbsd32_voidp addr, \
netbsd32_size_t len, int prot, int flags, int fd, \
netbsd32_long pos); }
-72 STD { int|netbsd32||ovadvise(int anom); } vadvise
+72 OBSOL vadvise
73 STD { int|netbsd32||munmap(netbsd32_voidp addr, \
netbsd32_size_t len); }
74 STD { int|netbsd32||mprotect(netbsd32_voidp addr, \
diff -r 5b89252c8d69 -r e34fd4a9fb46 sys/kern/init_sysent.c
--- a/sys/kern/init_sysent.c Tue Dec 19 19:20:30 2017 +0000
+++ b/sys/kern/init_sysent.c Tue Dec 19 19:40:03 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: init_sysent.c,v 1.317 2017/12/19 18:34:47 kamil Exp $ */
+/* $NetBSD: init_sysent.c,v 1.318 2017/12/19 19:40:03 kamil Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.288 2017/12/19 08:48:19 kamil Exp
+ * created from NetBSD: syscalls.master,v 1.289 2017/12/19 18:34:47 kamil Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.317 2017/12/19 18:34:47 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.318 2017/12/19 19:40:03 kamil Exp $");
#include "opt_modular.h"
#include "opt_ntp.h"
@@ -433,9 +433,8 @@
.sy_call = (sy_call_t *)sys_nomodule
}, /* 71 = compat_43_ommap */
{
- ns(struct sys_ovadvise_args),
- .sy_call = (sy_call_t *)sys_ovadvise
- }, /* 72 = vadvise */
+ .sy_call = sys_nosys,
+ }, /* 72 = filler */
{
ns(struct sys_munmap_args),
.sy_flags = SYCALL_ARG_PTR,
diff -r 5b89252c8d69 -r e34fd4a9fb46 sys/kern/syscalls.c
--- a/sys/kern/syscalls.c Tue Dec 19 19:20:30 2017 +0000
+++ b/sys/kern/syscalls.c Tue Dec 19 19:40:03 2017 +0000
@@ -1,14 +1,14 @@
Home |
Main Index |
Thread Index |
Old Index