Searched refs:dup (Results 1 – 25 of 41) sorted by relevance
12
34 api_name: "dup"40 api_name: "dup"
45 int dup1 = dup(tmp1.fd); in SetUp()47 int dup2 = dup(tmp2.fd); in SetUp()183 unique_fd sent1(dup(tmp1.fd)); in TEST_P()184 unique_fd sent2(dup(tmp2.fd)); in TEST_P()
64 old_fd_ = dup(std_fd_); in Start()
26 int fd = dup(heap->getHeapID()); in fromHeap()
59 dup(1); in main()
91 close(2); dup(1); /* join stdout and stderr */ in main()
15 dup: 1
16 dup: 1
21 dup: 1
37 return unique_fd{dup(iter->second)}; in Open()
88 dup(1); in main()
92 T* dup = new (std::nothrow) T[n]; in dup_array() local93 if (dup) in dup_array()95 dup[i] = a[i]; in dup_array()96 return dup; in dup_array()
323 *_aidl_return = unique_fd(dup(read.get())); in RepeatFileDescriptor()332 repeated->push_back(unique_fd(dup(item.get()))); in ReverseFileDescriptorArray()333 _aidl_return->push_back(unique_fd(dup(item.get()))); in ReverseFileDescriptorArray()342 _aidl_return->reset(unique_fd(dup(read.get()))); in RepeatParcelFileDescriptor()351 repeated->push_back(ParcelFileDescriptor(unique_fd(dup(item.get())))); in ReverseParcelFileDescriptorArray()355 _aidl_return->push_back(ParcelFileDescriptor(unique_fd(dup(i->get())))); in ReverseParcelFileDescriptorArray()
60 clone->data[i] = dup(handle->data[i]); in native_handle_clone()
113 old_stdout_ = dup(STDOUT_FILENO); in Start()
225 std::unique_ptr<DIR, decltype(&closedir)> wakelockDp(fdopendir(dup(wakelockFd.get())), in createKernelEntry()286 std::unique_ptr<DIR, decltype(&closedir)> dp(fdopendir(dup(mKernelWakelockStatsFd.get())), in getKernelWakelockStats()
239 std::unique_ptr<DIR, decltype(&closedir)> dp(fdopendir(dup(mSuspendStatsFd.get())), &closedir); in getSuspendStats()
144 FileLogger(const FileLogger& other) { fd_.reset(dup(other.fd_)); } in FileLogger()
405 unique_fd output_pipe(dup(STDOUT_FILENO)); in main()406 unique_fd input_pipe(dup(STDIN_FILENO)); in main()
241 int new_ion_fd = TEMP_FAILURE_RETRY(dup(ion_fd_.get())); in LegacyIonCpuSync()
873 _aidl_return->cmd.emplace(unique_fd(dup(IncFs_GetControlFd(control, CMD)))); in mountIncFs()874 _aidl_return->pendingReads.emplace(unique_fd(dup(IncFs_GetControlFd(control, PENDING_READS)))); in mountIncFs()877 _aidl_return->log.emplace(unique_fd(dup(logsFd))); in mountIncFs()
309 android::base::unique_fd copy(dup(fd)); in dump_backtrace_to_file_timeout()
230 mHandle->data[i] = dup(other.mHandle->data[i]);