Commit | Line | Data |
---|---|---|
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__ | |
18 | union node; | |
19 | void redirect(union node *, int); | |
20 | void popredir(void); | |
21 | void clearredir(void); | |
22 | int copyfd(int, int); | |
ddc16cae | 23 | int fd0_redirected_p(void); |
deaa0514 KB |
24 | #else |
25 | void redirect(); | |
26 | void popredir(); | |
27 | void clearredir(); | |
28 | int copyfd(); | |
ddc16cae | 29 | int fd0_redirected_p(); |
deaa0514 | 30 | #endif |