https://github.com/labath commented: I have (without seeing this PR) just created #201089, which forwards everything to the open syscall wrapper (which already prefers openat). This shouldn't be needed once that PR lands. https://github.com/llvm/llvm-project/pull/201051