147142Sbostic /*- 260698Sbostic * Copyright (c) 1991, 1993 360698Sbostic * The Regents of the University of California. All rights reserved. 447142Sbostic * 547142Sbostic * This code is derived from software contributed to Berkeley by 647142Sbostic * Kenneth Almquist. 747142Sbostic * 847142Sbostic * %sccs.include.redist.c% 947142Sbostic * 10*69272Schristos * @(#)redir.h 8.2 (Berkeley) 05/04/95 1147142Sbostic */ 1247142Sbostic 1347142Sbostic /* flags passed to redirect */ 1447142Sbostic #define REDIR_PUSH 01 /* save previous values of file descriptors */ 1547142Sbostic #define REDIR_BACKQ 02 /* save the command output in memory */ 1647142Sbostic 1747142Sbostic union node; 18*69272Schristos void redirect __P((union node *, int)); 19*69272Schristos void popredir __P((void)); 20*69272Schristos int fd0_redirected_p __P((void)); 21*69272Schristos void clearredir __P((void)); 22*69272Schristos int copyfd __P((int, int)); 23*69272Schristos 24