The R Project SVN R

Rev

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

Rev 72855 Rev 75992
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-2017  The R Core Team
4
 *            (C) 2004-2019  The R Core Team
5
 *
5
 *
6
 *  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
7
 *  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
8
 *  the Free Software Foundation; either version 2 of the License, or
8
 *  the Free Software Foundation; either version 2 of the License, or
9
 *  (at your option) any later version.
9
 *  (at your option) any later version.
Line 20... Line 20...
20
 
20
 
21
 
21
 
22
#define WIN32_LEAN_AND_MEAN 1
22
#define WIN32_LEAN_AND_MEAN 1
23
#include <windows.h>
23
#include <windows.h>
24
 
24
 
25
struct structRPIPE {
25
typedef struct {
26
    PROCESS_INFORMATION pi;
26
    PROCESS_INFORMATION pi;
-
 
27
    HANDLE job;
-
 
28
    HANDLE port;
-
 
29
} pinfo;
-
 
30
 
-
 
31
struct structRPIPE {
-
 
32
    pinfo pi;
27
    HANDLE thread;
33
    HANDLE thread;
28
    HANDLE read, write;
34
    HANDLE read, write;
29
    int exitcode, active, timedout;
35
    int exitcode, active, timedout;
30
    DWORD timeoutMillis;
36
    DWORD timeoutMillis;
31
};
37
};