}
+// should not be in FileInfo
char const * FileInfo::typeIndicator() const
{
if (S_ISDIR(buf.st_mode)) return ("/");
return buf.st_mode;
}
+
long FileInfo::getBlockSize() const
{
#ifndef __EMX__
#endif
}
+
+// should not be in FileInfo
void FileInfo::modeString(char * szString) const
{
szString[0] = typeLetter();
}
+// should not be in FileInfo
char FileInfo::typeLetter() const
{
#ifdef S_ISBLK
}
+// should not be in FileInfo
void FileInfo::flagRWX(unsigned short i, char * szString) const
{
szString[0] = (i & S_IRUSR) ? 'r' : '-';
}
+// should not be in FileInfo
void FileInfo::setSticky(char * szString) const
{
#ifdef S_ISUID
}
-time_t FileInfo::getStatusChangeTime() const
+time_t FileInfo::getStatusChangeTime() const
{
return buf.st_ctime;
}
}
+// should not be in FileInfo
bool FileInfo::access(int p)
{
// if we don't have a filename we fail