Home
last modified time | relevance | path

Searched refs:tmp_fd (Results 1 – 6 of 6) sorted by relevance

/aosp12/system/core/libsparse/
H A Dappend2simg.cpp57 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()
/aosp12/system/core/libprocessgroup/
H A Dtask_profiles.cpp237 unique_fd tmp_fd(TEMP_FAILURE_RETRY(open(procs_path.c_str(), O_WRONLY | O_CLOEXEC))); in ExecuteForProcess() local
238 if (tmp_fd < 0) { in ExecuteForProcess()
242 if (!AddTidToCgroup(pid, tmp_fd, controller()->name())) { in ExecuteForProcess()
274 unique_fd tmp_fd(TEMP_FAILURE_RETRY(open(tasks_path.c_str(), O_WRONLY | O_CLOEXEC))); in ExecuteForTask() local
275 if (tmp_fd < 0) { in ExecuteForTask()
279 if (!AddTidToCgroup(tid, tmp_fd, controller()->name())) { in ExecuteForTask()
297 unique_fd tmp_fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_WRONLY | O_CLOEXEC))); in WriteValueToFile() local
299 if (tmp_fd < 0) { in WriteValueToFile()
304 if (!WriteStringToFd(value, tmp_fd)) { in WriteValueToFile()
/aosp12/frameworks/base/native/webview/loader/
H A Dloader.cpp83 int tmp_fd = TEMP_FAILURE_RETRY(mkstemp(relro_tmp)); in DoCreateRelroFile() local
84 if (tmp_fd == -1) { in DoCreateRelroFile()
100 extinfo.relro_fd = tmp_fd; in DoCreateRelroFile()
103 int close_result = close(tmp_fd); in DoCreateRelroFile()
/aosp12/hardware/google/gchips/gralloc3/src/
H A Dmali_gralloc_ion.cpp922 int tmp_fd; in mali_gralloc_ion_allocate() local
926 tmp_fd = dup(shared_fd); in mali_gralloc_ion_allocate()
928 if (tmp_fd < 0) in mali_gralloc_ion_allocate()
947 tmp_fd = shared_fd; in mali_gralloc_ion_allocate()
972 …bufDescriptor->consumer_usage, bufDescriptor->producer_usage, tmp_fd, -1, -1, bufDescriptor->hal_… in mali_gralloc_ion_allocate()
983 close(tmp_fd); in mali_gralloc_ion_allocate()
/aosp12/art/libartbase/base/unix_file/
H A Dfd_file.cc232 int tmp_fd = fd_; in Release() local
236 if (tmp_fd >= 0) { in Release()
237 android_fdsan_exchange_owner_tag(tmp_fd, GetFdFileOwnerTag(this), 0); in Release()
240 return tmp_fd; in Release()
/aosp12/system/core/debuggerd/
H A Ddebuggerd_test.cpp320 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()