Lines Matching refs:path
61 static FILE* fopen_path(const std::string& path, const char* mode, const selabel_handle* sehandle) { in fopen_path() argument
62 if (ensure_path_mounted(path) != 0) { in fopen_path()
63 LOG(ERROR) << "Can't mount " << path; in fopen_path()
70 mkdir_recursively(path, 0777, true, sehandle); in fopen_path()
72 return fopen(path.c_str(), mode); in fopen_path()
274 std::string path = android::base::StringPrintf("%s/%s", CACHE_LOG_DIR, de->d_name); in ReadLogFilesToMemory() local
277 if (stat(path.c_str(), &sb) != 0) { in ReadLogFilesToMemory()
278 PLOG(ERROR) << "Failed to stat " << path; in ReadLogFilesToMemory()
285 android::base::unique_fd log_fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY))); in ReadLogFilesToMemory()
287 PLOG(ERROR) << "Failed to read log file " << path; in ReadLogFilesToMemory()
291 log_files.emplace_back(saved_log_file{ path, sb, data }); in ReadLogFilesToMemory()