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)
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.