date and time created 91/03/07 20:27:58 by bostic
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 8 Mar 1991 12:27:58 +0000 (04:27 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 8 Mar 1991 12:27:58 +0000 (04:27 -0800)
SCCS-vsn: bin/sh/redir.h 5.1

usr/src/bin/sh/redir.h [new file with mode: 0644]

diff --git a/usr/src/bin/sh/redir.h b/usr/src/bin/sh/redir.h
new file mode 100644 (file)
index 0000000..313b22b
--- /dev/null
@@ -0,0 +1,28 @@
+/*-
+ * Copyright (c) 1991 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Kenneth Almquist.
+ *
+ * %sccs.include.redist.c%
+ *
+ *     @(#)redir.h     5.1 (Berkeley) %G%
+ */
+
+/* flags passed to redirect */
+#define REDIR_PUSH 01          /* save previous values of file descriptors */
+#define REDIR_BACKQ 02         /* save the command output in memory */
+
+#ifdef __STDC__
+union node;
+void redirect(union node *, int);
+void popredir(void);
+void clearredir(void);
+int copyfd(int, int);
+#else
+void redirect();
+void popredir();
+void clearredir();
+int copyfd();
+#endif