diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2018-05-25 20:40:23 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2018-05-25 20:40:23 +0000 |
commit | 7351a8bdb5f109de55006141f651ec2c1ee11e34 (patch) | |
tree | 422ac18e247fa194750ed600b72309882e3c0330 /sys/vm/vm_unix.c | |
parent | 9379029a9258d92f28c9721a5fcda5309207872d (diff) |
Make vadvise compat freebsd11.
The vadvise syscall (aka ovadvise) is undocumented and has always been
implmented as returning EINVAL. Put the syscall under COMPAT11 and
provide a userspace implementation.
Reviewed by: kib
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D15557
Notes
Notes:
svn path=/head/; revision=334223
Diffstat (limited to 'sys/vm/vm_unix.c')
-rw-r--r-- | sys/vm/vm_unix.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/sys/vm/vm_unix.c b/sys/vm/vm_unix.c index 80198668bcba..b53e6fb6614e 100644 --- a/sys/vm/vm_unix.c +++ b/sys/vm/vm_unix.c @@ -231,20 +231,11 @@ done: #endif /* defined(__aarch64__) || defined(__riscv__) */ } -#ifndef _SYS_SYSPROTO_H_ -struct ovadvise_args { - int anom; -}; -#endif - -/* - * MPSAFE - */ -/* ARGSUSED */ +#ifdef COMPAT_FREEBSD11 int -sys_ovadvise(struct thread *td, struct ovadvise_args *uap) +freebsd11_vadvise(struct thread *td, struct freebsd11_vadvise_args *uap) { - /* START_GIANT_OPTIONAL */ - /* END_GIANT_OPTIONAL */ + return (EINVAL); } +#endif |