Subversion Repositories SvarDOS

Rev

Rev 543 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 543 Rev 577
Line 34... Line 34...
34
  unsigned short stdout_openflag; /* 0x11 or 0x12, used for the 'extended open' call */
34
  unsigned short stdout_openflag; /* 0x11 or 0x12, used for the 'extended open' call */
35
};
35
};
36
 
36
 
37
/* parse commandline and performs necessary redirections. cmdline is
37
/* parse commandline and performs necessary redirections. cmdline is
38
 * modified so all redirections are cut out.
38
 * modified so all redirections are cut out.
39
 * piped commands are move to awaitingcmd for later execution
39
 * piped commands are moved to awaitingcmd for later execution and a temporary file is created (either in current directory or in %TEMP%, if the latter is defined)
40
 * returns 0 on success, DOS err on failure */
40
 * returns 0 on success, DOS err on failure */
41
unsigned short redir_parsecmd(struct redir_data *d, char *cmdline, char far *awaitingcmd);
41
unsigned short redir_parsecmd(struct redir_data *d, char *cmdline, char far *awaitingcmd, unsigned short envseg);
42
 
42
 
43
/* apply stdin/stdout redirections defined in redir_data, returns 0 on success */
43
/* apply stdin/stdout redirections defined in redir_data, returns 0 on success */
44
int redir_apply(const struct redir_data *d);
44
int redir_apply(const struct redir_data *d);
45
 
45
 
46
/* restores previous stdout/stdin handlers if they have been redirected */
46
/* restores previous stdout/stdin handlers if they have been redirected */