commit | 6331e806de41d98083f1bfa3661addfae4682c37 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Oct 27 11:10:36 2015 -0700 |
committer | Elliott Hughes <enh@google.com> | Tue Oct 27 13:47:36 2015 -0700 |
tree | fc63b42f79adfa429e514cf3b1231245d29222b7 | |
parent | 60752a2eeab8cd0b344b27c67a47e30628962211 [diff] [blame] |
Implement scandirat and scandirat64. Bug: http://b/12612339 Change-Id: Id3b249a884fe08964b26a017ae9574961f0cb441
diff --git a/libc/private/ScopedReaddir.h b/libc/private/ScopedReaddir.h index 84c1b93..3d77a40 100644 --- a/libc/private/ScopedReaddir.h +++ b/libc/private/ScopedReaddir.h
@@ -23,8 +23,11 @@ class ScopedReaddir { public: - ScopedReaddir(const char* path) { - dir_ = opendir(path); + ScopedReaddir(const char* path) : ScopedReaddir(opendir(path)) { + } + + ScopedReaddir(DIR* dir) { + dir_ = dir; } ~ScopedReaddir() {