#include "file-stat.h"
Public Member Functions | |
base_file_stat (const base_file_stat &fs) | |
base_file_stat (void) | |
sys::time | atime (void) const |
long | blksize (void) const |
long | blocks (void) const |
sys::time | ctime (void) const |
dev_t | dev (void) const |
std::string | error (void) const |
bool | exists (void) const |
gid_t | gid (void) const |
ino_t | ino (void) const |
bool | is_blk (void) const |
bool | is_chr (void) const |
bool | is_dir (void) const |
bool | is_fifo (void) const |
bool | is_lnk (void) const |
bool | is_newer (const sys::time &time) const |
bool | is_reg (void) const |
bool | is_sock (void) const |
mode_t | mode (void) const |
std::string | mode_as_string (void) const |
sys::time | mtime (void) const |
nlink_t | nlink (void) const |
bool | ok (void) const |
operator bool () const | |
base_file_stat & | operator= (const base_file_stat &fs) |
dev_t | rdev (void) const |
off_t | size (void) const |
sys::time | time_resolution (void) const |
uid_t | uid (void) const |
Static Public Member Functions | |
static bool | have_struct_stat_st_blksize (void) |
static bool | have_struct_stat_st_blocks (void) |
static bool | have_struct_stat_st_rdev (void) |
static bool | is_blk (mode_t mode) |
static bool | is_chr (mode_t mode) |
static bool | is_dir (mode_t mode) |
static bool | is_fifo (mode_t mode) |
static bool | is_lnk (mode_t mode) |
static int | is_newer (const std::string &, const sys::time &) |
static bool | is_reg (mode_t mode) |
static bool | is_sock (mode_t mode) |
Protected Member Functions | |
virtual | ~base_file_stat (void)=default |
Protected Attributes | |
std::string | errmsg |
bool | fail |
bool | initialized |
sys::time | m_atime |
long | m_blksize |
long | m_blocks |
sys::time | m_ctime |
dev_t | m_dev |
gid_t | m_gid |
ino_t | m_ino |
mode_t | m_mode |
sys::time | m_mtime |
nlink_t | m_nlink |
dev_t | m_rdev |
off_t | m_size |
uid_t | m_uid |
Definition at line 41 of file file-stat.h.
|
inline |
Definition at line 47 of file file-stat.h.
|
inline |
Definition at line 53 of file file-stat.h.
|
protectedvirtualdefault |
|
inline |
Definition at line 130 of file file-stat.h.
Referenced by mk_stat_map().
|
inline |
Definition at line 136 of file file-stat.h.
Referenced by mk_stat_map().
|
inline |
Definition at line 137 of file file-stat.h.
Referenced by mk_stat_map().
|
inline |
Definition at line 132 of file file-stat.h.
Referenced by mk_stat_map().
|
inline |
Definition at line 121 of file file-stat.h.
Referenced by mk_stat_map(), and octave::same_file_internal().
|
inline |
Definition at line 149 of file file-stat.h.
Referenced by octave::load_path::add(), F__magick_finfo__(), octave::load_path::dir_info::initialize(), mk_stat_result(), octave::sys::recursive_rmdir(), and octave::load_path::dir_info::update().
|
inline |
Definition at line 147 of file file-stat.h.
Referenced by octave::tree_evaluator::check_autoload_file(), octave::contents_file_in_path(), octave::load_path::execute_pkg_add_or_del(), F__ftp_mput__(), Faudioinfo(), octave::fcn_file_in_path(), octave::load_path::find_all_first_of(), octave::find_data_file_in_load_path(), octave::load_path::find_dir(), octave::load_path::find_file(), octave::find_file_to_load(), octave::load_path::find_first_of(), octave::load_path::find_matching_dirs(), octave::find_private_file(), have_gnuplot_binary(), is_blk(), is_chr(), is_dir(), is_fifo(), is_lnk(), is_reg(), is_sock(), octave::base_url_transfer::mput_directory(), read_mat5_binary_element(), and octave::single_match_exists().
|
inline |
Definition at line 126 of file file-stat.h.
Referenced by mk_stat_map().
|
static |
Definition at line 143 of file file-stat.cc.
References octave_have_struct_stat_st_blksize().
Referenced by mk_stat_map().
|
static |
Definition at line 149 of file file-stat.cc.
References octave_have_struct_stat_st_blocks().
Referenced by mk_stat_map().
|
static |
Definition at line 137 of file file-stat.cc.
References octave_have_struct_stat_st_rdev().
Referenced by mk_stat_map().
|
inline |
Definition at line 120 of file file-stat.h.
Referenced by mk_stat_map(), and octave::same_file_internal().
|
static |
Definition at line 95 of file file-stat.cc.
References mode(), and octave_is_blk_wrapper().
bool octave::sys::base_file_stat::is_blk | ( | void | ) | const |
Definition at line 53 of file file-stat.cc.
References exists(), and m_mode.
Referenced by FS_ISBLK().
|
static |
Definition at line 101 of file file-stat.cc.
References mode(), and octave_is_chr_wrapper().
bool octave::sys::base_file_stat::is_chr | ( | void | ) | const |
Definition at line 59 of file file-stat.cc.
References exists(), and m_mode.
Referenced by FS_ISCHR().
|
static |
Definition at line 107 of file file-stat.cc.
References mode(), and octave_is_dir_wrapper().
bool octave::sys::base_file_stat::is_dir | ( | void | ) | const |
Definition at line 65 of file file-stat.cc.
References exists(), and m_mode.
Referenced by octave::load_path::add(), dir_p(), do_stream_open(), F__ftp_mput__(), F__mkdir__(), octave::fcn_file_in_path(), Fdrawnow(), octave::load_path::find_dir(), octave::load_path::find_matching_dirs(), FS_ISDIR(), octave::genpath(), octave::load_path::dir_info::get_file_list(), octave::load_path::dir_info::get_method_file_map(), octave::base_url_transfer::mget_directory(), octave::base_url_transfer::mput_directory(), READABLE(), octave::sys::recursive_rmdir(), symbol_exist(), octave::load_path::dir_info::update(), and octave::xzip().
|
static |
Definition at line 113 of file file-stat.cc.
References mode(), and octave_is_fifo_wrapper().
bool octave::sys::base_file_stat::is_fifo | ( | void | ) | const |
Definition at line 71 of file file-stat.cc.
References exists(), and m_mode.
Referenced by FS_ISFIFO().
|
static |
Definition at line 119 of file file-stat.cc.
References mode(), and octave_is_lnk_wrapper().
bool octave::sys::base_file_stat::is_lnk | ( | void | ) | const |
Definition at line 77 of file file-stat.cc.
References exists(), and m_mode.
Referenced by FS_ISLNK().
|
static |
Definition at line 168 of file file-stat.cc.
References is_newer().
|
inline |
Definition at line 152 of file file-stat.h.
Referenced by octave::dynamic_library::dynlib_rep::fake_reload(), is_newer(), octave::dynamic_library::dynlib_rep::is_out_of_date(), octave::out_of_date_check(), and octave::base_parser::start_function().
|
static |
Definition at line 125 of file file-stat.cc.
References mode(), and octave_is_reg_wrapper().
bool octave::sys::base_file_stat::is_reg | ( | void | ) | const |
Definition at line 83 of file file-stat.cc.
References exists(), and m_mode.
Referenced by octave::find_data_file_in_load_path(), octave::find_file_to_load(), octave::find_private_file(), FS_ISREG(), and octave::xzip().
|
static |
Definition at line 131 of file file-stat.cc.
References mode(), and octave_is_sock_wrapper().
bool octave::sys::base_file_stat::is_sock | ( | void | ) | const |
Definition at line 89 of file file-stat.cc.
References exists(), and m_mode.
Referenced by FS_ISSOCK().
|
inline |
Definition at line 139 of file file-stat.h.
Referenced by is_blk(), is_chr(), is_dir(), is_fifo(), is_lnk(), is_reg(), is_sock(), and mk_stat_map().
std::string octave::sys::base_file_stat::mode_as_string | ( | void | ) | const |
Definition at line 155 of file file-stat.cc.
References m_mode, and octave_strmode_wrapper().
Referenced by mk_stat_map().
|
inline |
Definition at line 131 of file file-stat.h.
Referenced by F__magick_finfo__(), octave::dynamic_library::dynlib_rep::fake_reload(), octave_user_code::get_file_info(), octave::load_path::dir_info::initialize(), mk_stat_map(), and octave::load_path::dir_info::update().
|
inline |
Definition at line 123 of file file-stat.h.
Referenced by mk_stat_map().
|
inline |
Definition at line 143 of file file-stat.h.
|
inline |
Definition at line 145 of file file-stat.h.
|
inline |
Definition at line 61 of file file-stat.h.
References errmsg, fail, initialized, m_atime, m_blksize, m_blocks, m_ctime, m_dev, m_gid, m_ino, m_mode, m_mtime, m_nlink, m_rdev, m_size, and m_uid.
Referenced by octave::sys::file_fstat::operator=(), and octave::sys::file_stat::operator=().
|
inline |
Definition at line 134 of file file-stat.h.
Referenced by mk_stat_map().
|
inline |
Definition at line 128 of file file-stat.h.
Referenced by F__magick_finfo__(), mk_stat_map(), and octave::file_info::snarf_file().
|
inline |
Definition at line 89 of file file-stat.h.
Referenced by octave::load_path::dir_info::update().
|
inline |
Definition at line 125 of file file-stat.h.
Referenced by mk_stat_map().
|
protected |
Definition at line 169 of file file-stat.h.
Referenced by operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().
|
protected |
Definition at line 166 of file file-stat.h.
Referenced by operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().
|
protected |
Definition at line 163 of file file-stat.h.
Referenced by operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().
|
protected |
Definition at line 193 of file file-stat.h.
Referenced by operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().
|
protected |
Definition at line 205 of file file-stat.h.
Referenced by operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().
|
protected |
Definition at line 208 of file file-stat.h.
Referenced by operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().
|
protected |
Definition at line 199 of file file-stat.h.
Referenced by operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().
|
protected |
Definition at line 178 of file file-stat.h.
Referenced by operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().
|
protected |
Definition at line 187 of file file-stat.h.
Referenced by operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().
|
protected |
Definition at line 175 of file file-stat.h.
Referenced by operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().
|
protected |
Definition at line 172 of file file-stat.h.
Referenced by is_blk(), is_chr(), is_dir(), is_fifo(), is_lnk(), is_reg(), is_sock(), mode_as_string(), operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().
|
protected |
Definition at line 196 of file file-stat.h.
Referenced by operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().
|
protected |
Definition at line 181 of file file-stat.h.
Referenced by operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().
|
protected |
Definition at line 202 of file file-stat.h.
Referenced by operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().
|
protected |
Definition at line 190 of file file-stat.h.
Referenced by operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().
|
protected |
Definition at line 184 of file file-stat.h.
Referenced by operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().