#include <reader.h>\r
#include <timer.h>\r
\r
-#ifndef WIN32\r
+#ifndef _XBT_WIN32\r
#include <sys/types.h>\r
#include <sys/wait.h>\r
#include <sys/stat.h>\r
command->root->cmd_nb++;\r
xbt_os_mutex_release(mutex);\r
\r
- #ifndef WIN32\r
+ #ifndef _XBT_WIN32\r
command->killed = 0;\r
command->execlp_errno = 0;\r
#endif\r
\r
/* execute the command of the test */\r
\r
- #ifndef WIN32\r
+ #ifndef _XBT_WIN32\r
command_exec(command, command->context->command_line);\r
#else\r
/* play the translated command line on Windows */\r
return NULL;\r
}\r
\r
-#ifdef WIN32\r
+#ifdef _XBT_WIN32\r
\r
#ifndef BUFSIZE\r
#define BUFSIZE 4096\r
}\r
#endif\r
\r
-#ifdef WIN32\r
+#ifdef _XBT_WIN32\r
void\r
command_wait(command_t command)\r
{\r
while(!command->reader->done)\r
xbt_os_thread_yield();\r
\r
- #ifdef WIN32\r
+ #ifdef _XBT_WIN32\r
CloseHandle(command->stdout_fd);\r
#else\r
close(command->stdout_fd);\r
}\r
}\r
\r
-#ifdef WIN32\r
+#ifdef _XBT_WIN32\r
void\r
command_kill(command_t command)\r
{\r
if(cs_successeded != command->status)\r
{\r
\r
- #ifndef WIN32\r
+ #ifndef _XBT_WIN32\r
if(command->killed)\r
printf(" <killed command>\n");\r
#endif\r
{\r
/* close the stdin and the stdout pipe handles */\r
\r
- #ifdef WIN32\r
+ #ifdef _XBT_WIN32\r
if((*ptr)->stdin_fd != INDEFINITE_FD)\r
CloseHandle((*ptr)->stdin_fd);\r
\r