Home
last modified time | relevance | path

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

/system/core/adb/daemon/
Dadb_wifi.cpp139 unique_fd new_fd(adb_socket_accept(fd, nullptr, nullptr)); in OnFdEvent() local
140 if (new_fd >= 0) { in OnFdEvent()
141 LOG(INFO) << "New TLS connection [fd=" << new_fd.get() << "]"; in OnFdEvent()
142 close_on_exec(new_fd.get()); in OnFdEvent()
143 disable_tcp_nagle(new_fd.get()); in OnFdEvent()
144 std::string serial = android::base::StringPrintf("host-%d", new_fd.get()); in OnFdEvent()
146 std::move(new_fd), std::move(serial), port_, 1, in OnFdEvent()
/system/core/liblog/
Dpmsg_writer.cpp43 int new_fd = TEMP_FAILURE_RETRY(open("/dev/pmsg0", O_WRONLY | O_CLOEXEC)); in GetPmsgFd() local
44 if (new_fd <= 0) { in GetPmsgFd()
49 if (!pmsg_fd.compare_exchange_strong(uninitialized_value, new_fd)) { in GetPmsgFd()
50 close(new_fd); in GetPmsgFd()
/system/update_engine/payload_generator/
Dblock_mapping.cc151 int new_fd = HANDLE_EINTR(open(new_part.c_str(), O_RDONLY)); in MapPartitionBlocks() local
153 ScopedFdCloser new_fd_closer(&new_fd); in MapPartitionBlocks()
158 new_fd, 0, new_size / block_size, new_block_ids)); in MapPartitionBlocks()
/system/core/adb/
Dsocket_spec.cpp434 int new_fd = fcntl(fd, F_DUPFD_CLOEXEC, 0);
435 if (new_fd < 0) {
440 return new_fd;