diff options
author | Elliott Hughes <enh@google.com> | 2015-02-06 22:33:18 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-06 22:33:18 +0000 |
commit | b164b103ebdcb2b567079f30e38d878a21a9b632 (patch) | |
tree | 76ed73aa150a9a907cf99cdd22f9cdb1d1d85313 /include | |
parent | 846c8e0d34ab15de84adc462440f2e95f53ac863 (diff) | |
parent | 5e753100c32c7b42ae4306a8023c419defd34c4e (diff) | |
download | system_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.h | 3 |
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, |