26 #if defined (HAVE_CONFIG_H)
45 #define NOT_SUPPORTED(nm) \
46 nm ": not supported on this system"
53 dup2 (
int old_fd,
int new_fd)
60 dup2 (
int old_fd,
int new_fd, std::string& msg)
69 msg = std::strerror (errno);
94 msg = std::strerror (errno);
109 msg = std::strerror (errno);
130 msg = std::strerror (errno);
144 msg = std::strerror (errno);
193 pipe (
int *fildes, std::string& msg)
202 msg = std::strerror (errno);
224 msg = std::strerror (errno);
303 kill (pid_t pid,
int sig, std::string& msg)
314 msg = std::strerror (errno);
324 bool sync_mode,
int *fildes)
327 return sys::popen2 (cmd, args, sync_mode, fildes, msg);
332 bool sync_mode,
int *fildes, std::string& msg)
337 pid_t pid =
octave_popen2 (cmd.c_str (), argv, sync_mode, fildes,
356 fcntl (
int fd,
int cmd,
long arg, std::string& msg)
365 msg = std::strerror (errno);
char ** c_str_vec(void) const
static void delete_c_str_vec(const char *const *)
int octave_fcntl_wrapper(int fd, int cmd, int arg)
int wexitstatus(int status)
pid_t getpgrp(std::string &msg)
bool wifstopped(int status)
pid_t popen2(const std::string &cmd, const string_vector &args, bool sync_mode, int *fildes)
int execvp(const std::string &file, const string_vector &argv)
bool wifsignaled(int status)
int kill(pid_t pid, int sig)
pid_t waitpid(pid_t pid, int *status, int options)
bool wifcontinued(int status)
int fcntl(int fd, int cmd, long arg)
int dup2(int old_fd, int new_fd)
bool wifexited(int status)
int wcoredump(int status)
pid_t fork(std::string &msg)
pid_t vfork(std::string &msg)
#define NOT_SUPPORTED(nm)
pid_t octave_popen2(const char *cmd, char *const *args, bool sync_mode, int *fildes, const char **errmsg)
octave_value::octave_value(const Array< char > &chm, char type) return retval
int octave_kill_wrapper(pid_t pid, int signum)
bool octave_have_kill(void)
gid_t octave_getgid_wrapper(void)
uid_t octave_geteuid_wrapper(void)
pid_t octave_fork_wrapper(void)
pid_t octave_getpgrp_wrapper(void)
pid_t octave_getppid_wrapper(void)
bool octave_have_vfork(void)
int octave_execvp_wrapper(const char *file, char *const *argv)
gid_t octave_getegid_wrapper(void)
pid_t octave_getpid_wrapper(void)
uid_t octave_getuid_wrapper(void)
pid_t octave_vfork_wrapper(void)
bool octave_have_fork(void)
int octave_dup2_wrapper(int fd1, int fd2)
int octave_pipe_wrapper(int *fd)
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)