summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2016-08-23 17:53:45 -0500
committerElliott Hughes2016-08-31 11:35:44 -0500
commitd3ff6e5231f53a95518532ff74a7256aabbf32e5 (patch)
treef718a1e42c11432a30f0e6addb514dea87c2ea63 /base/include/android-base/file.h
parente461b37965ff609ea36c1fbb6e4e8df1fb7b7d7f (diff)
downloadplatform-system-core-d3ff6e5231f53a95518532ff74a7256aabbf32e5.tar.gz
platform-system-core-d3ff6e5231f53a95518532ff74a7256aabbf32e5.tar.xz
platform-system-core-d3ff6e5231f53a95518532ff74a7256aabbf32e5.zip
Add android::base::Readlink.
Bug: http://b/30988271 Change-Id: Ib844d7c9e33465dabf7aee5e24dc3d1d8d799abd
Diffstat (limited to 'base/include/android-base/file.h')
-rw-r--r--base/include/android-base/file.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/include/android-base/file.h b/base/include/android-base/file.h
index aa18ea796..2726a623d 100644
--- a/base/include/android-base/file.h
+++ b/base/include/android-base/file.h
@@ -43,6 +43,10 @@ bool WriteFully(int fd, const void* data, size_t byte_count);
43 43
44bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr); 44bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
45 45
46#if !defined(_WIN32)
47bool Readlink(const std::string& path, std::string* result);
48#endif
49
46} // namespace base 50} // namespace base
47} // namespace android 51} // namespace android
48 52