147142Sbostic /*- 247142Sbostic * Copyright (c) 1991 The Regents of the University of California. 347142Sbostic * 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*60296Smarc * @(#)redir.h 5.2 (Berkeley) 05/24/93 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 #ifdef __STDC__ 1847142Sbostic union node; 1947142Sbostic void redirect(union node *, int); 2047142Sbostic void popredir(void); 2147142Sbostic void clearredir(void); 2247142Sbostic int copyfd(int, int); 23*60296Smarc int fd0_redirected_p(void); 2447142Sbostic #else 2547142Sbostic void redirect(); 2647142Sbostic void popredir(); 2747142Sbostic void clearredir(); 2847142Sbostic int copyfd(); 29*60296Smarc int fd0_redirected_p(); 3047142Sbostic #endif 31