Lines Matching refs:last_command_file
85 const std::string& last_command_file = Paths::Get().last_command_file(); in DeleteLastCommandFile() local
86 if (unlink(last_command_file.c_str()) == -1 && errno != ENOENT) { in DeleteLastCommandFile()
87 PLOG(ERROR) << "Failed to unlink: " << last_command_file; in DeleteLastCommandFile()
94 const std::string& last_command_file = Paths::Get().last_command_file(); in ParseLastCommandFile() local
95 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(last_command_file.c_str(), O_RDONLY))); in ParseLastCommandFile()
98 PLOG(ERROR) << "Failed to open " << last_command_file; in ParseLastCommandFile()
102 LOG(INFO) << last_command_file << " doesn't exist."; in ParseLastCommandFile()
109 LOG(ERROR) << "Failed to read: " << last_command_file; in ParseLastCommandFile()
144 const std::string& last_command_file = Paths::Get().last_command_file(); in UpdateLastCommandIndex() local
145 std::string last_command_tmp = last_command_file + ".tmp"; in UpdateLastCommandIndex()
164 if (rename(last_command_tmp.c_str(), last_command_file.c_str()) == -1) { in UpdateLastCommandIndex()
169 if (!FsyncDir(android::base::Dirname(last_command_file))) { in UpdateLastCommandIndex()