23 #if defined (HAVE_CONFIG_H)
165 return fs ? fs.
is_newer (time) : -1;
189 #if defined (__WIN32__)
192 && full_file_name.length () != 1
193 && ! (full_file_name.length () == 3 && full_file_name[1] ==
':'))
194 full_file_name.resize (full_file_name.length () - 1);
197 const char *cname = full_file_name.c_str ();
199 time_t sys_atime, sys_mtime, sys_ctime;
205 &sys_atime, &sys_mtime, &sys_ctime,
209 &sys_atime, &sys_mtime, &sys_ctime,
215 errmsg = std::strerror (errno);
236 time_t sys_atime, sys_mtime, sys_ctime;
241 &sys_atime, &sys_mtime, &sys_ctime,
247 errmsg = std::strerror (errno);
Octave interface to the compression and uncompression libraries.
For example cd octave end example noindent changes the current working directory to file
bool octave_is_fifo_wrapper(mode_t mode)
file_stat(const std::string &n="", bool fl=true)
Return the CPU time used by your Octave session The first output is the total time spent executing your process and is equal to the sum of second and third which are the number of CPU seconds spent executing in user mode and the number of CPU seconds spent executing in system mode
void update_internal(bool force=false)
int octave_stat_wrapper(const char *fname, mode_t *mode, ino_t *ino, dev_t *dev, nlink_t *nlink, uid_t *uid, gid_t *gid, off_t *size, time_t *atime, time_t *mtime, time_t *ctime, dev_t *rdev, long *blksize, long *blocks)
bool is_newer(const octave::sys::time &time) const
static std::string tilde_expand(const std::string &)
bool octave_have_struct_stat_st_blocks(void)
int octave_fstat_wrapper(int fid, mode_t *mode, ino_t *ino, dev_t *dev, nlink_t *nlink, uid_t *uid, gid_t *gid, off_t *size, time_t *atime, time_t *mtime, time_t *ctime, dev_t *rdev, long *blksize, long *blocks)
bool octave_is_dir_wrapper(mode_t mode)
bool octave_is_lnk_wrapper(mode_t mode)
bool octave_is_reg_wrapper(mode_t mode)
octave::sys::time m_mtime
bool octave_is_chr_wrapper(mode_t mode)
bool octave_is_blk_wrapper(mode_t mode)
static bool have_struct_stat_st_blocks(void)
static bool have_struct_stat_st_rdev(void)
bool octave_have_struct_stat_st_blksize(void)
bool octave_is_sock_wrapper(mode_t mode)
bool octave_have_struct_stat_st_rdev(void)
octave::sys::time m_atime
octave::sys::file_stat fs(filename)
int octave_lstat_wrapper(const char *lname, mode_t *mode, ino_t *ino, dev_t *dev, nlink_t *nlink, uid_t *uid, gid_t *gid, off_t *size, time_t *atime, time_t *mtime, time_t *ctime, dev_t *rdev, long *blksize, long *blocks)
void update_internal(bool force=false)
void octave_strmode_wrapper(mode_t mode, char *buffer)
static bool have_struct_stat_st_blksize(void)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
static bool is_dir_sep(char c)
octave::sys::time m_ctime
std::string mode_as_string(void) const