]> git.lyx.org Git - lyx.git/blobdiff - src/support/FileInfo.C
Fix small typos
[lyx.git] / src / support / FileInfo.C
index e19d1377d0c98483e930cb2a3d60c9ca433a96fe..3bc18c123120fd13509a765a9d4eb983ba4559d3 100644 (file)
 
 #include <config.h>
 
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <cerrno>
@@ -136,9 +140,9 @@ void FileInfo::init()
 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;
 }
@@ -192,17 +196,6 @@ mode_t FileInfo::getMode() const
 }
 
 
-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
 {
@@ -393,3 +386,6 @@ bool FileInfo::access(int p)
                return false;
        }
 }
+
+
+