GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::sys Namespace Reference

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)
 

Function Documentation

◆ blas_version()

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.

◆ canonicalize_file_name() [1/2]

OCTAVE_API std::string octave::sys::canonicalize_file_name ( const std::string name)

◆ canonicalize_file_name() [2/2]

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.

◆ chdir()

int octave::sys::chdir ( const std::string path_arg)

◆ dup2() [1/2]

OCTAVE_API int octave::sys::dup2 ( int  old_fd,
int  new_fd 
)

◆ dup2() [2/2]

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().

◆ execvp() [1/2]

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().

◆ execvp() [2/2]

OCTAVE_API int octave::sys::execvp ( const std::string file,
const string_vector args,
std::string msg 
)

◆ fcntl() [1/2]

OCTAVE_API int octave::sys::fcntl ( int  fd,
int  cmd,
long  arg 
)

Definition at line 346 of file oct-syscalls.cc.

References arg, and string.

Referenced by KPty::close(), octave_fcntl_wrapper(), octave_popen2(), and KPty::open().

◆ fcntl() [2/2]

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().

◆ fnmatch()

bool octave::sys::fnmatch ( const string_vector pat,
const std::string str,
int  fnm_flags 
)

◆ fork()

OCTAVE_API pid_t octave::sys::fork ( std::string msg)

◆ getcwd()

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().

◆ getegid()

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().

◆ geteuid()

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().

◆ getgid()

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().

◆ getpgrp()

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().

◆ getpid()

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().

◆ getppid()

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().

◆ getuid()

OCTAVE_API uid_t octave::sys::getuid ( void  )

◆ glob()

◆ kill() [1/2]

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().

◆ kill() [2/2]

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().

◆ lapack_version()

std::string octave::sys::lapack_version ( void  )

◆ link() [1/2]

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.

◆ link() [2/2]

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().

◆ mkdir() [1/2]

OCTAVE_API int octave::sys::mkdir ( const std::string nm,
mode_t  md 
)

Definition at line 394 of file file-ops.cc.

References nm, and string.

Referenced by octave::base_url_transfer::mget_directory(), and octave::xzip().

◆ mkdir() [2/2]

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().

◆ mkfifo() [1/2]

OCTAVE_API int octave::sys::mkfifo ( const std::string nm,
mode_t  md 
)

Definition at line 412 of file file-ops.cc.

References nm, and string.

Referenced by octave_mkfifo_wrapper().

◆ mkfifo() [2/2]

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().

◆ operator!=()

bool octave::sys::operator!= ( const time t1,
const time t2 
)
inline

Definition at line 134 of file oct-time.h.

◆ operator+()

time octave::sys::operator+ ( const time t1,
const time t2 
)
inline

Definition at line 178 of file oct-time.h.

References octave::sys::time::unix_time(), and octave::sys::time::usec().

◆ operator<()

bool octave::sys::operator< ( const time t1,
const time t2 
)
inline

Definition at line 140 of file oct-time.h.

References octave::sys::time::unix_time(), and octave::sys::time::usec().

◆ operator<<()

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.

◆ operator<=()

bool octave::sys::operator<= ( const time t1,
const time t2 
)
inline

Definition at line 153 of file oct-time.h.

◆ operator==()

bool octave::sys::operator== ( const time t1,
const time t2 
)
inline

Definition at line 128 of file oct-time.h.

References octave::sys::time::unix_time(), and octave::sys::time::usec().

◆ operator>()

bool octave::sys::operator> ( const time t1,
const time t2 
)
inline

Definition at line 159 of file oct-time.h.

References octave::sys::time::unix_time(), and octave::sys::time::usec().

◆ operator>=()

bool octave::sys::operator>= ( const time t1,
const time t2 
)
inline

Definition at line 172 of file oct-time.h.

◆ pipe() [1/2]

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().

◆ pipe() [2/2]

OCTAVE_API int octave::sys::pipe ( int *  fildes,
std::string msg 
)

Definition at line 190 of file oct-syscalls.cc.

References octave_pipe_wrapper().

◆ popen2() [1/2]

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.

◆ popen2() [2/2]

OCTAVE_API pid_t octave::sys::popen2 ( const std::string cmd,
const string_vector args,
bool  sync_mode,
int *  fildes,
std::string msg 
)

◆ readlink() [1/2]

OCTAVE_API int octave::sys::readlink ( const std::string path,
std::string result 
)

Definition at line 472 of file file-ops.cc.

References result, and string.

◆ readlink() [2/2]

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.

◆ recursive_rmdir() [1/2]

OCTAVE_API int octave::sys::recursive_rmdir ( const std::string name)

Definition at line 540 of file file-ops.cc.

References name, and string.

Referenced by recursive_rmdir(), and octave::documentation::~documentation().

◆ recursive_rmdir() [2/2]

◆ rename() [1/2]

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().

◆ rename() [2/2]

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.

◆ rmdir() [1/2]

OCTAVE_API int octave::sys::rmdir ( const std::string name)

Definition at line 518 of file file-ops.cc.

References name, and string.

Referenced by octave_rmdir_wrapper(), and recursive_rmdir().

◆ rmdir() [2/2]

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().

◆ symlink() [1/2]

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().

◆ symlink() [2/2]

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().

◆ tempnam() [1/2]

OCTAVE_API std::string octave::sys::tempnam ( const std::string dir,
const std::string pfx 
)

◆ tempnam() [2/2]

◆ umask()

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().

◆ unlink() [1/2]

OCTAVE_API int octave::sys::unlink ( const std::string name)

◆ unlink() [2/2]

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().

◆ vfork()

OCTAVE_API pid_t octave::sys::vfork ( std::string msg)

◆ waitpid() [1/2]

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().

◆ waitpid() [2/2]

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.

◆ wcontinue()

OCTAVE_API int octave::sys::wcontinue ( void  )

Definition at line 227 of file oct-syscalls.cc.

References octave_wcontinue_wrapper().

◆ wcoredump()

OCTAVE_API int octave::sys::wcoredump ( int  status)

Definition at line 233 of file oct-syscalls.cc.

References octave_wcoredump_wrapper().

◆ wexitstatus()

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().

◆ wifcontinued()

OCTAVE_API bool octave::sys::wifcontinued ( int  status)

Definition at line 239 of file oct-syscalls.cc.

References octave_wifcontinued_wrapper().

◆ wifexited()

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().

◆ wifsignaled()

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().

◆ wifstopped()

OCTAVE_API bool octave::sys::wifstopped ( int  status)

Definition at line 257 of file oct-syscalls.cc.

References octave_wifstopped_wrapper().

◆ windows_glob()

◆ wnohang()

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().

◆ wstopsig()

OCTAVE_API int octave::sys::wstopsig ( int  status)

Definition at line 275 of file oct-syscalls.cc.

References octave_wstopsig_wrapper().

◆ wtermsig()

OCTAVE_API int octave::sys::wtermsig ( int  status)

Definition at line 281 of file oct-syscalls.cc.

References octave_wtermsig_wrapper().

◆ wuntraced()

OCTAVE_API int octave::sys::wuntraced ( void  )

Definition at line 287 of file oct-syscalls.cc.

References octave_wuntraced_wrapper().