Searched refs:tmpFileName (Results 1 – 2 of 2) sorted by relevance
335 char tmpFileName[] = ".tmpXXXXXX"; in writeBlob() local337 android::base::unique_fd out(TEMP_FAILURE_RETRY(mkstemp(tmpFileName))); in writeBlob()339 LOG(ERROR) << "could not open temp file: " << tmpFileName in writeBlob()350 unlink(tmpFileName); in writeBlob()355 if (rename(tmpFileName, filename.c_str()) == -1) { in writeBlob()358 unlink(tmpFileName); in writeBlob()
418 const char* tmpFileName = ".metadata.tmp"; in writeMetaData() local420 TEMP_FAILURE_RETRY(open(tmpFileName, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR)); in writeMetaData()431 rename(tmpFileName, kMetaDataFile); in writeMetaData()