-// -*- C++ -*-
/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-2000 The LyX Team.
+ * Copyright 1995-2001 The LyX Team.
*
* ====================================================== */
#include <config.h>
-#include <sys/types.h>
-#include <sys/stat.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
+//#include <sys/types.h>
+//#include <sys/stat.h>
+
#include <cerrno>
#include "FileInfo.h"
void FileInfo::dostat(bool link)
{
if (link) {
- status = lstat(fname.c_str(), &buf);
+ status = ::lstat(fname.c_str(), &buf);
} else {
- status = stat(fname.c_str(), &buf);
+ status = ::stat(fname.c_str(), &buf);
}
if (status) err = errno;
}
// should not be in FileInfo
-void FileInfo::flagRWX(unsigned short i, char * szString) const
+void FileInfo::flagRWX(mode_t i, char * szString) const
{
szString[0] = (i & S_IRUSR) ? 'r' : '-';
szString[1] = (i & S_IWUSR) ? 'w' : '-';
// should not be in FileInfo
-bool FileInfo::access(int p)
+bool FileInfo::access(int p) const
{
// if we don't have a filename we fail
if (fname.empty()) return false;
return false;
}
}
+
+
+