Searched refs:new_fd (Results 1 – 4 of 4) sorted by relevance
/system/core/adb/daemon/ |
D | adb_wifi.cpp | 139 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/ |
D | pmsg_writer.cpp | 43 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/ |
D | block_mapping.cc | 151 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/ |
D | socket_spec.cpp | 434 int new_fd = fcntl(fd, F_DUPFD_CLOEXEC, 0); 435 if (new_fd < 0) { 440 return new_fd;
|