xref: /original-bsd/bin/sh/redir.h (revision abfc216a)
1 /*-
2  * Copyright (c) 1991 The Regents of the University of California.
3  * 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	5.1 (Berkeley) 03/07/91
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 #else
24 void redirect();
25 void popredir();
26 void clearredir();
27 int copyfd();
28 #endif
29