xref: /original-bsd/bin/sh/redir.h (revision 4092c5cc)
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.1 (Berkeley) 05/31/93
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 #ifdef __STDC__
18 union node;
19 void redirect(union node *, int);
20 void popredir(void);
21 void clearredir(void);
22 int copyfd(int, int);
23 int fd0_redirected_p(void);
24 #else
25 void redirect();
26 void popredir();
27 void clearredir();
28 int copyfd();
29 int fd0_redirected_p();
30 #endif
31