#include <io.h>
Data Fields | |
| int | io_mode |
| Type of redirect. | |
| int | fd |
| FD to redirect. | |
| union { | |
| int pipe_fd [2] | |
| Fds for IO_PIPE and for IO_BUFFER. | |
| wchar_t * filename | |
| Filename IO_FILE. | |
| int old_fd | |
| fd to redirect specified fd to, for IO_FD | |
| } | param1 |
| Type-specific parameter for redirection. | |
| union { | |
| int flags | |
| file creation flags to send to open for IO_FILE | |
| buffer_t * out_buffer | |
| buffer to save output in for IO_BUFFER | |
| int close_old | |
| Whether to close old_fd for IO_FD. | |
| } | param2 |
| Second type-specific paramter for redirection. | |
| int | is_input |
| Set to true if this is an input io redirection. | |
| struct io_data * | next |
| Pointer to the next IO redirection. | |
1.5.6