summaryrefslogtreecommitdiff
path: root/sys/miscfs/fdesc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-26 11:52:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-26 11:52:36 +0000
commit027a31514ffa8883e00d4b32cde7741c78a9d0ad (patch)
tree8bbf115e4feb330411daffdbb9b754febbc14b7d /sys/miscfs/fdesc
parentaa919af7f40067b67529f4f8b915fc903726ace4 (diff)
still handle OLD_PIPE case
Diffstat (limited to 'sys/miscfs/fdesc')
-rw-r--r--sys/miscfs/fdesc/fdesc_vnops.c6
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: