Home
last modified time | relevance | path

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

/frameworks/native/cmds/dumpstate/
DDumpPool.cpp128 auto tmp_file_ptr = std::make_unique<TmpFile>(); in createTempFile() local
130 snprintf(tmp_file_ptr->path, sizeof(tmp_file_ptr->path), file_name_format.c_str(), in createTempFile()
132 tmp_file_ptr->fd.reset(TEMP_FAILURE_RETRY( in createTempFile()
133 mkostemp(tmp_file_ptr->path, O_CLOEXEC))); in createTempFile()
134 if (tmp_file_ptr->fd.get() == -1) { in createTempFile()
135 MYLOGE("open(%s, %s)\n", tmp_file_ptr->path, strerror(errno)); in createTempFile()
136 tmp_file_ptr = nullptr; in createTempFile()
137 return tmp_file_ptr; in createTempFile()
139 return tmp_file_ptr; in createTempFile()
DDumpPool.h152 std::unique_ptr<TmpFile> tmp_file_ptr = createTempFile(); in post()
153 if (!tmp_file_ptr) { in post()
156 invokeTask(dump_func, task_name, tmp_file_ptr->fd.get()); in post()
157 fsync(tmp_file_ptr->fd.get()); in post()
158 return std::string(tmp_file_ptr->path); in post()