xref: /csrg-svn/bin/sh/redir.h (revision 47142)
1*47142Sbostic /*-
2*47142Sbostic  * Copyright (c) 1991 The Regents of the University of California.
3*47142Sbostic  * All rights reserved.
4*47142Sbostic  *
5*47142Sbostic  * This code is derived from software contributed to Berkeley by
6*47142Sbostic  * Kenneth Almquist.
7*47142Sbostic  *
8*47142Sbostic  * %sccs.include.redist.c%
9*47142Sbostic  *
10*47142Sbostic  *	@(#)redir.h	5.1 (Berkeley) 03/07/91
11*47142Sbostic  */
12*47142Sbostic 
13*47142Sbostic /* flags passed to redirect */
14*47142Sbostic #define REDIR_PUSH 01		/* save previous values of file descriptors */
15*47142Sbostic #define REDIR_BACKQ 02		/* save the command output in memory */
16*47142Sbostic 
17*47142Sbostic #ifdef __STDC__
18*47142Sbostic union node;
19*47142Sbostic void redirect(union node *, int);
20*47142Sbostic void popredir(void);
21*47142Sbostic void clearredir(void);
22*47142Sbostic int copyfd(int, int);
23*47142Sbostic #else
24*47142Sbostic void redirect();
25*47142Sbostic void popredir();
26*47142Sbostic void clearredir();
27*47142Sbostic int copyfd();
28*47142Sbostic #endif
29