26 #if defined (HAVE_CONFIG_H)
44 #define NOT_SUPPORTED(nm) \
45 nm ": not supported on this system"
52 dup2 (
int old_fd,
int new_fd)
59 dup2 (
int old_fd,
int new_fd, std::string& msg)
68 msg = std::strerror (errno);
93 msg = std::strerror (errno);
108 msg = std::strerror (errno);
129 msg = std::strerror (errno);
143 msg = std::strerror (errno);
192 pipe (
int *fildes, std::string& msg)
201 msg = std::strerror (errno);
223 msg = std::strerror (errno);
302 kill (pid_t pid,
int sig, std::string& msg)
313 msg = std::strerror (errno);
323 bool sync_mode,
int *fildes)
326 return sys::popen2 (cmd, args, sync_mode, fildes, msg);
331 bool sync_mode,
int *fildes, std::string& msg)
336 pid_t pid =
octave_popen2 (cmd.c_str (), argv, sync_mode, fildes,
355 fcntl (
int fd,
int cmd,
long arg, std::string& msg)
364 msg = std::strerror (errno);
char ** c_str_vec(void) const
static void delete_c_str_vec(const char *const *)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
int octave_fcntl_wrapper(int fd, int cmd, int arg)
bool wifexited(int status)
pid_t fork(std::string &msg)
int execvp(const std::string &file, const string_vector &argv)
int kill(pid_t pid, int sig)
int wexitstatus(int status)
pid_t getpgrp(std::string &msg)
pid_t waitpid(pid_t pid, int *status, int options)
bool wifstopped(int status)
bool wifcontinued(int status)
bool wifsignaled(int status)
#define NOT_SUPPORTED(nm)
int wcoredump(int status)
int fcntl(int fd, int cmd, long arg)
pid_t vfork(std::string &msg)
pid_t popen2(const std::string &cmd, const string_vector &args, bool sync_mode, int *fildes)
int dup2(int old_fd, int new_fd)
pid_t octave_popen2(const char *cmd, char *const *args, bool sync_mode, int *fildes, const char **errmsg)
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)