summaryrefslogtreecommitdiff
path: root/sys/compat/common
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-09-06 10:37:49 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-09-06 10:37:49 +0000
commitdc55465565ccb564bf9d109e9748e7ac84fb0a8b (patch)
tree8bc753d06a39357c4d6598dbcd98dcf8d3622ae5 /sys/compat/common
parent18133ac92b8d40d3a67918bd757fe7b13c2f2b0c (diff)
Deal with the new pipes gracefully
Diffstat (limited to 'sys/compat/common')
-rw-r--r--sys/compat/common/vfs_syscalls_43.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/compat/common/vfs_syscalls_43.c b/sys/compat/common/vfs_syscalls_43.c
index 64217ec87f4..e111dec6001 100644
--- a/sys/compat/common/vfs_syscalls_43.c
+++ b/sys/compat/common/vfs_syscalls_43.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_syscalls_43.c,v 1.2 1996/04/18 21:21:36 niklas Exp $ */
+/* $OpenBSD: vfs_syscalls_43.c,v 1.3 1996/09/06 10:37:48 niklas Exp $ */
/* $NetBSD: vfs_syscalls_43.c,v 1.4 1996/03/14 19:31:52 christos Exp $ */
/*
@@ -63,6 +63,10 @@
#include <sys/mount.h>
#include <sys/syscallargs.h>
+#include <vm/vm.h>
+
+#include <sys/pipe.h>
+
static void cvtstat __P((struct stat *, struct ostat *));
/*
@@ -223,6 +227,12 @@ compat_43_sys_fstat(p, v, retval)
error = soo_stat((struct socket *)fp->f_data, &ub);
break;
+#ifndef OLD_PIPE
+ case DTYPE_PIPE:
+ error = pipe_stat((struct pipe *)fp->f_data, &ub);
+ break;
+#endif
+
default:
panic("ofstat");
/*NOTREACHED*/