Home
last modified time | relevance | path

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

/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/
HDFileSystem.h827 std::error_code createUniqueFile(const Twine &Model, int &ResultFD,
884 int &ResultFD,
951 std::error_code openFile(const Twine &Name, int &ResultFD,
1032 openFileForWrite(const Twine &Name, int &ResultFD,
1035 return openFile(Name, ResultFD, Disp, FA_Write, Flags, Mode);
1073 inline std::error_code openFileForReadWrite(const Twine &Name, int &ResultFD,
1077 return openFile(Name, ResultFD, Disp, FA_Write | FA_Read, Flags, Mode);
1114 std::error_code openFileForRead(const Twine &Name, int &ResultFD,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
HDPath.cpp168 createUniqueEntity(const Twine &Model, int &ResultFD, in createUniqueEntity() argument
183 EC = sys::fs::openFileForReadWrite(Twine(ResultPath.begin()), ResultFD, in createUniqueEntity()
816 createTemporaryFile(const Twine &Model, int &ResultFD, in createTemporaryFile() argument
823 return createUniqueEntity(P.begin(), ResultFD, ResultPath, true, in createTemporaryFile()
828 createTemporaryFile(const Twine &Prefix, StringRef Suffix, int &ResultFD, in createTemporaryFile() argument
831 return createTemporaryFile(Prefix + Middle + Suffix, ResultFD, ResultPath, in createTemporaryFile()
836 int &ResultFD, in createTemporaryFile() argument
838 return createTemporaryFile(Prefix, Suffix, ResultFD, ResultPath, FS_File); in createTemporaryFile()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/Unix/
HDPath.inc948 std::error_code openFile(const Twine &Name, int &ResultFD,
958 if ((ResultFD = sys::RetryAfterSignal(-1, Open)) < 0)
962 int r = fcntl(ResultFD, F_SETFD, FD_CLOEXEC);
981 std::error_code openFileForRead(const Twine &Name, int &ResultFD,
985 openFile(Name, ResultFD, CD_OpenExisting, FA_Read, Flags, 0666);
997 if (::fcntl(ResultFD, F_GETPATH, Buffer) != -1)
1003 snprintf(ProcPath, sizeof(ProcPath), "/proc/self/fd/%d", ResultFD);
1021 file_t ResultFD;
1022 std::error_code EC = openFileForRead(Name, ResultFD, Flags, RealPath);
1025 return ResultFD;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/Windows/
HDPath.inc1043 static std::error_code nativeFileToFd(Expected<HANDLE> H, int &ResultFD,
1052 ResultFD = -1;
1056 ResultFD = ::_open_osfhandle(intptr_t(*H), CrtOpenFlags);
1057 if (ResultFD == -1) {
1176 std::error_code openFile(const Twine &Name, int &ResultFD,
1183 return nativeFileToFd(*Result, ResultFD, Flags);
1199 std::error_code openFileForRead(const Twine &Name, int &ResultFD,
1203 return nativeFileToFd(std::move(NativeFile), ResultFD, OF_None);