llvm-project
69b3a4f9 - [libc] Implement close_range in unistd (#236913)

Commit
31 days ago
[libc] Implement close_range in unistd (#236913) This patch implements the `close_range` entrypoint in LLVM libc under `unistd` as standardized in POSIX.1-2024 and Linux kernel 5.9+. - Implements internal syscall wrapper `close_range` with fallback error handling. - Adds public entrypoint and headers conforming to Doxygen format. - Adds unit tests covering standard range closure and error conditions (`EINVAL`). - Updates entrypoints across Linux targets (`x86_64`, `aarch64`, `arm`, `riscv`). Fixes #236896.
Author
Parents
Loading