The R Project SVN R

Rev

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

Rev 12256 Rev 32210
Line 1... Line 1...
1
/*
1
/*
2
 *  A simple 'reading' pipe (and a command executor)
2
 *  A simple 'reading' pipe (and a command executor)
3
 *  Copyright (C) 1999  Guido Masarotto
3
 *  Copyright (C) 1999  Guido Masarotto
-
 
4
 *            (C) 2004  The R Development Core Team
4
 *
5
 *
5
 *  This program is free software; you can redistribute it and/or modify
6
 *  This program is free software; you can redistribute it and/or modify
6
 *  it under the terms of the GNU General Public License as published by
7
 *  it under the terms of the GNU General Public License as published by
7
 *  the Free Software Foundation; either version 2 of the License, or
8
 *  the Free Software Foundation; either version 2 of the License, or
8
 *  (at your option) any later version.
9
 *  (at your option) any later version.
Line 30... Line 31...
30
 
31
 
31
/*
32
/*
32
 * runcmd and rpipeClose return the exit code of the process
33
 * runcmd and rpipeClose return the exit code of the process
33
 * if runcmd return -1, problems in process start
34
 * if runcmd return -1, problems in process start
34
*/
35
*/
-
 
36
#define runcmd Rf_runcmd
35
int   runcmd(char *cmd, int wait, int visible, char *finput);
37
int   runcmd(char *cmd, int wait, int visible, char *finput);
36
 
38
 
37
rpipe *rpipeOpen(char *cmd, int visible, char *finput, int io);
39
rpipe *rpipeOpen(char *cmd, int visible, char *finput, int io);
38
char  *rpipeGets(rpipe *r, char *buf, int len);
40
char  *rpipeGets(rpipe *r, char *buf, int len);
39
int rpipeGetc(rpipe *r);
41
int rpipeGetc(rpipe *r);