Home
last modified time | relevance | path

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

/aosp14/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()
/aosp14/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()
/aosp14/system/core/libprocessgroup/
H A Dtask_profiles.cpp93 unique_fd tmp_fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_WRONLY | O_CLOEXEC))); in Cache() local
94 if (tmp_fd < 0) { in Cache()
100 fd = std::move(tmp_fd); in Cache()
389 unique_fd tmp_fd(TEMP_FAILURE_RETRY(open(procs_path.c_str(), O_WRONLY | O_CLOEXEC))); in ExecuteForProcess() local
390 if (tmp_fd < 0) { in ExecuteForProcess()
394 if (!AddTidToCgroup(pid, tmp_fd, controller()->name())) { in ExecuteForProcess()
411 if (tmp_fd < 0) { in ExecuteForTask()
415 if (!AddTidToCgroup(tid, tmp_fd, controller()->name())) { in ExecuteForTask()
511 unique_fd tmp_fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_WRONLY | O_CLOEXEC))); in WriteValueToFile() local
513 if (tmp_fd < 0) { in WriteValueToFile()
[all …]
/aosp14/system/core/debuggerd/
H A Ddebuggerd_test.cpp330 unique_fd tmp_fd(TEMP_FAILURE_RETRY(dup(fileno(cmd_stdout)))); in Collect() local
331 ConsumeFd(std::move(tmp_fd), output); in Collect()
1223 unique_fd tmp_fd(TEMP_FAILURE_RETRY(dup(fileno(tmp_file)))); in setup_jail() local
1224 if (!android::base::WriteStringToFd(policy, tmp_fd.get())) { in setup_jail()
1228 if (lseek(tmp_fd.get(), 0, SEEK_SET) != 0) { in setup_jail()
1235 minijail_parse_seccomp_filters_from_fd(jail, tmp_fd.release()); in setup_jail()