Namespaces | |
file_ops | |
Classes | |
class | base_file_stat |
class | base_tm |
class | cpu_time |
class | dir_entry |
class | env |
class | file_fstat |
class | file_stat |
class | gmtime |
class | group |
class | localtime |
class | password |
class | resource_usage |
class | strptime |
class | time |
class | uname |
Functions | |
std::string | blas_version (void) |
std::string | canonicalize_file_name (const std::string &name) |
std::string | canonicalize_file_name (const std::string &name, std::string &msg) |
int | chdir (const std::string &path_arg) |
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 &argv) |
int | execvp (const std::string &file, const string_vector &args, std::string &msg) |
int | fcntl (int fd, int cmd, long arg) |
int | fcntl (int fd, int cmd, long arg, std::string &msg) |
bool | fnmatch (const string_vector &pat, const std::string &str, int fnm_flags) |
pid_t | fork (std::string &msg) |
std::string | getcwd (void) |
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) |
string_vector | glob (const string_vector &pat) |
int | kill (pid_t pid, int sig) |
int | kill (pid_t pid, int sig, std::string &msg) |
std::string | lapack_version (void) |
int | link (const std::string &old_name, const std::string &new_name) |
int | link (const std::string &old_name, const std::string &new_name, std::string &msg) |
int | mkdir (const std::string &nm, mode_t md) |
int | mkdir (const std::string &name, mode_t mode, std::string &msg) |
int | mkfifo (const std::string &nm, mode_t md) |
int | mkfifo (const std::string &name, mode_t mode, std::string &msg) |
bool | operator!= (const time &t1, const time &t2) |
time | operator+ (const time &t1, const time &t2) |
bool | operator< (const time &t1, const time &t2) |
std::ostream & | operator<< (std::ostream &os, const time &ot) |
bool | operator<= (const time &t1, const time &t2) |
bool | operator== (const time &t1, const time &t2) |
bool | operator> (const time &t1, const time &t2) |
bool | operator>= (const time &t1, const time &t2) |
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) |
int | readlink (const std::string &path, std::string &result) |
int | readlink (const std::string &path, std::string &result, std::string &msg) |
int | recursive_rmdir (const std::string &name) |
int | recursive_rmdir (const std::string &name, std::string &msg) |
int | rename (const std::string &from, const std::string &to) |
int | rename (const std::string &from, const std::string &to, std::string &msg) |
int | rmdir (const std::string &name) |
int | rmdir (const std::string &name, std::string &msg) |
int | symlink (const std::string &old_name, const std::string &new_name) |
int | symlink (const std::string &old_name, const std::string &new_name, std::string &msg) |
std::string | tempnam (const std::string &dir, const std::string &pfx) |
std::string | tempnam (const std::string &dir, const std::string &pfx, std::string &msg) |
int | umask (mode_t mode) |
int | unlink (const std::string &name) |
int | unlink (const std::string &name, 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) |
string_vector | windows_glob (const string_vector &pat) |
int | wnohang (void) |
int | wstopsig (int status) |
int | wtermsig (int status) |
int | wuntraced (void) |
std::string octave::sys::blas_version | ( | void | ) |
Definition at line 42 of file lo-sysinfo.cc.
References retval, s, octave::dynamic_library::search(), and string.
OCTAVE_API std::string octave::sys::canonicalize_file_name | ( | const std::string & | name | ) |
Definition at line 685 of file file-ops.cc.
Referenced by octave::file_editor_tab::exit_debug_and_clear(), and octave_canonicalize_file_name_wrapper().
OCTAVE_API std::string octave::sys::canonicalize_file_name | ( | const std::string & | name, |
std::string & | msg | ||
) |
Definition at line 691 of file file-ops.cc.
References name, octave_canonicalize_file_name_wrapper(), retval, string, and tmp.
int octave::sys::chdir | ( | const std::string & | path_arg | ) |
Definition at line 59 of file lo-sysdep.cc.
References octave_chdir_wrapper(), string, and octave::sys::file_ops::tilde_expand().
Referenced by octave::sys::env::do_chdir(), and octave_chdir_wrapper().
OCTAVE_API int octave::sys::dup2 | ( | int | old_fd, |
int | new_fd | ||
) |
Definition at line 50 of file oct-syscalls.cc.
References string.
Referenced by QUnixTerminalImpl::connectToPty(), Fdup2(), octave_dup2_wrapper(), octave_popen2(), QConsolePrivate::setupStandardIO(), and QUnixTerminalImpl::~QUnixTerminalImpl().
OCTAVE_API int octave::sys::dup2 | ( | int | old_fd, |
int | new_fd, | ||
std::string & | msg | ||
) |
Definition at line 57 of file oct-syscalls.cc.
References octave_dup2_wrapper().
OCTAVE_API int octave::sys::execvp | ( | const std::string & | file, |
const string_vector & | argv | ||
) |
Definition at line 72 of file oct-syscalls.cc.
References argv, file, and string.
Referenced by octave_execvp_wrapper(), and octave_popen2().
OCTAVE_API int octave::sys::execvp | ( | const std::string & | file, |
const string_vector & | args, | ||
std::string & | msg | ||
) |
Definition at line 79 of file oct-syscalls.cc.
References argv, string_vector::c_str_vec(), string_vector::delete_c_str_vec(), file, and octave_execvp_wrapper().
OCTAVE_API int octave::sys::fcntl | ( | int | fd, |
int | cmd, | ||
long | arg | ||
) |
Definition at line 346 of file oct-syscalls.cc.
Referenced by KPty::close(), octave_fcntl_wrapper(), octave_popen2(), and KPty::open().
OCTAVE_API int octave::sys::fcntl | ( | int | fd, |
int | cmd, | ||
long | arg, | ||
std::string & | msg | ||
) |
Definition at line 353 of file oct-syscalls.cc.
References arg, and octave_fcntl_wrapper().
bool octave::sys::fnmatch | ( | const string_vector & | pat, |
const std::string & | str, | ||
int | fnm_flags | ||
) |
Definition at line 55 of file oct-glob.cc.
References i, Array< T >::numel(), octave_fnm_nomatch_wrapper(), octave_fnmatch_wrapper(), and str.
Referenced by glob_match::match(), and octave_fnmatch_wrapper().
OCTAVE_API pid_t octave::sys::fork | ( | std::string & | msg | ) |
Definition at line 97 of file oct-syscalls.cc.
References NOT_SUPPORTED, octave_fork_wrapper(), and octave_have_fork().
Referenced by octave_async_system_wrapper(), octave_fork_wrapper(), octave_popen2(), and octave_procbuf::open().
std::string octave::sys::getcwd | ( | void | ) |
Definition at line 39 of file lo-sysdep.cc.
References octave_getcwd_wrapper(), retval, string, and tmp.
Referenced by octave::sys::env::do_getcwd(), and octave_getcwd_wrapper().
OCTAVE_API gid_t octave::sys::getegid | ( | void | ) |
Definition at line 165 of file oct-syscalls.cc.
References octave_getegid_wrapper().
Referenced by octave_getegid_wrapper().
OCTAVE_API uid_t octave::sys::geteuid | ( | void | ) |
Definition at line 177 of file oct-syscalls.cc.
References octave_geteuid_wrapper().
Referenced by KPty::close(), octave_geteuid_wrapper(), and KPty::open().
OCTAVE_API gid_t octave::sys::getgid | ( | void | ) |
Definition at line 159 of file oct-syscalls.cc.
References octave_getgid_wrapper().
Referenced by KPty::close(), octave_getgid_wrapper(), and KPty::open().
OCTAVE_API pid_t octave::sys::getpgrp | ( | std::string & | msg | ) |
Definition at line 136 of file oct-syscalls.cc.
References octave_getpgrp_wrapper().
Referenced by octave_getpgrp_wrapper().
OCTAVE_API pid_t octave::sys::getpid | ( | void | ) |
Definition at line 147 of file oct-syscalls.cc.
References octave_getpid_wrapper().
Referenced by octave_getpid_wrapper().
OCTAVE_API pid_t octave::sys::getppid | ( | void | ) |
Definition at line 153 of file oct-syscalls.cc.
References octave_getppid_wrapper().
Referenced by octave_getppid_wrapper().
OCTAVE_API uid_t octave::sys::getuid | ( | void | ) |
Definition at line 171 of file oct-syscalls.cc.
References octave_getuid_wrapper().
Referenced by octave::sys::env::do_get_home_directory(), octave::sys::env::do_get_user_name(), octave_getuid_wrapper(), and KPty::open().
string_vector octave::sys::glob | ( | const string_vector & | pat | ) |
Definition at line 70 of file oct-glob.cc.
References octave::action_container::add_fcn(), err, frame, i, k, Array< T >::numel(), octave_create_glob_info_struct(), octave_destroy_glob_info_struct(), octave_glob_match_list(), octave_glob_nosort_wrapper(), octave_glob_num_matches(), octave_glob_wrapper(), octave_globfree_wrapper(), octave_value::resize(), retval, single_match_exists(), octave_value::sort(), string, and tmp.
Referenced by glob_match::glob(), and octave_glob_wrapper().
OCTAVE_API int octave::sys::kill | ( | pid_t | pid, |
int | sig | ||
) |
Definition at line 293 of file oct-syscalls.cc.
References string.
Referenced by octave_kill_wrapper().
OCTAVE_API int octave::sys::kill | ( | pid_t | pid, |
int | sig, | ||
std::string & | msg | ||
) |
Definition at line 300 of file oct-syscalls.cc.
References NOT_SUPPORTED, octave_have_kill(), and octave_kill_wrapper().
std::string octave::sys::lapack_version | ( | void | ) |
Definition at line 154 of file lo-sysinfo.cc.
References F77_FUNC(), F77_RET_T(), retval, s, octave::dynamic_library::search(), string, and STRINGIZE.
OCTAVE_API int octave::sys::link | ( | const std::string & | old_name, |
const std::string & | new_name | ||
) |
Definition at line 430 of file file-ops.cc.
References string.
OCTAVE_API int octave::sys::link | ( | const std::string & | old_name, |
const std::string & | new_name, | ||
std::string & | msg | ||
) |
Definition at line 436 of file file-ops.cc.
References octave_link_wrapper().
OCTAVE_API int octave::sys::mkdir | ( | const std::string & | nm, |
mode_t | md | ||
) |
Definition at line 394 of file file-ops.cc.
Referenced by octave::base_url_transfer::mget_directory(), and octave::xzip().
OCTAVE_API int octave::sys::mkdir | ( | const std::string & | name, |
mode_t | mode, | ||
std::string & | msg | ||
) |
Definition at line 400 of file file-ops.cc.
References mode, name, and octave_mkdir_wrapper().
OCTAVE_API int octave::sys::mkfifo | ( | const std::string & | nm, |
mode_t | md | ||
) |
Definition at line 412 of file file-ops.cc.
Referenced by octave_mkfifo_wrapper().
OCTAVE_API int octave::sys::mkfifo | ( | const std::string & | name, |
mode_t | mode, | ||
std::string & | msg | ||
) |
Definition at line 418 of file file-ops.cc.
References mode, name, and octave_mkfifo_wrapper().
|
inline |
Definition at line 134 of file oct-time.h.
Definition at line 178 of file oct-time.h.
References octave::sys::time::unix_time(), and octave::sys::time::usec().
Definition at line 140 of file oct-time.h.
References octave::sys::time::unix_time(), and octave::sys::time::usec().
std::ostream& octave::sys::operator<< | ( | std::ostream & | os, |
const time & | ot | ||
) |
Definition at line 95 of file oct-time.cc.
References os, octave::sys::time::ot_unix_time, and octave::sys::time::ot_usec.
Definition at line 153 of file oct-time.h.
Definition at line 128 of file oct-time.h.
References octave::sys::time::unix_time(), and octave::sys::time::usec().
Definition at line 159 of file oct-time.h.
References octave::sys::time::unix_time(), and octave::sys::time::usec().
Definition at line 172 of file oct-time.h.
OCTAVE_API int octave::sys::pipe | ( | int * | fildes | ) |
Definition at line 183 of file oct-syscalls.cc.
References string.
Referenced by octave_pipe_wrapper(), octave_popen2(), and octave_procbuf::open().
OCTAVE_API int octave::sys::pipe | ( | int * | fildes, |
std::string & | msg | ||
) |
Definition at line 190 of file oct-syscalls.cc.
References octave_pipe_wrapper().
OCTAVE_API pid_t octave::sys::popen2 | ( | const std::string & | cmd, |
const string_vector & | args, | ||
bool | sync_mode, | ||
int * | fildes | ||
) |
Definition at line 320 of file oct-syscalls.cc.
References string.
OCTAVE_API pid_t octave::sys::popen2 | ( | const std::string & | cmd, |
const string_vector & | args, | ||
bool | sync_mode, | ||
int * | fildes, | ||
std::string & | msg | ||
) |
Definition at line 328 of file oct-syscalls.cc.
References argv, string_vector::c_str_vec(), string_vector::delete_c_str_vec(), and octave_popen2().
OCTAVE_API int octave::sys::readlink | ( | const std::string & | path, |
std::string & | result | ||
) |
Definition at line 472 of file file-ops.cc.
OCTAVE_API int octave::sys::readlink | ( | const std::string & | path, |
std::string & | result, | ||
std::string & | msg | ||
) |
Definition at line 478 of file file-ops.cc.
References octave_areadlink_wrapper(), and result.
OCTAVE_API int octave::sys::recursive_rmdir | ( | const std::string & | name | ) |
Definition at line 540 of file file-ops.cc.
Referenced by recursive_rmdir(), and octave::documentation::~documentation().
OCTAVE_API int octave::sys::recursive_rmdir | ( | const std::string & | name, |
std::string & | msg | ||
) |
Definition at line 546 of file file-ops.cc.
References octave::sys::dir_entry::close(), octave::sys::file_ops::dir_sep_str(), octave::sys::dir_entry::error(), octave::sys::base_file_stat::error(), fs, i, octave::sys::base_file_stat::is_dir(), name, nm, Array< T >::numel(), octave::sys::dir_entry::read(), recursive_rmdir(), rmdir(), string, and unlink().
OCTAVE_API int octave::sys::rename | ( | const std::string & | from, |
const std::string & | to | ||
) |
Definition at line 498 of file file-ops.cc.
References string.
Referenced by octave::workspace_view::contextmenu_requested().
OCTAVE_API int octave::sys::rename | ( | const std::string & | from, |
const std::string & | to, | ||
std::string & | msg | ||
) |
Definition at line 504 of file file-ops.cc.
OCTAVE_API int octave::sys::rmdir | ( | const std::string & | name | ) |
Definition at line 518 of file file-ops.cc.
Referenced by octave_rmdir_wrapper(), and recursive_rmdir().
OCTAVE_API int octave::sys::rmdir | ( | const std::string & | name, |
std::string & | msg | ||
) |
Definition at line 524 of file file-ops.cc.
References name, and octave_rmdir_wrapper().
OCTAVE_API int octave::sys::symlink | ( | const std::string & | old_name, |
const std::string & | new_name | ||
) |
Definition at line 451 of file file-ops.cc.
References string.
Referenced by octave_symlink_wrapper().
OCTAVE_API int octave::sys::symlink | ( | const std::string & | old_name, |
const std::string & | new_name, | ||
std::string & | msg | ||
) |
Definition at line 457 of file file-ops.cc.
References octave_symlink_wrapper().
OCTAVE_API std::string octave::sys::tempnam | ( | const std::string & | dir, |
const std::string & | pfx | ||
) |
Definition at line 638 of file file-ops.cc.
References string.
Referenced by QtHandles::Figure::copy_figure_callback(), octave::documentation::documentation(), and mk_tmp_hist_file().
OCTAVE_API std::string octave::sys::tempnam | ( | const std::string & | dir, |
const std::string & | pfx, | ||
std::string & | msg | ||
) |
Definition at line 644 of file file-ops.cc.
References octave::sys::file_ops::dir_sep_char(), octave::sys::env::get_temp_directory(), octave::sys::base_file_stat::is_dir(), octave_gen_tempname_wrapper(), retval, and string.
OCTAVE_API int octave::sys::umask | ( | mode_t | mode | ) |
Definition at line 613 of file file-ops.cc.
References mode, and octave_umask_wrapper().
Referenced by octave_umask_wrapper().
OCTAVE_API int octave::sys::unlink | ( | const std::string & | name | ) |
Definition at line 618 of file file-ops.cc.
Referenced by octave::base_url_transfer::delete_file(), delete_file(), octave_unlink_wrapper(), recursive_rmdir(), and octave::xzip().
OCTAVE_API int octave::sys::unlink | ( | const std::string & | name, |
std::string & | msg | ||
) |
Definition at line 624 of file file-ops.cc.
References name, and octave_unlink_wrapper().
OCTAVE_API pid_t octave::sys::vfork | ( | std::string & | msg | ) |
Definition at line 115 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().
OCTAVE_API pid_t octave::sys::waitpid | ( | pid_t | pid, |
int * | status, | ||
int | options | ||
) |
Definition at line 205 of file oct-syscalls.cc.
References options, and string.
Referenced by octave_procbuf::close(), and octave::child_list::wait().
OCTAVE_API pid_t octave::sys::waitpid | ( | pid_t | pid, |
int * | status, | ||
int | options, | ||
std::string & | msg | ||
) |
Definition at line 212 of file oct-syscalls.cc.
References octave_waitpid_wrapper(), options, and retval.
OCTAVE_API int octave::sys::wcontinue | ( | void | ) |
Definition at line 227 of file oct-syscalls.cc.
References octave_wcontinue_wrapper().
OCTAVE_API int octave::sys::wcoredump | ( | int | status | ) |
Definition at line 233 of file oct-syscalls.cc.
References octave_wcoredump_wrapper().
OCTAVE_API int octave::sys::wexitstatus | ( | int | status | ) |
Definition at line 263 of file oct-syscalls.cc.
References octave_wexitstatus_wrapper().
Referenced by run_command_and_return_output().
OCTAVE_API bool octave::sys::wifcontinued | ( | int | status | ) |
Definition at line 239 of file oct-syscalls.cc.
References octave_wifcontinued_wrapper().
OCTAVE_API bool octave::sys::wifexited | ( | int | status | ) |
Definition at line 245 of file oct-syscalls.cc.
References octave_wifexited_wrapper().
Referenced by pager_event_handler(), and run_command_and_return_output().
OCTAVE_API bool octave::sys::wifsignaled | ( | int | status | ) |
Definition at line 251 of file oct-syscalls.cc.
References octave_wifsignaled_wrapper().
Referenced by pager_event_handler().
OCTAVE_API bool octave::sys::wifstopped | ( | int | status | ) |
Definition at line 257 of file oct-syscalls.cc.
References octave_wifstopped_wrapper().
string_vector octave::sys::windows_glob | ( | const string_vector & | pat | ) |
Definition at line 146 of file oct-glob.cc.
References octave::action_container::add_fcn(), err, frame, i, k, Array< T >::numel(), octave_create_glob_info_struct(), octave_destroy_glob_info_struct(), octave_glob_match_list(), octave_glob_nosort_wrapper(), octave_glob_num_matches(), octave_glob_wrapper(), octave_globfree_wrapper(), octave_value::resize(), retval, single_match_exists(), octave_value::sort(), string, and tmp.
OCTAVE_API int octave::sys::wnohang | ( | void | ) |
Definition at line 269 of file oct-syscalls.cc.
References octave_wnohang_wrapper().
Referenced by octave::child_list::wait().
OCTAVE_API int octave::sys::wstopsig | ( | int | status | ) |
Definition at line 275 of file oct-syscalls.cc.
References octave_wstopsig_wrapper().
OCTAVE_API int octave::sys::wtermsig | ( | int | status | ) |
Definition at line 281 of file oct-syscalls.cc.
References octave_wtermsig_wrapper().
OCTAVE_API int octave::sys::wuntraced | ( | void | ) |
Definition at line 287 of file oct-syscalls.cc.
References octave_wuntraced_wrapper().