summaryrefslogtreecommitdiff
path: root/libc/src/sys/stat/linux
AgeCommit message (Collapse)Author
2025-07-23[libc][NFC] Add stdint.h proxy header to fix dependency issue with ↵lntue
<stdint.h> includes. (#150303) https://github.com/llvm/llvm-project/issues/149993
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
2025-05-05[libc] Swap order of syscall on chmod (#138427)Mikhail R. Gadelha
We define SYS_fchmodat2 on libc but the syscall is not available on old kernels, so prefer the SYS_fchmodat version when possible.
2024-10-28[libc] Fix the remaining fcntl.h proxy header includes. (#113961)Job Henandez Lara
2024-10-28[libc] remove #include <fcntl.h> and add proxy or type (#113836)Job Henandez Lara
2024-07-20[libc] Added static casts to fix implicit conversion warnings in 32-bit systemsMikhail R. Gadelha
This patch fixes: randomness.h and getauxval.cpp were passing ssize_t as size_t kernel_statx.h was assigning an uint64_t to uintptr_t fopencookie.cpp was trying to create a FileIOResult using ssize_t but the constructor expected a size_t thread.h was trying to call free_stack (which takes a size_t) with an unsigned long long. free_stack does the calculations using uintptr_t, so I changed the passing values to size_t
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-04-23[libc] adding linux SYS_fchmodat2 syscall. (#89819)David CARLIER
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-09-21[libc][clang-tidy] Add llvm-header-guard to get consistant naming and ↵Guillaume Chatelet
prevent file copy/paste issues. (#66477)
2023-08-07[libc][cleanup] Fix most conversion warningsMichael Jones
This patch is large, but is almost entirely just adding casts to calls to syscall_impl. Much of the work was done programatically, with human checking when the syntax or types got confusing. Reviewed By: mcgrathr Differential Revision: https://reviews.llvm.org/D156950
2023-04-17[libc][NFC] Standardize missing syscalls error messages.Mikhail R. Gadelha
This patch standardizes the error messages when a syscall is not available to be in the format: "ABC and DEF syscalls are not available." Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D148373
2023-03-14[libc] Switch sys/stat implementations over to libc_errno.Siva Chandra Reddy
Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D146004
2023-03-02[libc][NFC] Switch use of errno in src/unistd and src/sys to libc_errno.Siva Chandra Reddy
Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D145096
2023-01-24[libc][NFC] Replace "inline" keyword with "LIBC_INLINE".Siva Chandra Reddy
This is the first of patches doing similar cleanup. A section in the code style doc has been added explaining where and how LIBC_INLINE is to be used. Reviewed By: jeffbailey, lntue Differential Revision: https://reviews.llvm.org/D142434
2022-09-30[libc] add syscall functionMichael Jones
Add the syscall wrapper function and tests. It's implemented using a macro to guarantee the minimum number of arguments. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D134919
2022-09-21[libc] Add implementation of functions stat, fstat and lstat.Siva Chandra Reddy
All supporting type and macro definitions have also been added. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D134262
2022-08-24[libc] Add linux implementation of POSIX fchmodat function.Siva Chandra Reddy
Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D132533
2022-08-23[libc][Obvious] Fix typo is chmod implementation.Siva Chandra
This now allows enabling the chmod function on aarch64.
2022-08-23[libc] Add Linux implementations of POSIX chdir, fchdir, chmod and fchmod.Siva Chandra Reddy
Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D132445
2022-03-04[libc] Make the errno macro resolve to the thread local variable directly.Siva Chandra Reddy
With modern architectures having a thread pointer and language supporting thread locals, there is no reason to use a function intermediary to access the thread local errno value. The entrypoint corresponding to errno has been replaced with an object library as there is no formal entrypoint for errno anymore. Reviewed By: jeffbailey, michaelrj Differential Revision: https://reviews.llvm.org/D120920
2022-02-08[libc][Obvious] Fix typo in mkdir and mkdirat implementations.Siva Chandra Reddy
Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D119265
2022-02-01[libc] Add a few missing deps, includes, and fix a few typos.Siva Chandra
This allows us to enable rmdir, mkdir, mkdirat, unlink and unlinkat for aarch64.
2022-02-01[libc] Add implementations of POSIX mkdir, mkdirat, rmdir, unlink and unlinkat.Siva Chandra Reddy
Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D118641