31 #if defined (HAVE_CONFIG_H)
35 #include <sys/types.h>
40 #if ! defined (WCONTINUE)
44 #if ! defined (WNOHANG)
48 #if ! defined (WUNTRACED)
52 #if ! defined (WIFCONTINUED)
53 # define WIFCONTINUED(x) false
59 #if defined (__WIN32__) && ! defined (__CYGWIN__)
61 octave_unused_parameter (pid);
62 octave_unused_parameter (options);
69 return waitpid (pid, statusp, options);
91 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
95 #pragma GCC diagnostic push
96 #pragma GCC diagnostic ignored "-Wunused-parameter"
102 return WCOREDUMP (status);
108 return WEXITSTATUS (status);
120 return WIFEXITED (status);
126 return WIFSIGNALED (status);
132 return WIFSTOPPED (status);
138 return WSTOPSIG (status);
144 return WTERMSIG (status);
147 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
149 #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)