#include "file-stat.h"
Public Member Functions | |
base_file_stat (void) | |
base_file_stat (const base_file_stat &fs) | |
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 38 of file file-stat.h.
|
inline |
Definition at line 44 of file file-stat.h.
|
inline |
Definition at line 50 of file file-stat.h.
|
protectedvirtualdefault |
|
inline |
Definition at line 127 of file file-stat.h.
Referenced by mk_stat_map().
|
inline |
Definition at line 133 of file file-stat.h.
Referenced by mk_stat_map().
|
inline |
Definition at line 134 of file file-stat.h.
Referenced by mk_stat_map().
|
inline |
Definition at line 129 of file file-stat.h.
Referenced by mk_stat_map().
|
inline |
Definition at line 118 of file file-stat.h.
Referenced by mk_stat_map(), and same_file_internal().
|
inline |
Definition at line 146 of file file-stat.h.
Referenced by octave::load_path::add(), octave::load_path::dir_info::initialize(), mk_stat_result(), octave::sys::recursive_rmdir(), and octave::load_path::dir_info::update().
|
inline |
Definition at line 144 of file file-stat.h.
Referenced by execute_pkg_add_or_del(), F__ftp_mput__(), octave::load_path::find_all_first_of(), octave::load_path::find_dir(), octave::load_path::find_file(), find_file_to_load(), octave::load_path::find_first_of(), octave::load_path::find_matching_dirs(), 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_fcn_handle::set_fcn().
|
inline |
Definition at line 123 of file file-stat.h.
Referenced by mk_stat_map().
|
static |
Definition at line 135 of file file-stat.cc.
References octave_have_struct_stat_st_blksize().
Referenced by mk_stat_map().
|
static |
Definition at line 141 of file file-stat.cc.
References octave_have_struct_stat_st_blocks().
Referenced by mk_stat_map().
|
static |
Definition at line 129 of file file-stat.cc.
References octave_have_struct_stat_st_rdev().
Referenced by mk_stat_map().
|
inline |
Definition at line 117 of file file-stat.h.
Referenced by mk_stat_map(), and same_file_internal().
bool octave::sys::base_file_stat::is_blk | ( | void | ) | const |
Definition at line 45 of file file-stat.cc.
|
static |
Definition at line 87 of file file-stat.cc.
References mode(), and octave_is_blk_wrapper().
bool octave::sys::base_file_stat::is_chr | ( | void | ) | const |
Definition at line 51 of file file-stat.cc.
|
static |
Definition at line 93 of file file-stat.cc.
References mode(), and octave_is_chr_wrapper().
bool octave::sys::base_file_stat::is_dir | ( | void | ) | const |
Definition at line 57 of file file-stat.cc.
References exists(), and m_mode.
Referenced by octave::load_path::add(), dir_p(), F__ftp_mput__(), octave::load_path::find_dir(), octave::load_path::find_matching_dirs(), 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::sys::tempnam(), octave::load_path::dir_info::update(), and octave::xzip().
|
static |
Definition at line 99 of file file-stat.cc.
References mode(), and octave_is_dir_wrapper().
bool octave::sys::base_file_stat::is_fifo | ( | void | ) | const |
Definition at line 63 of file file-stat.cc.
|
static |
Definition at line 105 of file file-stat.cc.
References mode(), and octave_is_fifo_wrapper().
bool octave::sys::base_file_stat::is_lnk | ( | void | ) | const |
Definition at line 69 of file file-stat.cc.
|
static |
Definition at line 111 of file file-stat.cc.
References mode(), and octave_is_lnk_wrapper().
Definition at line 149 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(), and octave::out_of_date_check().
|
static |
Definition at line 160 of file file-stat.cc.
References file, fs, and is_newer().
bool octave::sys::base_file_stat::is_reg | ( | void | ) | const |
Definition at line 75 of file file-stat.cc.
References exists(), and m_mode.
Referenced by find_file_to_load(), find_private_file(), and octave::xzip().
|
static |
Definition at line 117 of file file-stat.cc.
References mode(), and octave_is_reg_wrapper().
bool octave::sys::base_file_stat::is_sock | ( | void | ) | const |
Definition at line 81 of file file-stat.cc.
|
static |
Definition at line 123 of file file-stat.cc.
References mode(), and octave_is_sock_wrapper().
|
inline |
Definition at line 136 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 147 of file file-stat.cc.
References m_mode, octave_strmode_wrapper(), and string.
Referenced by mk_stat_map().
|
inline |
Definition at line 128 of file file-stat.h.
Referenced by 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 120 of file file-stat.h.
Referenced by mk_stat_map().
|
inline |
Definition at line 140 of file file-stat.h.
References initialized.
|
inline |
Definition at line 142 of file file-stat.h.
|
inline |
Definition at line 58 of file file-stat.h.
References errmsg, fail, fs, initialized, 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_stat::operator=(), and octave::sys::file_fstat::operator=().
|
inline |
Definition at line 131 of file file-stat.h.
Referenced by mk_stat_map().
|
inline |
Definition at line 125 of file file-stat.h.
Referenced by mk_stat_map(), and octave::file_info::snarf_file().
|
inline |
Definition at line 86 of file file-stat.h.
Referenced by octave::load_path::dir_info::update().
|
inline |
Definition at line 122 of file file-stat.h.
Referenced by mk_stat_map().
|
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=(), read_classpath_txt(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().
|
protected |
Definition at line 160 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 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 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 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 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 184 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 operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().
|
protected |
Definition at line 169 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 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 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 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 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 181 of file file-stat.h.
Referenced by operator=(), octave::sys::file_stat::update_internal(), and octave::sys::file_fstat::update_internal().