Deal with the new pipes gracefully
authorniklas <niklas@openbsd.org>
Fri, 6 Sep 1996 10:37:48 +0000 (10:37 +0000)
committerniklas <niklas@openbsd.org>
Fri, 6 Sep 1996 10:37:48 +0000 (10:37 +0000)
sys/compat/common/vfs_syscalls_43.c

index 64217ec..e111dec 100644 (file)
@@ -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 $     */
 
 /*
 #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*/