Implement scandirat and scandirat64.

Bug: http://b/12612339
Change-Id: Id3b249a884fe08964b26a017ae9574961f0cb441
This commit is contained in:
Elliott Hughes
2015-10-27 11:10:36 -07:00
parent 60752a2eea
commit 6331e806de
5 changed files with 109 additions and 14 deletions

View File

@@ -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() {