diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-01-05 00:36:14 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-01-05 00:36:14 +0000 |
commit | 61e7751eca16b3bbc16168c631f6cbcd28206ab2 (patch) | |
tree | aa12501141a6599be65d52138cd9badfc1d105be /sys/compat/sunos/sunos_sysent.c | |
parent | f09a15b3e5bf201587fe4441b9655b355d8607d7 (diff) |
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@
Diffstat (limited to 'sys/compat/sunos/sunos_sysent.c')
-rw-r--r-- | sys/compat/sunos/sunos_sysent.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/sunos/sunos_sysent.c b/sys/compat/sunos/sunos_sysent.c index 740d5d38b18..e2c4bc1a9d9 100644 --- a/sys/compat/sunos/sunos_sysent.c +++ b/sys/compat/sunos/sunos_sysent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sunos_sysent.c,v 1.19 2007/11/27 18:05:59 art Exp $ */ +/* $OpenBSD: sunos_sysent.c,v 1.20 2008/01/05 00:36:13 miod Exp $ */ /* * System call switch table. @@ -173,8 +173,8 @@ struct sysent sunos_sysent[] = { sys_sstk }, /* 70 = sstk */ { 6, s(struct sunos_sys_mmap_args), 0, sunos_sys_mmap }, /* 71 = mmap */ - { 1, s(struct sys_ovadvise_args), 0, - sys_ovadvise }, /* 72 = vadvise */ + { 0, 0, 0, + sys_nosys }, /* 72 = obsolete vadvise */ { 2, s(struct sys_munmap_args), 0, sys_munmap }, /* 73 = munmap */ { 3, s(struct sys_mprotect_args), 0, |