* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-1999 The LyX Team.
+ * Copyright 1995-2000 The LyX Team.
*
* ====================================================== */
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
#include <cerrno>
}
+// 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__
- return buf.st_blksize; /* Preferred I/O block size */
-#else
-#warning May be fixed in 0.13 (SMiyata)
- return 512; /* Assume HPFS */
-#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