4.4BSD snapshot (revision 8.1)
[unix-history] / usr / src / bin / sh / redir.h
CommitLineData
deaa0514
KB
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 *
ddc16cae 10 * @(#)redir.h 5.2 (Berkeley) %G%
deaa0514
KB
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__
18union node;
19void redirect(union node *, int);
20void popredir(void);
21void clearredir(void);
22int copyfd(int, int);
ddc16cae 23int fd0_redirected_p(void);
deaa0514
KB
24#else
25void redirect();
26void popredir();
27void clearredir();
28int copyfd();
ddc16cae 29int fd0_redirected_p();
deaa0514 30#endif