Searched refs:swapFile (Results 1 – 2 of 2) sorted by relevance
/openthread-latest/src/posix/platform/ |
D | config_file.cpp | 166 char swapFile[kFilePathMaxSize]; in Clear() local 173 snprintf(swapFile, sizeof(swapFile), "%s%s", mFilePath, kSwapSuffix); in Clear() 174 VerifyOrDie((fpSwap = fopen(swapFile, "w+")) != NULL, OT_EXIT_ERROR_ERRNO); in Clear() 207 VerifyOrDie(rename(swapFile, mFilePath) == 0, OT_EXIT_ERROR_ERRNO); in Clear()
|
D | settings_file.cpp | 347 char swapFile[kMaxFilePathSize]; in SwapPersist() local 350 GetSettingsFilePath(swapFile, true); in SwapPersist() 355 VerifyOrDie(0 == rename(swapFile, dataFile), OT_EXIT_ERROR_ERRNO); in SwapPersist()
|