summaryrefslogtreecommitdiffstats
path: root/base/file_util_linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/file_util_linux.cc')
-rw-r--r--base/file_util_linux.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/file_util_linux.cc b/base/file_util_linux.cc
index 1d13c89..50b774d 100644
--- a/base/file_util_linux.cc
+++ b/base/file_util_linux.cc
@@ -24,6 +24,11 @@ bool GetTempDir(FilePath* path) {
return true;
}
+bool GetShmemTempDir(FilePath* path) {
+ *path = FilePath("/dev/shm");
+ return true;
+}
+
bool CopyFile(const FilePath& from_path, const FilePath& to_path) {
int infile = open(from_path.value().c_str(), O_RDONLY);
if (infile < 0)