mirror-llvm-project/libc
Jackson Stogel 4b9d7e167b
Reapply "[libc] Return errno from OFD failure paths in fcntl." (#166658) (#166846)
The previous implementation in #166252 (rolled back in #166658) caused
buildbot failures due to a bug in an added test. The modified
`UseAfterClose` did not pass a `struct flock` value to `fcntl`:


2d51705941/libc/test/src/fcntl/fcntl_test.cpp (L175)

Which ASAN caught and errored in the `fcntl` implementation when the
unspecified argument was accessed:


c12cb2892c/libc/src/__support/OSUtil/linux/fcntl.cpp (L59)
2025-11-10 13:39:34 -08:00
..
AOR_v20.02
benchmarks [libc][NFC] Remove usage of the C keyword I. (#160567) 2025-09-24 14:18:32 -04:00
cmake [libc] add cpu feature flags for SVE/SVE2/MOPS (#166884) 2025-11-07 13:58:54 -05:00
config [libc][math] Enable math acos for baremetal Arm and AArch64 (#166749) 2025-11-07 09:23:00 +00:00
docs [libc] implement inet_aton (#162651) 2025-10-21 23:47:38 +08:00
examples [libc] Fix broken links in libc (#145199) 2025-06-23 15:51:43 -07:00
fuzzing [libc] Fix issue with fuzz input too short for atoi diff fuzz (#161705) 2025-10-02 10:43:57 -07:00
hdr [libc] Add chown and getgid implementations (#166434) 2025-11-04 16:18:53 -08:00
include [libc] add various macros relate to *ADDR* (#164830) 2025-11-08 20:39:26 +08:00
lib [libc] Fix building bitcode library for GPU (#100491) 2024-07-26 13:17:17 -05:00
shared [libc][math] Refactor exp2m1f16 implementation to header-only in src/__support/math folder. (#162019) 2025-11-05 14:50:40 +02:00
src Reapply "[libc] Return errno from OFD failure paths in fcntl." (#166658) (#166846) 2025-11-10 13:39:34 -08:00
startup [libc] Enable the FPU in Arm startup code (#166349) 2025-11-06 10:45:45 +00:00
test Reapply "[libc] Return errno from OFD failure paths in fcntl." (#166658) (#166846) 2025-11-10 13:39:34 -08:00
utils [libc][hdrgen] Sort identifiers with leading underscores specially (#165745) 2025-10-30 11:49:22 -07:00
.clang-tidy
.gitignore
CMakeLists.txt [libc] Fix Linux kernel headers being included on all OS's 2025-11-03 08:24:41 -06:00
LICENSE.TXT
Maintainers.rst [libc] Add myself as maintainer for Public Headers / hdrgen (#135209) 2025-04-11 11:33:52 -07:00
README.txt

LLVM libc
=========

This directory and its subdirectories contain source code for llvm-libc,
a retargetable implementation of the C standard library.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.