The R Project SVN R

Rev

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

Rev 5458 Rev 12256
Line 20... Line 20...
20
 
20
 
21
#include <windows.h>
21
#include <windows.h>
22
 
22
 
23
struct structRPIPE {
23
struct structRPIPE {
24
    HANDLE process;
24
    HANDLE process;
25
    HANDLE read,write;
25
    HANDLE read, write;
26
    int exitcode,active;
26
    int exitcode, active;
27
};
27
};
28
 
28
 
29
typedef struct structRPIPE rpipe;
29
typedef struct structRPIPE rpipe;
30
 
30
 
31
/*
31
/*
32
 * runcmd and rpipeClose return the exit code of the process
32
 * runcmd and rpipeClose return the exit code of the process
33
 * if runcmd return -1, problems in process start
33
 * if runcmd return -1, problems in process start
34
*/
34
*/
35
int   runcmd(char *cmd,int wait,int visible,char *finput);
35
int   runcmd(char *cmd, int wait, int visible, char *finput);
36
 
36
 
37
rpipe *rpipeOpen(char *cmd, int visible,char *finput);
37
rpipe *rpipeOpen(char *cmd, int visible, char *finput, int io);
38
char  *rpipeGets(rpipe *r,char *buf,int len);
38
char  *rpipeGets(rpipe *r, char *buf, int len);
39
int   rpipeGetc(rpipe *r);
39
int rpipeGetc(rpipe *r);
40
int  rpipeClose(rpipe *r);
40
int rpipeClose(rpipe *r);
41
 
41
 
42
char *runerror();
42
char *runerror();
43
 
43
 
44
#define NOLAUNCH -1
44
#define NOLAUNCH -1