Home
last modified time | relevance | path

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

/system/security/keystore/
Dblob.cpp335 char tmpFileName[] = ".tmpXXXXXX"; in writeBlob() local
337 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()
DKeyStore.cpp418 const char* tmpFileName = ".metadata.tmp"; in writeMetaData() local
420 TEMP_FAILURE_RETRY(open(tmpFileName, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR)); in writeMetaData()
431 rename(tmpFileName, kMetaDataFile); in writeMetaData()