summaryrefslogtreecommitdiff
path: root/sys/compat/common
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2010-07-01 23:10:41 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2010-07-01 23:10:41 +0000
commitcedc0b8a492e0064c1f03b51d79471dd3ad697d5 (patch)
treee8d932760326ddd117e84d03412887a253e5abbb /sys/compat/common
parent38957b2b95a212e8ed0153081c2e52575f1307d0 (diff)
3.5 compat is old, but relied upon by other compats still in tree. the
fhstat syscall, however, isn't needed and can go away. ok deraadt
Diffstat (limited to 'sys/compat/common')
-rw-r--r--sys/compat/common/vfs_syscalls_35.c39
1 files changed, 1 insertions, 38 deletions
diff --git a/sys/compat/common/vfs_syscalls_35.c b/sys/compat/common/vfs_syscalls_35.c
index 10d8acc3d0a..46eaf4a7716 100644
--- a/sys/compat/common/vfs_syscalls_35.c
+++ b/sys/compat/common/vfs_syscalls_35.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_syscalls_35.c,v 1.4 2009/01/29 22:08:45 guenther Exp $ */
+/* $OpenBSD: vfs_syscalls_35.c,v 1.5 2010/07/01 23:10:40 tedu Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -175,40 +175,3 @@ compat_35_sys_fstat(struct proc *p, void *v, register_t *retval)
}
return (error);
}
-
-/* ARGSUSED */
-int
-compat_35_sys_fhstat(struct proc *p, void *v, register_t *retval)
-{
- struct sys_fhstat_args /* {
- syscallarg(const fhandle_t *) fhp;
- syscallarg(struct stat35 *) sb;
- } */ *uap = v;
- struct stat ub;
- struct stat35 oub;
- int error;
- fhandle_t fh;
- struct mount *mp;
- struct vnode *vp;
-
- /*
- * Must be super user
- */
- if ((error = suser(p, 0)))
- return (error);
-
- if ((error = copyin(SCARG(uap, fhp), &fh, sizeof(fhandle_t))) != 0)
- return (error);
-
- if ((mp = vfs_getvfs(&fh.fh_fsid)) == NULL)
- return (ESTALE);
- if ((error = VFS_FHTOVP(mp, &fh.fh_fid, &vp)))
- return (error);
- error = vn_stat(vp, &ub, p);
- vput(vp);
- if (error)
- return (error);
- cvtstat(&ub, &oub);
- error = copyout(&oub, SCARG(uap, sb), sizeof(oub));
- return (error);
-}