summaryrefslogtreecommitdiff
path: root/libc/src/__support/File/dir.cpp
AgeCommit message (Collapse)Author
2025-06-11[libc] Move libc_errno.h to libc/src/__support and make ↵lntue
LIBC_ERRNO_MODE_SYSTEM to be header-only. (#143187) This is the first step in preparation for: https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450
2024-07-12[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98597)Petr Hosek
This is a part of #97655.
2024-07-12Revert "[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace ↵Mehdi Amini
declaration" (#98593) Reverts llvm/llvm-project#98075 bots are broken
2024-07-11[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98075)Petr Hosek
This is a part of #97655.
2024-05-09[libc] Replace `MutexLock` with `cpp::lock_guard` (#89340)Vlad Mishel
This PR address issue #89002. #### Changes in this PR * Added a simple implementation of `cpp::lock_guard` (an equivalent of `std::lock_guard`) in libc/src/__support/CPP inspired by the libstdc++ implementation * Added tests for `cpp::lock_guard` in /libc/test/src/__support/CPP/mutex_test.cpp * Replaced all references to `MutexLock` with `cpp::lock_guard` --------- Co-authored-by: Guillaume Chatelet <gchatelet@google.com>
2023-09-26[libc] Mass replace enclosing namespace (#67032)Guillaume Chatelet
This is step 4 of https://discourse.llvm.org/t/rfc-customizable-namespace-to-allow-testing-the-libc-when-the-system-libc-is-also-llvms-libc/73079
2023-07-03[libc] Correct usage of __unix__ and __linux__Alfred Persson Forsberg
Reviewed By: michaelrj, thesamesam Differential Revision: https://reviews.llvm.org/D153729
2023-06-06[libc] Remove operator T from cpp::expected.Tue Ly
The libc's equivalent of std::expected has a non-standard and non-explicit operator T - https://github.com/llvm/llvm-project/issues/62738 Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D152270
2023-05-04[libc] Enable linux directory entries syscalls in riscv64Mikhail R. Gadelha
This patch updates the struct dirent to be on par with glibc (by adding a missing d_type member) and update the readdir call to use SYS_getdents64 instead of SYS_getdents. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D147738
2023-03-03[libc] move stdlib and stdio to new errno patternMichael Jones
Fixes https://github.com/llvm/llvm-project/issues/61071 Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D145191
2022-12-15[libc] Handle allocation failures in the dirent API gracefully.Siva Chandra Reddy
Along the way, setting of errno has been moved out of the internal code. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D140078
2022-08-22[reland][NFC][libc] Use span instead of ArrayRefGuillaume Chatelet
2022-08-22Revert "[NFC][libc] Use span instead of ArrayRef"Guillaume Chatelet
This reverts commit e7b250b8a6e2bd7e2cb85e0a90d77b1a3326814b.
2022-08-22[NFC][libc] Use span instead of ArrayRefGuillaume Chatelet
2022-07-25[libc] Add dirent.h functions opendir, readdir, closedir and dirfd.Siva Chandra Reddy
Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D130459