Home
last modified time | relevance | path

Searched refs:ResultFD (Results 1 – 4 of 4) sorted by relevance

/freebsd-12.1/contrib/llvm/include/llvm/Support/
H A DFileSystem.h789 std::error_code createUniqueFile(const Twine &Model, int &ResultFD,
846 int &ResultFD,
913 std::error_code openFile(const Twine &Name, int &ResultFD,
951 openFileForWrite(const Twine &Name, int &ResultFD,
954 return openFile(Name, ResultFD, Disp, FA_Write, Flags, Mode);
992 inline std::error_code openFileForReadWrite(const Twine &Name, int &ResultFD,
996 return openFile(Name, ResultFD, Disp, FA_Write | FA_Read, Flags, Mode);
1033 std::error_code openFileForRead(const Twine &Name, int &ResultFD,
/freebsd-12.1/contrib/llvm/lib/Support/
H A DPath.cpp169 createUniqueEntity(const Twine &Model, int &ResultFD, in createUniqueEntity() argument
209 EC = sys::fs::openFileForReadWrite(Twine(ResultPath.begin()), ResultFD, in createUniqueEntity()
792 createTemporaryFile(const Twine &Model, int &ResultFD, in createTemporaryFile() argument
799 return createUniqueEntity(P.begin(), ResultFD, ResultPath, true, in createTemporaryFile()
804 createTemporaryFile(const Twine &Prefix, StringRef Suffix, int &ResultFD, in createTemporaryFile() argument
807 return createTemporaryFile(Prefix + Middle + Suffix, ResultFD, ResultPath, in createTemporaryFile()
812 int &ResultFD, in createTemporaryFile() argument
814 return createTemporaryFile(Prefix, Suffix, ResultFD, ResultPath, FS_File); in createTemporaryFile()
/freebsd-12.1/contrib/llvm/lib/Support/Unix/
H A DPath.inc833 std::error_code openFile(const Twine &Name, int &ResultFD,
843 if ((ResultFD = sys::RetryAfterSignal(-1, Open)) < 0)
847 int r = fcntl(ResultFD, F_SETFD, FD_CLOEXEC);
866 std::error_code openFileForRead(const Twine &Name, int &ResultFD,
870 openFile(Name, ResultFD, CD_OpenExisting, FA_Read, Flags, 0666);
882 if (::fcntl(ResultFD, F_GETPATH, Buffer) != -1)
888 snprintf(ProcPath, sizeof(ProcPath), "/proc/self/fd/%d", ResultFD);
906 file_t ResultFD;
907 std::error_code EC = openFileForRead(Name, ResultFD, Flags, RealPath);
910 return ResultFD;
/freebsd-12.1/contrib/llvm/lib/Support/Windows/
H A DPath.inc1025 static std::error_code nativeFileToFd(Expected<HANDLE> H, int &ResultFD,
1034 ResultFD = -1;
1038 ResultFD = ::_open_osfhandle(intptr_t(*H), CrtOpenFlags);
1039 if (ResultFD == -1) {
1158 std::error_code openFile(const Twine &Name, int &ResultFD,
1165 return nativeFileToFd(*Result, ResultFD, Flags);
1181 std::error_code openFileForRead(const Twine &Name, int &ResultFD,
1185 return nativeFileToFd(std::move(NativeFile), ResultFD, OF_None);