Subversion Repositories SvarDOS

Rev

Rev 517 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 517 Rev 543
Line 33... Line 33...
33
  char *stdoutfile;
33
  char *stdoutfile;
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
-
 
40
 * returns 0 on success, DOS err on failure */
39
void redir_parsecmd(struct redir_data *r, char *cmdline);
41
unsigned short redir_parsecmd(struct redir_data *d, char *cmdline, char far *awaitingcmd);
40
 
42
 
41
/* 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 */
42
int redir_apply(const struct redir_data *d);
44
int redir_apply(const struct redir_data *d);
43
 
45
 
44
/* restores previous stdout/stdin handlers if they have been redirected */
46
/* restores previous stdout/stdin handlers if they have been redirected */