Searched refs:tmp_fd (Results 1 – 3 of 3) 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/core/libprocessgroup/ |
D | task_profiles.cpp | 217 unique_fd tmp_fd(TEMP_FAILURE_RETRY(open(procs_path.c_str(), O_WRONLY | O_CLOEXEC))); in ExecuteForProcess() local 218 if (tmp_fd < 0) { in ExecuteForProcess() 222 if (!AddTidToCgroup(pid, tmp_fd)) { in ExecuteForProcess() 254 unique_fd tmp_fd(TEMP_FAILURE_RETRY(open(tasks_path.c_str(), O_WRONLY | O_CLOEXEC))); in ExecuteForTask() local 255 if (tmp_fd < 0) { in ExecuteForTask() 259 if (!AddTidToCgroup(tid, tmp_fd)) { in ExecuteForTask()
|
/system/core/debuggerd/ |
D | debuggerd_test.cpp | 320 unique_fd tmp_fd(TEMP_FAILURE_RETRY(dup(fileno(cmd_stdout)))); in Collect() local 321 ConsumeFd(std::move(tmp_fd), output); in Collect() 1184 unique_fd tmp_fd(TEMP_FAILURE_RETRY(dup(fileno(tmp_file)))); in seccomp_fork_impl() local 1185 if (!android::base::WriteStringToFd(policy, tmp_fd.get())) { in seccomp_fork_impl() 1189 if (lseek(tmp_fd.get(), 0, SEEK_SET) != 0) { in seccomp_fork_impl() 1201 minijail_parse_seccomp_filters_from_fd(jail.get(), tmp_fd.release()); in seccomp_fork_impl()
|