MCPcopy Create free account
hub / github.com/ablab/spades / openFileForReadWrite

Function openFileForReadWrite

ext/include/llvm/Support/FileSystem.h:1073–1078  ·  view source on GitHub ↗

@brief Opens the file with the given name in a write-only or read-write mode, returning its open file descriptor. If the file does not exist, it is created. The caller is responsible for closing the file descriptor once they are finished with it. @param Name The path of the file to open, relative or absolute. @param ResultFD If the file could be opened successfully, its descriptor is stored in t

Source from the content-addressed store, hash-verified

1071/// @returns errc::success if \a Name has been opened, otherwise a
1072/// platform-specific error_code.
1073inline std::error_code openFileForReadWrite(const Twine &Name, int &ResultFD,
1074 CreationDisposition Disp,
1075 OpenFlags Flags,
1076 unsigned Mode = 0666) {
1077 return openFile(Name, ResultFD, Disp, FA_Write | FA_Read, Flags, Mode);
1078}
1079
1080/// @brief Opens the file with the given name in a write-only or read-write
1081/// mode, returning its open file descriptor. If the file does not exist, it

Callers 2

createUniqueEntityFunction · 0.85
getFDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected