[libc] Add dirent.h functions opendir, readdir, closedir and dirfd.
authorSiva Chandra Reddy <sivachandra@google.com>
Sat, 23 Jul 2022 07:35:46 +0000 (07:35 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Mon, 25 Jul 2022 20:23:25 +0000 (20:23 +0000)
commit35ea84ad6ae302ba4ac1f02a6fed9f0af5815ece
tree0c1aac4d5b3002b8730728f91fab740b311369ec
parent62531518f989fb7dacf4b4bd3fa781a99f65c55e
[libc] Add dirent.h functions opendir, readdir, closedir and dirfd.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D130459
27 files changed:
libc/config/linux/api.td
libc/config/linux/x86_64/entrypoints.txt
libc/include/CMakeLists.txt
libc/include/dirent.h.def [new file with mode: 0644]
libc/include/llvm-libc-types/CMakeLists.txt
libc/include/llvm-libc-types/DIR.h [new file with mode: 0644]
libc/include/llvm-libc-types/ino_t.h [new file with mode: 0644]
libc/include/llvm-libc-types/struct_dirent.h [new file with mode: 0644]
libc/spec/posix.td
libc/src/CMakeLists.txt
libc/src/__support/File/CMakeLists.txt
libc/src/__support/File/dir.cpp [new file with mode: 0644]
libc/src/__support/File/dir.h [new file with mode: 0644]
libc/src/__support/File/linux_dir.cpp [new file with mode: 0644]
libc/src/dirent/CMakeLists.txt [new file with mode: 0644]
libc/src/dirent/closedir.cpp [new file with mode: 0644]
libc/src/dirent/closedir.h [new file with mode: 0644]
libc/src/dirent/dirfd.cpp [new file with mode: 0644]
libc/src/dirent/dirfd.h [new file with mode: 0644]
libc/src/dirent/opendir.cpp [new file with mode: 0644]
libc/src/dirent/opendir.h [new file with mode: 0644]
libc/src/dirent/readdir.cpp [new file with mode: 0644]
libc/src/dirent/readdir.h [new file with mode: 0644]
libc/test/src/CMakeLists.txt
libc/test/src/dirent/CMakeLists.txt [new file with mode: 0644]
libc/test/src/dirent/dirent_test.cpp [new file with mode: 0644]
libc/test/src/dirent/testdata/CMakeLists.txt [new file with mode: 0644]