From 61e7751eca16b3bbc16168c631f6cbcd28206ab2 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 5 Jan 2008 00:36:14 +0000 Subject: Mark vadvise(2) as obsolete and remove its implementation, so instead of returning EINVAL, you'll get ENOSYS. No serious code has used this system call in at least fifteen years. The libc stub will be removed at the next major crank time. ok henning@ deraadt@ krw@ toby@ --- sys/compat/osf1/osf1_syscall.h | 3 ++- sys/compat/osf1/osf1_sysent.c | 4 ++-- sys/compat/osf1/syscalls.master | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'sys/compat/osf1') diff --git a/sys/compat/osf1/osf1_syscall.h b/sys/compat/osf1/osf1_syscall.h index 0b006149cc7..48dde365750 100644 --- a/sys/compat/osf1/osf1_syscall.h +++ b/sys/compat/osf1/osf1_syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: osf1_syscall.h,v 1.12 2007/11/27 18:05:59 art Exp $ */ +/* $OpenBSD: osf1_syscall.h,v 1.13 2008/01/05 00:36:13 miod Exp $ */ /* * System call numbers. @@ -164,6 +164,7 @@ /* syscall: "mmap" ret: "caddr_t" args: "caddr_t" "size_t" "int" "int" "int" "off_t" */ #define OSF1_SYS_mmap 71 + /* 72 is obsolete vadvise */ /* syscall: "munmap" ret: "int" args: "caddr_t" "size_t" */ #define OSF1_SYS_munmap 73 diff --git a/sys/compat/osf1/osf1_sysent.c b/sys/compat/osf1/osf1_sysent.c index de3752c0df4..2264fb25bda 100644 --- a/sys/compat/osf1/osf1_sysent.c +++ b/sys/compat/osf1/osf1_sysent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: osf1_sysent.c,v 1.12 2007/11/27 18:05:59 art Exp $ */ +/* $OpenBSD: osf1_sysent.c,v 1.13 2008/01/05 00:36:13 miod Exp $ */ /* * System call switch table. @@ -169,7 +169,7 @@ struct sysent osf1_sysent[] = { { 6, s(struct osf1_sys_mmap_args), 0, osf1_sys_mmap }, /* 71 = mmap */ { 0, 0, 0, - sys_nosys }, /* 72 = unimplemented ovadvise */ + sys_nosys }, /* 72 = obsolete vadvise */ { 2, s(struct sys_munmap_args), 0, sys_munmap }, /* 73 = munmap */ { 3, s(struct osf1_sys_mprotect_args), 0, diff --git a/sys/compat/osf1/syscalls.master b/sys/compat/osf1/syscalls.master index 62c13fcae99..7d9720f630e 100644 --- a/sys/compat/osf1/syscalls.master +++ b/sys/compat/osf1/syscalls.master @@ -1,4 +1,4 @@ - $OpenBSD: syscalls.master,v 1.10 2004/05/28 18:28:14 tedu Exp $ + $OpenBSD: syscalls.master,v 1.11 2008/01/05 00:36:13 miod Exp $ ; $NetBSD: syscalls.master,v 1.29 1999/05/10 03:33:04 cgd Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -138,7 +138,7 @@ 70 UNIMPL sstk 71 STD { caddr_t osf1_sys_mmap(caddr_t addr, size_t len, \ int prot, int flags, int fd, off_t pos); } -72 UNIMPL ovadvise +72 OBSOL vadvise 73 NOARGS { int sys_munmap(caddr_t addr, size_t len); } 74 STD { int osf1_sys_mprotect(void *addr, size_t len, \ int prot); } -- cgit v1.2.3