#include <cerrno>#include <cstdlib>#include <cstring>#include "fcntl-wrappers.h"#include "lo-utils.h"#include "lo-sysdep.h"#include "oct-syscalls.h"#include "octave-popen2.h"#include "signal-wrappers.h"#include "str-vec.h"#include "unistd-wrappers.h"#include "wait-wrappers.h"
Go to the source code of this file.
Macros | |
| #define | NOT_SUPPORTED(nm) nm ": not supported on this system" |
Functions | |
| int | dup2 (int old_fd, int new_fd) |
| int | dup2 (int old_fd, int new_fd, std::string &msg) |
| int | execvp (const std::string &file, const string_vector &args, std::string &msg) |
| int | execvp (const std::string &file, const string_vector &argv) |
| int | fcntl (int fd, int cmd, long arg) |
| int | fcntl (int fd, int cmd, long arg, std::string &msg) |
| pid_t | fork (std::string &msg) |
| gid_t | getegid (void) |
| uid_t | geteuid (void) |
| gid_t | getgid (void) |
| pid_t | getpgrp (std::string &msg) |
| pid_t | getpid (void) |
| pid_t | getppid (void) |
| uid_t | getuid (void) |
| int | kill (pid_t pid, int sig) |
| int | kill (pid_t pid, int sig, std::string &msg) |
| int | pipe (int *fildes) |
| int | pipe (int *fildes, std::string &msg) |
| pid_t | popen2 (const std::string &cmd, const string_vector &args, bool sync_mode, int *fildes) |
| pid_t | popen2 (const std::string &cmd, const string_vector &args, bool sync_mode, int *fildes, std::string &msg) |
| pid_t | vfork (std::string &msg) |
| pid_t | waitpid (pid_t pid, int *status, int options) |
| pid_t | waitpid (pid_t pid, int *status, int options, std::string &msg) |
| int | wcontinue (void) |
| int | wcoredump (int status) |
| int | wexitstatus (int status) |
| bool | wifcontinued (int status) |
| bool | wifexited (int status) |
| bool | wifsignaled (int status) |
| bool | wifstopped (int status) |
| int | wnohang (void) |
| int | wstopsig (int status) |
| int | wtermsig (int status) |
| int | wuntraced (void) |
| #define NOT_SUPPORTED | ( | nm | ) | nm ": not supported on this system" |
Definition at line 44 of file oct-syscalls.cc.
| int dup2 | ( | int | old_fd, |
| int | new_fd | ||
| ) |
Definition at line 52 of file oct-syscalls.cc.
Referenced by QUnixTerminalImpl::~QUnixTerminalImpl(), QUnixTerminalImpl::connectToPty(), Fdup2(), octave_dup2_wrapper(), octave_popen2(), and QConsolePrivate::setupStandardIO().
| int dup2 | ( | int | old_fd, |
| int | new_fd, | ||
| std::string & | msg | ||
| ) |
Definition at line 59 of file oct-syscalls.cc.
References octave_dup2_wrapper().
| int execvp | ( | const std::string & | file, |
| const string_vector & | args, | ||
| std::string & | msg | ||
| ) |
Definition at line 81 of file oct-syscalls.cc.
References string_vector::c_str_vec(), string_vector::delete_c_str_vec(), and octave_execvp_wrapper().
| int execvp | ( | const std::string & | file, |
| const string_vector & | argv | ||
| ) |
Definition at line 74 of file oct-syscalls.cc.
Referenced by Fexec(), octave_execvp_wrapper(), and octave_popen2().
| int fcntl | ( | int | fd, |
| int | cmd, | ||
| long | arg | ||
| ) |
Definition at line 348 of file oct-syscalls.cc.
Referenced by KPty::close(), Ffcntl(), octave_fcntl_wrapper(), octave_popen2(), and KPty::open().
| int fcntl | ( | int | fd, |
| int | cmd, | ||
| long | arg, | ||
| std::string & | msg | ||
| ) |
Definition at line 355 of file oct-syscalls.cc.
References octave_fcntl_wrapper().
| pid_t fork | ( | std::string & | msg | ) |
Definition at line 99 of file oct-syscalls.cc.
References NOT_SUPPORTED, octave_fork_wrapper(), and octave_have_fork().
Referenced by Ffork(), octave_async_system_wrapper(), octave_fork_wrapper(), octave_popen2(), and procbuf::open().
| gid_t getegid | ( | void | ) |
Definition at line 167 of file oct-syscalls.cc.
References octave_getegid_wrapper().
Referenced by Fgetegid(), and octave_getegid_wrapper().
| uid_t geteuid | ( | void | ) |
Definition at line 179 of file oct-syscalls.cc.
References octave_geteuid_wrapper().
Referenced by KPty::close(), Fgeteuid(), octave_geteuid_wrapper(), and KPty::open().
| gid_t getgid | ( | void | ) |
Definition at line 161 of file oct-syscalls.cc.
References octave_getgid_wrapper().
Referenced by KPty::close(), Fgetgid(), octave_getgid_wrapper(), and KPty::open().
| pid_t getpgrp | ( | std::string & | msg | ) |
Definition at line 138 of file oct-syscalls.cc.
References octave_getpgrp_wrapper().
Referenced by Fgetpgrp(), and octave_getpgrp_wrapper().
| pid_t getpid | ( | void | ) |
Definition at line 149 of file oct-syscalls.cc.
References octave_getpid_wrapper().
Referenced by Fgetpid(), init_mersenne_twister(), and octave_getpid_wrapper().
| pid_t getppid | ( | void | ) |
Definition at line 155 of file oct-syscalls.cc.
References octave_getppid_wrapper().
Referenced by Fgetppid(), and octave_getppid_wrapper().
| uid_t getuid | ( | void | ) |
Definition at line 173 of file oct-syscalls.cc.
References octave_getuid_wrapper().
Referenced by env::do_get_home_directory(), env::do_get_user_name(), Fgetuid(), octave_getuid_wrapper(), and KPty::open().
| int kill | ( | pid_t | pid, |
| int | sig | ||
| ) |
Definition at line 295 of file oct-syscalls.cc.
Referenced by Fkill(), and octave_kill_wrapper().
| int kill | ( | pid_t | pid, |
| int | sig, | ||
| std::string & | msg | ||
| ) |
Definition at line 302 of file oct-syscalls.cc.
References NOT_SUPPORTED, octave_have_kill(), and octave_kill_wrapper().
| int pipe | ( | int * | fildes | ) |
Definition at line 185 of file oct-syscalls.cc.
Referenced by Fpipe(), octave_pipe_wrapper(), octave_popen2(), and procbuf::open().
| int pipe | ( | int * | fildes, |
| std::string & | msg | ||
| ) |
Definition at line 192 of file oct-syscalls.cc.
References octave_pipe_wrapper().
| pid_t popen2 | ( | const std::string & | cmd, |
| const string_vector & | args, | ||
| bool | sync_mode, | ||
| int * | fildes | ||
| ) |
Definition at line 322 of file oct-syscalls.cc.
Referenced by Fpopen2().
| pid_t popen2 | ( | const std::string & | cmd, |
| const string_vector & | args, | ||
| bool | sync_mode, | ||
| int * | fildes, | ||
| std::string & | msg | ||
| ) |
Definition at line 330 of file oct-syscalls.cc.
References string_vector::c_str_vec(), string_vector::delete_c_str_vec(), and octave_popen2().
| pid_t vfork | ( | std::string & | msg | ) |
Definition at line 117 of file oct-syscalls.cc.
References NOT_SUPPORTED, octave_fork_wrapper(), octave_have_fork(), octave_have_vfork(), and octave_vfork_wrapper().
Referenced by octave_vfork_wrapper().
| pid_t waitpid | ( | pid_t | pid, |
| int * | status, | ||
| int | options | ||
| ) |
Definition at line 207 of file oct-syscalls.cc.
Referenced by procbuf::close(), Fwaitpid(), octave_waitpid_wrapper(), and child_list::wait().
| pid_t waitpid | ( | pid_t | pid, |
| int * | status, | ||
| int | options, | ||
| std::string & | msg | ||
| ) |
Definition at line 214 of file oct-syscalls.cc.
References octave_waitpid_wrapper().
| int wcontinue | ( | void | ) |
Definition at line 229 of file oct-syscalls.cc.
References octave_wcontinue_wrapper().
Referenced by FWCONTINUE().
| int wcoredump | ( | int | status | ) |
Definition at line 235 of file oct-syscalls.cc.
References octave_wcoredump_wrapper().
Referenced by FWCOREDUMP().
| int wexitstatus | ( | int | status | ) |
Definition at line 265 of file oct-syscalls.cc.
References octave_wexitstatus_wrapper().
Referenced by Fsystem(), FWEXITSTATUS(), and run_command_and_return_output().
| bool wifcontinued | ( | int | status | ) |
Definition at line 241 of file oct-syscalls.cc.
References octave_wifcontinued_wrapper().
Referenced by FWIFCONTINUED().
| bool wifexited | ( | int | status | ) |
Definition at line 247 of file oct-syscalls.cc.
References octave_wifexited_wrapper().
Referenced by Fsystem(), FWIFEXITED(), pager_event_handler(), and run_command_and_return_output().
| bool wifsignaled | ( | int | status | ) |
Definition at line 253 of file oct-syscalls.cc.
References octave_wifsignaled_wrapper().
Referenced by FWIFSIGNALED(), and pager_event_handler().
| bool wifstopped | ( | int | status | ) |
Definition at line 259 of file oct-syscalls.cc.
References octave_wifstopped_wrapper().
Referenced by FWIFSTOPPED().
| int wnohang | ( | void | ) |
Definition at line 271 of file oct-syscalls.cc.
References octave_wnohang_wrapper().
Referenced by FWNOHANG(), and child_list::wait().
| int wstopsig | ( | int | status | ) |
Definition at line 277 of file oct-syscalls.cc.
References octave_wstopsig_wrapper().
Referenced by FWSTOPSIG().
| int wtermsig | ( | int | status | ) |
Definition at line 283 of file oct-syscalls.cc.
References octave_wtermsig_wrapper().
Referenced by FWTERMSIG().
| int wuntraced | ( | void | ) |
Definition at line 289 of file oct-syscalls.cc.
References octave_wuntraced_wrapper().
Referenced by FWUNTRACED().