Home
last modified time | relevance | path

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

/base/hiviewdfx/hilog/services/hilogd/
Dlog_persister.cpp196 FILE* plainTextFile = fopen(m_plainLogFilePath.c_str(), restore ? "r+" : "w+"); in PrepareUncompressedFile() local
198 if (!plainTextFile) { in PrepareUncompressedFile()
205 ftruncate(fileno(plainTextFile), sizeof(LogPersisterBuffer)); in PrepareUncompressedFile()
206 fflush(plainTextFile); in PrepareUncompressedFile()
207 fsync(fileno(plainTextFile)); in PrepareUncompressedFile()
210 PROT_READ | PROT_WRITE, MAP_SHARED, fileno(plainTextFile), 0)); in PrepareUncompressedFile()
211 if (fclose(plainTextFile)) { in PrepareUncompressedFile()
212 std::cerr << "File: " << plainTextFile << " can't be closed. "; in PrepareUncompressedFile()