summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-02-06 22:33:18 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-06 22:33:18 +0000
commitb164b103ebdcb2b567079f30e38d878a21a9b632 (patch)
tree76ed73aa150a9a907cf99cdd22f9cdb1d1d85313 /include
parent846c8e0d34ab15de84adc462440f2e95f53ac863 (diff)
parent5e753100c32c7b42ae4306a8023c419defd34c4e (diff)
downloadsystem_core-b164b103ebdcb2b567079f30e38d878a21a9b632.zip
system_core-b164b103ebdcb2b567079f30e38d878a21a9b632.tar.gz
system_core-b164b103ebdcb2b567079f30e38d878a21a9b632.tar.bz2
am 5e753100: Merge "Clean up reading and writing in init."
* commit '5e753100c32c7b42ae4306a8023c419defd34c4e': Clean up reading and writing in init.
Diffstat (limited to 'include')
-rw-r--r--include/utils/file.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/utils/file.h b/include/utils/file.h
index 8685ee2..a80afb1 100644
--- a/include/utils/file.h
+++ b/include/utils/file.h
@@ -22,8 +22,11 @@
namespace android {
+bool ReadFdToString(int fd, std::string* content);
bool ReadFileToString(const std::string& path, std::string* content);
+
bool WriteStringToFile(const std::string& content, const std::string& path);
+bool WriteStringToFd(const std::string& content, int fd);
#if !defined(_WIN32)
bool WriteStringToFile(const std::string& content, const std::string& path,