#include "file-stat.h"
Public Member Functions | |
file_fstat (const file_fstat &fs) | |
file_fstat (int n) | |
~file_fstat (void)=default | |
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 |
void | get_stats (bool force=false) |
void | get_stats (int n, bool force=false) |
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 | |
file_fstat & | operator= (const file_fstat &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 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 |
Private Member Functions | |
void | update_internal (bool force=false) |
Private Attributes | |
int | fid |
Definition at line 272 of file file-stat.h.
|
inline |
Definition at line 278 of file file-stat.h.
|
inline |
Definition at line 283 of file file-stat.h.
|
default |
|
inlineinherited |
Definition at line 130 of file file-stat.h.
Referenced by mk_stat_map().
|
inlineinherited |
Definition at line 136 of file file-stat.h.
Referenced by mk_stat_map().
|
inlineinherited |
Definition at line 137 of file file-stat.h.
Referenced by mk_stat_map().
|
inlineinherited |
Definition at line 132 of file file-stat.h.
Referenced by mk_stat_map().
|
inlineinherited |
Definition at line 121 of file file-stat.h.
Referenced by mk_stat_map(), and octave::same_file_internal().
|
inlineinherited |
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().
|
inlineinherited |
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(), octave::sys::base_file_stat::is_blk(), octave::sys::base_file_stat::is_chr(), octave::sys::base_file_stat::is_dir(), octave::sys::base_file_stat::is_fifo(), octave::sys::base_file_stat::is_lnk(), octave::sys::base_file_stat::is_reg(), octave::sys::base_file_stat::is_sock(), octave::base_url_transfer::mput_directory(), read_mat5_binary_element(), and octave::single_match_exists().
|
inline |
Definition at line 300 of file file-stat.h.
|
inline |
Definition at line 306 of file file-stat.h.
References n.
|
inlineinherited |
Definition at line 126 of file file-stat.h.
Referenced by mk_stat_map().
|
staticinherited |
Definition at line 143 of file file-stat.cc.
References octave_have_struct_stat_st_blksize().
Referenced by mk_stat_map().
|
staticinherited |
Definition at line 149 of file file-stat.cc.
References octave_have_struct_stat_st_blocks().
Referenced by mk_stat_map().
|
staticinherited |
Definition at line 137 of file file-stat.cc.
References octave_have_struct_stat_st_rdev().
Referenced by mk_stat_map().
|
inlineinherited |
Definition at line 120 of file file-stat.h.
Referenced by mk_stat_map(), and octave::same_file_internal().
|
staticinherited |
Definition at line 95 of file file-stat.cc.
References octave::sys::base_file_stat::mode(), and octave_is_blk_wrapper().
|
inherited |
Definition at line 53 of file file-stat.cc.
References octave::sys::base_file_stat::exists(), and octave::sys::base_file_stat::m_mode.
Referenced by FS_ISBLK().
|
staticinherited |
Definition at line 101 of file file-stat.cc.
References octave::sys::base_file_stat::mode(), and octave_is_chr_wrapper().
|
inherited |
Definition at line 59 of file file-stat.cc.
References octave::sys::base_file_stat::exists(), and octave::sys::base_file_stat::m_mode.
Referenced by FS_ISCHR().
|
staticinherited |
Definition at line 107 of file file-stat.cc.
References octave::sys::base_file_stat::mode(), and octave_is_dir_wrapper().
|
inherited |
Definition at line 65 of file file-stat.cc.
References octave::sys::base_file_stat::exists(), and octave::sys::base_file_stat::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().
|
staticinherited |
Definition at line 113 of file file-stat.cc.
References octave::sys::base_file_stat::mode(), and octave_is_fifo_wrapper().
|
inherited |
Definition at line 71 of file file-stat.cc.
References octave::sys::base_file_stat::exists(), and octave::sys::base_file_stat::m_mode.
Referenced by FS_ISFIFO().
|
staticinherited |
Definition at line 119 of file file-stat.cc.
References octave::sys::base_file_stat::mode(), and octave_is_lnk_wrapper().
|
inherited |
Definition at line 77 of file file-stat.cc.
References octave::sys::base_file_stat::exists(), and octave::sys::base_file_stat::m_mode.
Referenced by FS_ISLNK().
|
staticinherited |
Definition at line 168 of file file-stat.cc.
References octave::sys::base_file_stat::is_newer().
|
inlineinherited |
Definition at line 152 of file file-stat.h.
Referenced by octave::dynamic_library::dynlib_rep::fake_reload(), octave::sys::base_file_stat::is_newer(), octave::dynamic_library::dynlib_rep::is_out_of_date(), octave::out_of_date_check(), and octave::base_parser::start_function().
|
staticinherited |
Definition at line 125 of file file-stat.cc.
References octave::sys::base_file_stat::mode(), and octave_is_reg_wrapper().
|
inherited |
Definition at line 83 of file file-stat.cc.
References octave::sys::base_file_stat::exists(), and octave::sys::base_file_stat::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().
|
staticinherited |
Definition at line 131 of file file-stat.cc.
References octave::sys::base_file_stat::mode(), and octave_is_sock_wrapper().
|
inherited |
Definition at line 89 of file file-stat.cc.
References octave::sys::base_file_stat::exists(), and octave::sys::base_file_stat::m_mode.
Referenced by FS_ISSOCK().
|
inlineinherited |
Definition at line 139 of file file-stat.h.
Referenced by octave::sys::base_file_stat::is_blk(), octave::sys::base_file_stat::is_chr(), octave::sys::base_file_stat::is_dir(), octave::sys::base_file_stat::is_fifo(), octave::sys::base_file_stat::is_lnk(), octave::sys::base_file_stat::is_reg(), octave::sys::base_file_stat::is_sock(), and mk_stat_map().
|
inherited |
Definition at line 155 of file file-stat.cc.
References octave::sys::base_file_stat::m_mode, and octave_strmode_wrapper().
Referenced by mk_stat_map().
|
inlineinherited |
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().
|
inlineinherited |
Definition at line 123 of file file-stat.h.
Referenced by mk_stat_map().
|
inlineinherited |
Definition at line 143 of file file-stat.h.
|
inlineinherited |
Definition at line 145 of file file-stat.h.
|
inline |
Definition at line 286 of file file-stat.h.
References fid, and octave::sys::base_file_stat::operator=().
|
inlineinherited |
Definition at line 134 of file file-stat.h.
Referenced by mk_stat_map().
|
inlineinherited |
Definition at line 128 of file file-stat.h.
Referenced by F__magick_finfo__(), mk_stat_map(), and octave::file_info::snarf_file().
|
inlineinherited |
Definition at line 89 of file file-stat.h.
Referenced by octave::load_path::dir_info::update().
|
inlineinherited |
Definition at line 125 of file file-stat.h.
Referenced by mk_stat_map().
|
private |
Definition at line 248 of file file-stat.cc.
References octave::sys::base_file_stat::errmsg, octave::sys::base_file_stat::fail, fid, octave::sys::base_file_stat::initialized, octave::sys::base_file_stat::m_atime, octave::sys::base_file_stat::m_blksize, octave::sys::base_file_stat::m_blocks, octave::sys::base_file_stat::m_ctime, octave::sys::base_file_stat::m_dev, octave::sys::base_file_stat::m_gid, octave::sys::base_file_stat::m_ino, octave::sys::base_file_stat::m_mode, octave::sys::base_file_stat::m_mtime, octave::sys::base_file_stat::m_nlink, octave::sys::base_file_stat::m_rdev, octave::sys::base_file_stat::m_size, octave::sys::base_file_stat::m_uid, and octave_fstat_wrapper().
|
protectedinherited |
Definition at line 169 of file file-stat.h.
Referenced by octave::sys::base_file_stat::operator=(), octave::sys::file_stat::update_internal(), and update_internal().
|
protectedinherited |
Definition at line 166 of file file-stat.h.
Referenced by octave::sys::base_file_stat::operator=(), octave::sys::file_stat::update_internal(), and update_internal().
|
private |
Definition at line 321 of file file-stat.h.
Referenced by operator=(), and update_internal().
|
protectedinherited |
Definition at line 163 of file file-stat.h.
Referenced by octave::sys::base_file_stat::operator=(), octave::sys::file_stat::update_internal(), and update_internal().
|
protectedinherited |
Definition at line 193 of file file-stat.h.
Referenced by octave::sys::base_file_stat::operator=(), octave::sys::file_stat::update_internal(), and update_internal().
|
protectedinherited |
Definition at line 205 of file file-stat.h.
Referenced by octave::sys::base_file_stat::operator=(), octave::sys::file_stat::update_internal(), and update_internal().
|
protectedinherited |
Definition at line 208 of file file-stat.h.
Referenced by octave::sys::base_file_stat::operator=(), octave::sys::file_stat::update_internal(), and update_internal().
|
protectedinherited |
Definition at line 199 of file file-stat.h.
Referenced by octave::sys::base_file_stat::operator=(), octave::sys::file_stat::update_internal(), and update_internal().
|
protectedinherited |
Definition at line 178 of file file-stat.h.
Referenced by octave::sys::base_file_stat::operator=(), octave::sys::file_stat::update_internal(), and update_internal().
|
protectedinherited |
Definition at line 187 of file file-stat.h.
Referenced by octave::sys::base_file_stat::operator=(), octave::sys::file_stat::update_internal(), and update_internal().
|
protectedinherited |
Definition at line 175 of file file-stat.h.
Referenced by octave::sys::base_file_stat::operator=(), octave::sys::file_stat::update_internal(), and update_internal().
|
protectedinherited |
Definition at line 172 of file file-stat.h.
Referenced by octave::sys::base_file_stat::is_blk(), octave::sys::base_file_stat::is_chr(), octave::sys::base_file_stat::is_dir(), octave::sys::base_file_stat::is_fifo(), octave::sys::base_file_stat::is_lnk(), octave::sys::base_file_stat::is_reg(), octave::sys::base_file_stat::is_sock(), octave::sys::base_file_stat::mode_as_string(), octave::sys::base_file_stat::operator=(), octave::sys::file_stat::update_internal(), and update_internal().
|
protectedinherited |
Definition at line 196 of file file-stat.h.
Referenced by octave::sys::base_file_stat::operator=(), octave::sys::file_stat::update_internal(), and update_internal().
|
protectedinherited |
Definition at line 181 of file file-stat.h.
Referenced by octave::sys::base_file_stat::operator=(), octave::sys::file_stat::update_internal(), and update_internal().
|
protectedinherited |
Definition at line 202 of file file-stat.h.
Referenced by octave::sys::base_file_stat::operator=(), octave::sys::file_stat::update_internal(), and update_internal().
|
protectedinherited |
Definition at line 190 of file file-stat.h.
Referenced by octave::sys::base_file_stat::operator=(), octave::sys::file_stat::update_internal(), and update_internal().
|
protectedinherited |
Definition at line 184 of file file-stat.h.
Referenced by octave::sys::base_file_stat::operator=(), octave::sys::file_stat::update_internal(), and update_internal().