summaryrefslogtreecommitdiff
path: root/usr.bin/fstat
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2001-06-18 06:29:31 +0000
committerPeter Pentchev <roam@FreeBSD.org>2001-06-18 06:29:31 +0000
commite6ebeb5f576a9ffb31220911fa79ffcea55a6285 (patch)
tree2543128dc25d1b1e2b25d41dce54eaa15d1a182c /usr.bin/fstat
parent1866adc54f81422afdf09182ee5bdbae3e88ed70 (diff)
Notes
Diffstat (limited to 'usr.bin/fstat')
-rw-r--r--usr.bin/fstat/fstat.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c
index c9d02110ba14..1ba66227c295 100644
--- a/usr.bin/fstat/fstat.c
+++ b/usr.bin/fstat/fstat.c
@@ -363,13 +363,20 @@ dofiles(kp)
else if (file.f_type == DTYPE_PIPE) {
if (checkfile == 0)
pipetrans((struct pipe *)file.f_data, i,
- file.f_flag);
+ file.f_flag);
+ }
+#endif
+#ifdef DTYPE_FIFO
+ else if (file.f_type == DTYPE_FIFO) {
+ if (checkfile == 0)
+ vtrans((struct vnode *)file.f_data, i,
+ file.f_flag);
}
#endif
else {
dprintf(stderr,
- "unknown file type %d for file %d of pid %d\n",
- file.f_type, i, Pid);
+ "unknown file type %d for file %d of pid %d\n",
+ file.f_type, i, Pid);
}
}
}