GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
Classes | |
class | base_file_stat |
class | base_tm |
class | cpu_time |
class | dir_entry |
class | env |
class | file_fstat |
struct | file_ops |
class | file_stat |
class | gmtime |
class | group |
class | localtime |
class | password |
class | resource_usage |
class | strptime |
class | time |
class | uname |
Variables | |
static const char * | default_prefixes [] = { " ~", "\t~", ":~", 0 } |
static const char * | default_suffixes [] = { " ", "\n", ":", 0 } |
OCTAVE_API std::string octave::sys::canonicalize_file_name | ( | const std::string & | name | ) |
Definition at line 719 of file file-ops.cc.
References string.
Referenced by 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 726 of file file-ops.cc.
References free(), octave_canonicalize_file_name_wrapper(), replace(), 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().
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 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(), and octave_execvp_wrapper().
Definition at line 346 of file oct-syscalls.cc.
References string.
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 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 Array< T >::numel(), octave_fnm_nomatch_wrapper(), and octave_fnmatch_wrapper().
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 free(), 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 action_container::add_fcn(), err, frame, 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(), string_vector::resize(), retval, single_match_exists(), string_vector::sort(), string, and tmp.
Referenced by glob_match::glob(), and octave_glob_wrapper().
|
static |
Definition at line 209 of file file-ops.cc.
References octave::sys::file_ops::is_dir_sep().
Referenced by tilde_expand_word().
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().
OCTAVE_API int octave::sys::link | ( | const std::string & | old_name, |
const std::string & | new_name | ||
) |
Definition at line 447 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 454 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 407 of file file-ops.cc.
References string.
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 414 of file file-ops.cc.
References mode, and octave_mkdir_wrapper().
OCTAVE_API int octave::sys::mkfifo | ( | const std::string & | nm, |
mode_t | md | ||
) |
Definition at line 427 of file file-ops.cc.
References string.
Referenced by octave_mkfifo_wrapper().
OCTAVE_API int octave::sys::mkfifo | ( | const std::string & | name, |
mode_t | mode, | ||
std::string & | msg | ||
) |
Definition at line 434 of file file-ops.cc.
References mode, and octave_mkfifo_wrapper().
|
inline |
Definition at line 117 of file oct-time.h.
|
inline |
Definition at line 161 of file oct-time.h.
References octave::sys::time::unix_time(), and octave::sys::time::usec().
|
inline |
Definition at line 123 of file oct-time.h.
References octave::sys::time::unix_time(), and octave::sys::time::usec().
|
inline |
Definition at line 136 of file oct-time.h.
|
inline |
Definition at line 111 of file oct-time.h.
References octave::sys::time::unix_time(), and octave::sys::time::usec().
|
inline |
Definition at line 142 of file oct-time.h.
References octave::sys::time::unix_time(), and octave::sys::time::usec().
|
inline |
Definition at line 155 of file oct-time.h.
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 493 of file file-ops.cc.
References string.
OCTAVE_API int octave::sys::readlink | ( | const std::string & | path, |
std::string & | result, | ||
std::string & | msg | ||
) |
Definition at line 500 of file file-ops.cc.
References free(), and octave_areadlink_wrapper().
OCTAVE_API int octave::sys::recursive_rmdir | ( | const std::string & | name | ) |
OCTAVE_API int octave::sys::recursive_rmdir | ( | const std::string & | name, |
std::string & | msg | ||
) |
Definition at line 574 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, octave::sys::base_file_stat::is_dir(), 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 521 of file file-ops.cc.
References string.
Referenced by workspace_view::contextmenu_requested().
OCTAVE_API int octave::sys::rename | ( | const std::string & | from, |
const std::string & | to, | ||
std::string & | msg | ||
) |
Definition at line 528 of file file-ops.cc.
OCTAVE_API int octave::sys::rmdir | ( | const std::string & | name | ) |
Definition at line 543 of file file-ops.cc.
References string.
Referenced by octave_rmdir_wrapper(), and recursive_rmdir().
OCTAVE_API int octave::sys::rmdir | ( | const std::string & | name, |
std::string & | msg | ||
) |
Definition at line 550 of file file-ops.cc.
References octave_rmdir_wrapper().
OCTAVE_API int octave::sys::symlink | ( | const std::string & | old_name, |
const std::string & | new_name | ||
) |
Definition at line 470 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 477 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 670 of file file-ops.cc.
References string.
Referenced by QtHandles::Figure::copy_figure_callback(), 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 677 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.
|
static |
Definition at line 225 of file file-ops.cc.
References octave::sys::password::dir(), octave::sys::env::get_home_directory(), octave::sys::password::getpwnam(), octave::sys::file_ops::is_dir_sep(), isolate_tilde_prefix(), string, octave::sys::file_ops::tilde_expansion_failure_hook, and octave::sys::file_ops::tilde_expansion_preexpansion_hook.
Referenced by octave::sys::file_ops::tilde_expand().
|
static |
Definition at line 143 of file file-ops.cc.
References string_vector::empty(), Array< T >::length(), Array< T >::numel(), and octave::sys::file_ops::tilde_additional_prefixes.
Referenced by octave::sys::file_ops::tilde_expand().
|
static |
Definition at line 178 of file file-ops.cc.
References string_vector::empty(), octave::sys::file_ops::is_dir_sep(), Array< T >::length(), Array< T >::numel(), and octave::sys::file_ops::tilde_additional_suffixes.
Referenced by octave::sys::file_ops::tilde_expand().
OCTAVE_API int octave::sys::umask | ( | mode_t | mode | ) |
Definition at line 642 of file file-ops.cc.
References octave_umask_wrapper().
Referenced by octave_umask_wrapper().
OCTAVE_API int octave::sys::unlink | ( | const std::string & | name | ) |
Definition at line 648 of file file-ops.cc.
References string.
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 655 of file file-ops.cc.
References 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().
Definition at line 205 of file oct-syscalls.cc.
References string.
Referenced by octave_procbuf::close(), and octave::child_list::child_list_rep::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(), and retval.
OCTAVE_API int octave::sys::wcontinue | ( | void | ) |
Definition at line 227 of file oct-syscalls.cc.
References octave_wcontinue_wrapper().
Definition at line 233 of file oct-syscalls.cc.
References octave_wcoredump_wrapper().
Definition at line 263 of file oct-syscalls.cc.
References octave_wexitstatus_wrapper().
Referenced by run_command_and_return_output().
Definition at line 239 of file oct-syscalls.cc.
References octave_wifcontinued_wrapper().
Definition at line 245 of file oct-syscalls.cc.
References octave_wifexited_wrapper().
Referenced by pager_event_handler(), and run_command_and_return_output().
Definition at line 251 of file oct-syscalls.cc.
References octave_wifsignaled_wrapper().
Referenced by pager_event_handler().
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 action_container::add_fcn(), err, frame, k, octave_map::length(), m, 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(), string_vector::resize(), retval, single_match_exists(), string_vector::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::child_list_rep::wait().
Definition at line 275 of file oct-syscalls.cc.
References octave_wstopsig_wrapper().
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().
|
static |
Definition at line 102 of file file-ops.cc.
|
static |
Definition at line 107 of file file-ops.cc.