scanon added a comment. Two quick notes as someone who has never used these functions: - Name is really the *path* of the file to open, right? - What happens to ResultFD if the function fails? Repository: rL LLVM https://reviews.llvm.org/D46499