This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add dirent.h functions opendir, readdir, closedir and dirfd.
ClosedPublic

Authored by sivachandra on Jul 24 2022, 11:36 PM.

Diff Detail

Event Timeline

sivachandra created this revision.Jul 24 2022, 11:36 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 24 2022, 11:36 PM
sivachandra requested review of this revision.Jul 24 2022, 11:36 PM
lntue added inline comments.Jul 25 2022, 7:44 AM
libc/src/__support/File/dir.h
51

typo: *method*

62

Is there ambiguity anywhere that dirent requires the struct keyword everywhere?

sivachandra marked an inline comment as done.

Fix typo.

libc/src/__support/File/dir.h
62

To make it absolutely clear that we are dealing with the public C struct dirent, I have uniformly used struct ::dirent everywhere.

lntue accepted this revision.Jul 25 2022, 10:19 AM
This revision is now accepted and ready to land.Jul 25 2022, 10:19 AM