Parent Directory | Revision Log | Patch
revision 1.4 by mocchiut, Fri May 21 13:16:11 2010 UTC | revision 1.6 by mocchiut, Thu Jan 16 15:52:36 2014 UTC | |
---|---|---|
# | Line 8 | Line 8 |
8 | // | // |
9 | // 0.00 - 1.00 : working. | // 0.00 - 1.00 : working. |
10 | // | // |
11 | #include <sys/stat.h> | |
12 | #include <TSystem.h> | #include <TSystem.h> |
13 | #include <iostream> | #include <iostream> |
14 | #include <sys/types.h> | #include <sys/types.h> |
# | Line 114 int main(int numinp, char *inps[]){ | Line 115 int main(int numinp, char *inps[]){ |
115 | // redirect to dev/null the stdout | // redirect to dev/null the stdout |
116 | // | // |
117 | int nul; | int nul; |
118 | nul = open("/dev/null", O_CREAT | O_RDWR,S_IREAD | S_IWRITE); | nul = open("/dev/null", O_CREAT | O_RDWR,S_IRUSR | S_IWUSR); |
119 | dup2(nul,1); | dup2(nul,1); |
120 | dup2(nul,2); | dup2(nul,2); |
121 | close(nul); | close(nul); |
|
ViewVC Help | |
Powered by ViewVC 1.1.23 |