summaryrefslogtreecommitdiffstats
path: root/base/file_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/file_util.h')
-rw-r--r--base/file_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/file_util.h b/base/file_util.h
index ba8738c..6474f048 100644
--- a/base/file_util.h
+++ b/base/file_util.h
@@ -367,6 +367,10 @@ int ReadFile(const std::wstring& filename, char* data, int size);
int WriteFile(const FilePath& filename, const char* data, int size);
// Deprecated temporary compatibility function.
int WriteFile(const std::wstring& filename, const char* data, int size);
+#if defined(OS_POSIX)
+// Append the data to |fd|. Does not close |fd| when done.
+int WriteFileDescriptor(const int fd, const char* data, int size);
+#endif
// Gets the current working directory for the process.
bool GetCurrentDirectory(FilePath* path);