Home
last modified time | relevance | path

Searched refs:sfd (Results 1 – 2 of 2) sorted by relevance

/system/core/adb/daemon/
Dshell_service.cpp185 unique_fd* PassOutput(unique_fd* sfd, ShellProtocol::Id id);
538 for (unique_fd* sfd : {&protocol_sfd_, &stdinout_sfd_, &stderr_sfd_}) { in PassDataStreams()
539 if (*sfd != -1) { in PassDataStreams()
540 FD_SET(*sfd, &master_read_set); in PassDataStreams()
575 inline bool ValidAndInSet(const unique_fd& sfd, fd_set* set) { in ValidAndInSet() argument
576 return sfd != -1 && FD_ISSET(sfd, set); in ValidAndInSet()
705 unique_fd* Subprocess::PassOutput(unique_fd* sfd, ShellProtocol::Id id) { in PassOutput() argument
706 int bytes = adb_read(*sfd, output_->data(), output_->data_capacity()); in PassOutput()
711 PLOG(ERROR) << "error reading output FD " << *sfd; in PassOutput()
713 return sfd; in PassOutput()
/system/bt/udrv/ulinux/
Duipc.cc135 static int accept_server_socket(int sfd) { in accept_server_socket() argument
141 BTIF_TRACE_EVENT("accept fd %d", sfd); in accept_server_socket()
144 pfd.fd = sfd; in accept_server_socket()
156 OSI_NO_INTR(fd = accept(sfd, (struct sockaddr*)&remote, &len)); in accept_server_socket()