31 #if defined (HAVE_CONFIG_H)
35 #include <sys/types.h>
38 #if defined (__WIN32__) && ! defined (__CYGWIN__)
44 #if ! defined (WCONTINUE)
48 #if ! defined (WNOHANG)
52 #if ! defined (WUNTRACED)
56 #if ! defined (WIFCONTINUED)
57 # define WIFCONTINUED(x) false
63 #if defined (__WIN32__) && ! defined (__CYGWIN__)
68 octave_unused_parameter (options);
73 HANDLE hProcess = OpenProcess (PROCESS_QUERY_INFORMATION | SYNCHRONIZE,
79 if (WaitForSingleObject (hProcess, INFINITE) != WAIT_OBJECT_0)
81 CloseHandle (hProcess);
85 if (! GetExitCodeProcess (hProcess, &status))
87 CloseHandle (hProcess);
91 CloseHandle (hProcess);
101 return waitpid (pid, statusp, options);
123 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
127 # pragma GCC diagnostic push
128 # pragma GCC diagnostic ignored "-Wunused-parameter"
134 return WCOREDUMP (status);
140 return WEXITSTATUS (status);
152 return WIFEXITED (status);
158 return WIFSIGNALED (status);
164 return WIFSTOPPED (status);
170 return WSTOPSIG (status);
176 return WTERMSIG (status);
179 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
181 # pragma GCC diagnostic pop
pid_t waitpid(pid_t pid, int *status, int options)
int octave_wuntraced_wrapper(void)
pid_t octave_waitpid_wrapper(pid_t pid, int *statusp, int options)
int octave_wcoredump_wrapper(int status)
bool octave_wifsignaled_wrapper(int status)
bool octave_wifcontinued_wrapper(int status)
bool octave_wifstopped_wrapper(int status)
int octave_wexitstatus_wrapper(int status)
int octave_wcontinue_wrapper(void)
bool octave_wifexited_wrapper(int status)
int octave_wtermsig_wrapper(int status)
int octave_wstopsig_wrapper(int status)
int octave_wnohang_wrapper(void)