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

Namespaces

 file_ops
 

Functions

std::string canonicalize_file_name (const std::string &name)
 
std::string canonicalize_file_name (const std::string &name, std::string &msg)
 
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 &name, mode_t mode, std::string &msg)
 
int mkdir (const std::string &nm, mode_t md)
 
int mkfifo (const std::string &name, mode_t mode, std::string &msg)
 
int mkfifo (const std::string &nm, mode_t md)
 
int readlink (const std::string &path, std::string &result)
 
int readlink (const std::string &path, std::string &result, std::string &msg)
 
int recursive_mkdir (const std::string &name, mode_t mode)
 
int recursive_mkdir (const std::string &name, mode_t mode, 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)
 

Function Documentation

◆ canonicalize_file_name() [1/2]

◆ canonicalize_file_name() [2/2]

std::string octave::sys::canonicalize_file_name ( const std::string &  name,
std::string &  msg 
)

◆ link() [1/2]

int octave::sys::link ( const std::string &  old_name,
const std::string &  new_name 
)

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

References link().

Referenced by octave::Flink(), and octave_link_wrapper().

◆ link() [2/2]

int octave::sys::link ( const std::string &  old_name,
const std::string &  new_name,
std::string &  msg 
)

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

References octave_link_wrapper().

Referenced by link().

◆ mkdir() [1/2]

int octave::sys::mkdir ( const std::string &  name,
mode_t  mode,
std::string &  msg 
)

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

References octave_mkdir_wrapper().

Referenced by mkdir(), and recursive_mkdir().

◆ mkdir() [2/2]

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

◆ mkfifo() [1/2]

int octave::sys::mkfifo ( const std::string &  name,
mode_t  mode,
std::string &  msg 
)

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

References octave_mkfifo_wrapper().

Referenced by mkfifo().

◆ mkfifo() [2/2]

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

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

References mkfifo().

Referenced by octave_mkfifo_wrapper().

◆ readlink() [1/2]

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

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

References readlink().

Referenced by octave::Freadlink().

◆ readlink() [2/2]

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

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

References free(), and octave_areadlink_wrapper().

Referenced by readlink().

◆ recursive_mkdir() [1/2]

int octave::sys::recursive_mkdir ( const std::string &  name,
mode_t  mode 
)

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

References recursive_mkdir().

◆ recursive_mkdir() [2/2]

int octave::sys::recursive_mkdir ( const std::string &  name,
mode_t  mode,
std::string &  msg 
)

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

References dir_sep_chars(), is_dir_sep(), and mkdir().

Referenced by recursive_mkdir().

◆ recursive_rmdir() [1/2]

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

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

References recursive_rmdir().

◆ recursive_rmdir() [2/2]

int octave::sys::recursive_rmdir ( const std::string &  name,
std::string &  msg 
)

◆ rename() [1/2]

int octave::sys::rename ( const std::string &  from,
const std::string &  to 
)

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

References rename().

Referenced by octave::Frename(), and hdf5_fstreambase::open_create().

◆ rename() [2/2]

int octave::sys::rename ( const std::string &  from,
const std::string &  to,
std::string &  msg 
)

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

References file_exists(), same_file(), u8_to_wstring(), and unlink().

Referenced by rename().

◆ rmdir() [1/2]

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

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

References rmdir().

Referenced by octave_rmdir_wrapper().

◆ rmdir() [2/2]

int octave::sys::rmdir ( const std::string &  name,
std::string &  msg 
)

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

References octave_rmdir_wrapper().

Referenced by recursive_rmdir(), and rmdir().

◆ symlink() [1/2]

int octave::sys::symlink ( const std::string &  old_name,
const std::string &  new_name 
)

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

References symlink().

Referenced by octave::Freadlink(), octave::Fsymlink(), and octave_symlink_wrapper().

◆ symlink() [2/2]

int octave::sys::symlink ( const std::string &  old_name,
const std::string &  new_name,
std::string &  msg 
)

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

References octave_symlink_wrapper().

Referenced by symlink().

◆ tempnam() [1/2]

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

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

References tempnam().

Referenced by octave::Ftempname(), octave::Ftmpfile(), and hdf5_fstreambase::open_create().

◆ tempnam() [2/2]

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

◆ umask()

int octave::sys::umask ( mode_t  mode)

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

References octave_umask_wrapper().

◆ unlink() [1/2]

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

◆ unlink() [2/2]

int octave::sys::unlink ( const std::string &  name,
std::string &  msg 
)

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

References octave_unlink_wrapper().

Referenced by recursive_rmdir(), rename(), and unlink().