#ifndef DOS_PIPE_INTERNAL
#define DOS_PIPE_INTERNAL

#if (DOS_PIPE_DEBUG - 1) == 0
extern bool keep_pipe_files;
extern bool log_pipe_files;
extern char *pipe_log_filename;

extern char *pipe_log_buffer;
extern char *pipe_log_buffer_ptr;

extern char *bash_script_command_line;
extern char *previous_script_command_line;
extern char *bash_script_name;
extern char *previous_script_name;
extern int bash_script_line_number;
#endif /* DOS_PIPE_DEBUG */

struct pipe_t
{
  int fds[3];
  char *name;
};

#define READ_END   0
#define WRITE_END  1
#define BACK_UP    2

#if !defined (OPEN_MAX)
#define OPEN_MAX (256 - 10)  /*  Bash uses the upper FD to open its script.  */
#endif

#endif /* DOS_PIPE_INTERNAL */
