Go to the documentation of this file.
34 #include <sys/sysmacros.h>
48 volatile bool locIsValid =
false;
50 timer myTimer(maxTime);
54 if (::stat(fName.c_str(), &status_) != 0)
65 isValid_ = locIsValid;
82 major(status_.st_dev) == major(stat2.
status().st_dev)
83 && minor(status_.st_dev) == minor(stat2.
status().st_dev)
90 return isValid_ && (status_.st_ino == stat2.
status().st_ino);
96 return isValid_ && (status_.st_ino == ino_t(iNode));
108 dev_t st_dev = makedev(stat[1], stat[2]);
111 fStat.
status_.st_ino = stat[3];
112 fStat.
status_.st_mode = stat[4];
113 fStat.
status_.st_uid = stat[5];
114 fStat.
status_.st_gid = stat[6];
116 dev_t st_rdev = makedev(stat[7], stat[8]);
117 fStat.
status_.st_rdev = st_rdev;
119 fStat.
status_.st_size = stat[9];
120 fStat.
status_.st_atime = stat[10];
121 fStat.
status_.st_mtime = stat[11];
122 fStat.
status_.st_ctime = stat[12];
125 is.
check(
"Istream& operator>>(Istream&, fileStat&)");
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A class for handling file names.
Wrapper for stat() system call.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
#define timedOut(x)
Check it a timeout has occured.
Ostream & operator<<(Ostream &, const edgeMesh &)
fileStat()
Empty constructor.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
const struct stat & status() const
Raw status.
bool sameDevice(const fileStat &stat2) const
Compare two fileStats for same device.
A 1D vector of objects of type <T> with a fixed size <Size>.
Implements a timeout mechanism via sigalarm.
Istream & operator>>(Istream &, edgeMesh &)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool sameINode(const fileStat &stat2) const
Compare two fileStats for same Inode.