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 SYS_vadvise
details: https://anonhg.NetBSD.org/src/rev/40d6b32acc21
branches: trunk
changeset: 358282:40d6b32acc21
user: kamil <kamil%NetBSD.org@localhost>
date: Tue Dec 19 19:18:18 2017 +0000
description:
compat/freebsd: Drop SYS_vadvise
The (o)vadvise syscall is dummy since the beginning of NetBSD.
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 6f24a42024d7 -r 40d6b32acc21 sys/compat/freebsd/freebsd_syscall.h
--- a/sys/compat/freebsd/freebsd_syscall.h Tue Dec 19 19:17:17 2017 +0000
+++ b/sys/compat/freebsd/freebsd_syscall.h Tue Dec 19 19:18:18 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: freebsd_syscall.h,v 1.86 2017/12/19 18:15:08 kamil Exp $ */
+/* $NetBSD: freebsd_syscall.h,v 1.87 2017/12/19 19:18:18 kamil Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.69 2017/12/19 08:27:05 kamil Exp
+ * created from NetBSD: syscalls.master,v 1.70 2017/12/19 18:15:08 kamil Exp
*/
#ifndef _FREEBSD_SYS_SYSCALL_H_
@@ -222,9 +222,7 @@
/* syscall: "ommap" ret: "int" args: "void *" "size_t" "int" "int" "int" "long" */
#define FREEBSD_SYS_ommap 71
-/* syscall: "vadvise" ret: "int" args: "int" */
-#define FREEBSD_SYS_vadvise 72
-
+ /* 72 is obsolete vadvise */
/* syscall: "munmap" ret: "int" args: "void *" "size_t" */
#define FREEBSD_SYS_munmap 73
diff -r 6f24a42024d7 -r 40d6b32acc21 sys/compat/freebsd/freebsd_syscallargs.h
--- a/sys/compat/freebsd/freebsd_syscallargs.h Tue Dec 19 19:17:17 2017 +0000
+++ b/sys/compat/freebsd/freebsd_syscallargs.h Tue Dec 19 19:18:18 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: freebsd_syscallargs.h,v 1.89 2017/12/19 18:15:08 kamil Exp $ */
+/* $NetBSD: freebsd_syscallargs.h,v 1.90 2017/12/19 19:18:18 kamil Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.69 2017/12/19 08:27:05 kamil Exp
+ * created from NetBSD: syscalls.master,v 1.70 2017/12/19 18:15:08 kamil Exp
*/
#ifndef _FREEBSD_SYS_SYSCALLARGS_H_
@@ -167,8 +167,6 @@
struct compat_43_sys_mmap_args;
-struct sys_ovadvise_args;
-
struct sys_munmap_args;
struct sys_mprotect_args;
@@ -738,8 +736,6 @@
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 *);
-
int sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *);
int sys_mprotect(struct lwp *, const struct sys_mprotect_args *, register_t *);
diff -r 6f24a42024d7 -r 40d6b32acc21 sys/compat/freebsd/freebsd_syscalls.c
--- a/sys/compat/freebsd/freebsd_syscalls.c Tue Dec 19 19:17:17 2017 +0000
+++ b/sys/compat/freebsd/freebsd_syscalls.c Tue Dec 19 19:18:18 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: freebsd_syscalls.c,v 1.87 2017/12/19 18:15:08 kamil Exp $ */
+/* $NetBSD: freebsd_syscalls.c,v 1.88 2017/12/19 19:18:18 kamil Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.69 2017/12/19 08:27:05 kamil Exp
+ * created from NetBSD: syscalls.master,v 1.70 2017/12/19 18:15:08 kamil Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: freebsd_syscalls.c,v 1.87 2017/12/19 18:15:08 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: freebsd_syscalls.c,v 1.88 2017/12/19 19:18:18 kamil Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -107,7 +107,7 @@
/* 69 */ "#69 (obsolete sbrk)",
/* 70 */ "#70 (obsolete sstk)",
/* 71 */ "ommap",
- /* 72 */ "vadvise",
+ /* 72 */ "#72 (obsolete vadvise)",
/* 73 */ "munmap",
/* 74 */ "mprotect",
/* 75 */ "madvise",
@@ -677,7 +677,7 @@
/* 69 */ NULL, /* obsolete sbrk */
/* 70 */ NULL, /* obsolete sstk */
/* 71 */ "mmap",
- /* 72 */ "ovadvise",
+ /* 72 */ NULL, /* obsolete vadvise */
/* 73 */ NULL, /* munmap */
/* 74 */ NULL, /* mprotect */
/* 75 */ NULL, /* madvise */
diff -r 6f24a42024d7 -r 40d6b32acc21 sys/compat/freebsd/freebsd_sysent.c
--- a/sys/compat/freebsd/freebsd_sysent.c Tue Dec 19 19:17:17 2017 +0000
+++ b/sys/compat/freebsd/freebsd_sysent.c Tue Dec 19 19:18:18 2017 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: freebsd_sysent.c,v 1.89 2017/12/19 18:15:08 kamil Exp $ */
+/* $NetBSD: freebsd_sysent.c,v 1.90 2017/12/19 19:18:18 kamil Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.69 2017/12/19 08:27:05 kamil Exp
+ * created from NetBSD: syscalls.master,v 1.70 2017/12/19 18:15:08 kamil Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: freebsd_sysent.c,v 1.89 2017/12/19 18:15:08 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: freebsd_sysent.c,v 1.90 2017/12/19 19:18:18 kamil Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ktrace.h"
@@ -351,9 +351,8 @@
.sy_call = (sy_call_t *)compat_43_sys_mmap
}, /* 71 = 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 6f24a42024d7 -r 40d6b32acc21 sys/compat/freebsd/syscalls.master
--- a/sys/compat/freebsd/syscalls.master Tue Dec 19 19:17:17 2017 +0000
+++ b/sys/compat/freebsd/syscalls.master Tue Dec 19 19:18:18 2017 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.70 2017/12/19 18:15:08 kamil Exp $
+ $NetBSD: syscalls.master,v 1.71 2017/12/19 19:18:18 kamil Exp $
; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@@ -161,7 +161,7 @@
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
+72 OBSOL vadvise
73 NOARGS { int|sys||munmap(void *addr, size_t len); }
74 NOARGS { int|sys||mprotect(void *addr, size_t len, \
int prot); }
Home |
Main Index |
Thread Index |
Old Index