@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
| 1071 | /// @returns errc::success if \a Name has been opened, otherwise a |
| 1072 | /// platform-specific error_code. |
| 1073 | inline 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 |
no outgoing calls
no test coverage detected