diff options
Diffstat (limited to 'sys/miscfs/fdesc')
-rw-r--r-- | sys/miscfs/fdesc/fdesc_vnops.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/miscfs/fdesc/fdesc_vnops.c b/sys/miscfs/fdesc/fdesc_vnops.c index d5ed2609bd8..0943cec0029 100644 --- a/sys/miscfs/fdesc/fdesc_vnops.c +++ b/sys/miscfs/fdesc/fdesc_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fdesc_vnops.c,v 1.5 1996/09/10 16:44:22 niklas Exp $ */ +/* $OpenBSD: fdesc_vnops.c,v 1.6 1996/09/26 11:52:35 deraadt Exp $ */ /* $NetBSD: fdesc_vnops.c,v 1.32 1996/04/11 11:24:29 mrg Exp $ */ /* @@ -484,6 +484,9 @@ fdesc_attr(fd, vap, cred, p) break; case DTYPE_PIPE: +#ifdef OLD_PIPE + error = 0; +#else error = pipe_stat((struct pipe *)fp->f_data, &stb); if (error == 0) { vattr_null(vap); @@ -504,6 +507,7 @@ fdesc_attr(fd, vap, cred, p) vap->va_rdev = stb.st_rdev; vap->va_bytes = stb.st_blocks * stb.st_blksize; } +#endif break; default: |