Searched refs:temp_path (Results 1 – 4 of 4) sorted by relevance
/system/bt/gd/os/linux_generic/ |
D | files.cc | 34 void HandleError(const std::string& temp_path, int* dir_fd, FILE** fp) { in HandleError() argument 37 unlink(temp_path.c_str()); in HandleError() 107 const std::string temp_path = path + ".new"; in WriteToFile() local 129 FILE* fp = std::fopen(temp_path.c_str(), "wt"); in WriteToFile() 131 LOG_ERROR("unable to write to file '%s', error: %s", temp_path.c_str(), strerror(errno)); in WriteToFile() 132 HandleError(temp_path, &dir_fd, &fp); in WriteToFile() 137 LOG_ERROR("unable to write to file '%s', error: %s", temp_path.c_str(), strerror(errno)); in WriteToFile() 138 HandleError(temp_path, &dir_fd, &fp); in WriteToFile() 144 …LOG_ERROR("unable to write flush buffer to file '%s', error: %s", temp_path.c_str(), strerror(errn… in WriteToFile() 145 HandleError(temp_path, &dir_fd, &fp); in WriteToFile() [all …]
|
/system/core/adb/ |
D | adb_utils.cpp | 329 WCHAR temp_path[MAX_PATH]; in GetLogFilePath() local 332 DWORD nchars = GetTempPathW(arraysize(temp_path), temp_path); in GetLogFilePath() 333 if (nchars >= arraysize(temp_path) || nchars == 0) { in GetLogFilePath() 340 if (!android::base::WideToUTF8(temp_path, &temp_path_utf8)) { in GetLogFilePath()
|
/system/core/init/ |
D | perfboot.py | 111 for temp_path in self._temp_paths: 112 temp = int(self._device.shell(['cat', temp_path])[0].rstrip())
|
/system/core/fastboot/ |
D | fastboot.cpp | 556 char temp_path[PATH_MAX]; in win32_tmpfile() local 557 DWORD nchars = GetTempPath(sizeof(temp_path), temp_path); in win32_tmpfile() 558 if (nchars == 0 || nchars >= sizeof(temp_path)) { in win32_tmpfile() 563 if (GetTempFileName(temp_path, "fastboot", 0, filename) == 0) { in win32_tmpfile()
|