summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/service/fileUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gentoobrowse-api/service/fileUtils.cpp')
-rw-r--r--gentoobrowse-api/service/fileUtils.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gentoobrowse-api/service/fileUtils.cpp b/gentoobrowse-api/service/fileUtils.cpp
index c9bcc34..1446b9f 100644
--- a/gentoobrowse-api/service/fileUtils.cpp
+++ b/gentoobrowse-api/service/fileUtils.cpp
@@ -35,6 +35,12 @@ namespace Gentoo {
}
}
+ const struct stat &
+ FileHandleStat::getStat() const
+ {
+ return st;
+ }
+
MemMap::MemMap(const boost::filesystem::path & path) :
FileHandleStat(path),
data(mmap(0, st.st_size, PROT_READ, MAP_SHARED, fh, 0))