xref: /original-bsd/bin/sh/redir.h (revision b3c06cab)
1 /*-
2  * Copyright (c) 1991, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Kenneth Almquist.
7  *
8  * %sccs.include.redist.c%
9  *
10  *	@(#)redir.h	8.2 (Berkeley) 05/04/95
11  */
12 
13 /* flags passed to redirect */
14 #define REDIR_PUSH 01		/* save previous values of file descriptors */
15 #define REDIR_BACKQ 02		/* save the command output in memory */
16 
17 union node;
18 void redirect __P((union node *, int));
19 void popredir __P((void));
20 int fd0_redirected_p __P((void));
21 void clearredir __P((void));
22 int copyfd __P((int, int));
23 
24