Searched refs:tmp_fd (Results 1 – 4 of 4) sorted by relevance
/system/core/libsparse/ |
D | append2simg.cpp | 57 int tmp_fd; in main() local 111 tmp_fd = open(tmp_path, O_WRONLY | O_CREAT | O_BINARY, 0664); in main() 112 if (tmp_fd < 0) { in main() 118 if (sparse_file_write(sparse_output, tmp_fd, false, true, false) < 0) { in main() 124 close(tmp_fd); in main()
|
/system/extras/perfprofd/dropbox/ |
D | dropbox.cc | 47 android::base::unique_fd tmp_fd; in WriteDropboxFile() local 51 tmp_fd.reset(mkstemp(path)); in WriteDropboxFile() 52 if (tmp_fd.get() == -1) { in WriteDropboxFile() 68 snprintf(fdpath, arraysize(fdpath), "/proc/self/fd/%d", tmp_fd.get()); in WriteDropboxFile() 83 if (!SerializeProtobuf(encodedProfile, std::move(tmp_fd), kCompress)) { in WriteDropboxFile()
|
/system/core/libprocessgroup/ |
D | task_profiles.cpp | 212 unique_fd tmp_fd(TEMP_FAILURE_RETRY(open(procs_path.c_str(), O_WRONLY | O_CLOEXEC))); in ExecuteForProcess() local 213 if (tmp_fd < 0) { in ExecuteForProcess() 217 if (!AddTidToCgroup(pid, tmp_fd)) { in ExecuteForProcess() 249 unique_fd tmp_fd(TEMP_FAILURE_RETRY(open(tasks_path.c_str(), O_WRONLY | O_CLOEXEC))); in ExecuteForTask() local 250 if (tmp_fd < 0) { in ExecuteForTask() 254 if (!AddTidToCgroup(tid, tmp_fd)) { in ExecuteForTask()
|
/system/core/debuggerd/ |
D | debuggerd_test.cpp | 611 unique_fd tmp_fd(dup(fileno(tmp_file))); in seccomp_fork_impl() local 612 if (!android::base::WriteStringToFd(policy, tmp_fd.get())) { in seccomp_fork_impl() 616 if (lseek(tmp_fd.get(), 0, SEEK_SET) != 0) { in seccomp_fork_impl() 628 minijail_parse_seccomp_filters_from_fd(jail.get(), tmp_fd.release()); in seccomp_fork_impl()
|