Home
last modified time | relevance | path

Searched refs:new_fd (Results 1 – 5 of 5) sorted by relevance

/packages/modules/adb/daemon/
Dadb_wifi.cpp136 unique_fd new_fd(adb_socket_accept(fd, nullptr, nullptr)); in OnFdEvent() local
137 if (new_fd >= 0) { in OnFdEvent()
138 LOG(INFO) << "New TLS connection [fd=" << new_fd.get() << "]"; in OnFdEvent()
139 close_on_exec(new_fd.get()); in OnFdEvent()
140 disable_tcp_nagle(new_fd.get()); in OnFdEvent()
141 std::string serial = android::base::StringPrintf("host-%d", new_fd.get()); in OnFdEvent()
143 std::move(new_fd), std::move(serial), port_, 1, in OnFdEvent()
/packages/modules/Virtualization/authfs/src/file/
Ddir.rs86 let new_fd = self in create_file() localVariable
92 VerifiedFileEditor::new(RemoteFileEditor::new(self.service.clone(), new_fd)); in create_file()
94 let new_attr = Attr::new_file_with_mode(self.service.clone(), new_fd, mode); in create_file()
109 let new_fd = self in mkdir() localVariable
114 let new_remote_dir = RemoteDirEditor::new(self.service.clone(), new_fd); in mkdir()
116 let new_attr = Attr::new_dir_with_mode(self.service.clone(), new_fd, mode); in mkdir()
/packages/modules/Virtualization/authfs/fd_server/src/
Daidl.rs102 let (new_fd, new_fd_config) = create_fn(fd_config)?; in insert_new_fd()
103 if let btree_map::Entry::Vacant(entry) = fd_pool.entry(new_fd) { in insert_new_fd()
105 Ok(new_fd) in insert_new_fd()
111 new_fd in insert_new_fd()
291 let new_fd = openat( in createFileInDirectory() localVariable
303 let new_file = unsafe { File::from_raw_fd(new_fd) }; in createFileInDirectory()
304 Ok((new_fd, FdConfig::ReadWrite(new_file))) in createFileInDirectory()
410 let new_fd = openat(Some(dir_fd.as_raw_fd()), path, OFlag::O_RDONLY, Mode::empty())?; in open_readonly_at() localVariable
412 let new_file = unsafe { File::from_raw_fd(new_fd) }; in open_readonly_at()
/packages/modules/adb/
Dsocket_spec.cpp449 int new_fd = fcntl(fd, F_DUPFD_CLOEXEC, 0);
450 if (new_fd < 0) {
455 return new_fd;
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp2068 int new_fd = accept4(s, reinterpret_cast<struct sockaddr*>(&cliaddr), &sin_size, SOCK_CLOEXEC); in TEST_F() local
2069 ASSERT_TRUE(new_fd > 0); in TEST_F()
2081 write(new_fd, garbage.data(), garbage.size()); in TEST_F()
2082 close(new_fd); in TEST_F()