aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-11-08 03:33:21 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-11-08 03:33:21 +0000
commit53c2c4e22b1f311a1ea25c928fa8042d08639b56 (patch)
tree5c4b36445fdf691c743ee52862cc9fdff1355c7f /sys/compat/linux
parentb127fae40530898bf3a5af68c7dd586d2315ec17 (diff)
Notes
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/linux_stats.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/compat/linux/linux_stats.c b/sys/compat/linux/linux_stats.c
index 75008eb99f19..6f42ba0b65bc 100644
--- a/sys/compat/linux/linux_stats.c
+++ b/sys/compat/linux/linux_stats.c
@@ -175,21 +175,7 @@ linux_newfstat(struct proc *p, struct linux_newfstat_args *args)
(fp = fdp->fd_ofiles[args->fd]) == NULL)
return (EBADF);
- switch (fp->f_type) {
- case DTYPE_FIFO:
- case DTYPE_VNODE:
- error = vn_stat((struct vnode *)fp->f_data, &buf, p);
- break;
- case DTYPE_SOCKET:
- error = soo_stat((struct socket *)fp->f_data, &buf);
- break;
- case DTYPE_PIPE:
- error = pipe_stat((struct pipe *)fp->f_data, &buf);
- break;
- default:
- panic("LINUX newfstat");
- }
-
+ error = fo_stat(fp, &buf, p);
if (!error)
error = newstat_copyout(&buf, args->buf);