xref: /csrg-svn/bin/sh/redir.h (revision 60698)
147142Sbostic /*-
2*60698Sbostic  * Copyright (c) 1991, 1993
3*60698Sbostic  *	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*60698Sbostic  *	@(#)redir.h	8.1 (Berkeley) 05/31/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);
2360296Smarc int fd0_redirected_p(void);
2447142Sbostic #else
2547142Sbostic void redirect();
2647142Sbostic void popredir();
2747142Sbostic void clearredir();
2847142Sbostic int copyfd();
2960296Smarc int fd0_redirected_p();
3047142Sbostic #endif
31