Searched refs:sfd (Results 1 – 5 of 5) sorted by relevance
/system/core/debuggerd/ |
D | signal_sender.cpp | 71 int sfd[2]; in start_signal_sender() local 72 if (socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC, 0, sfd) != 0) { in start_signal_sender() 83 close(sfd[1]); in start_signal_sender() 89 int rc = TEMP_FAILURE_RETRY(read(sfd[0], &msg, sizeof(msg))); in start_signal_sender() 110 if (TEMP_FAILURE_RETRY(write(sfd[0], &err, sizeof(err))) < 0) { in start_signal_sender() 121 close(sfd[0]); in start_signal_sender() 122 signal_fd = sfd[1]; in start_signal_sender()
|
/system/core/adb/ |
D | transport_local.cpp | 58 if(!ReadFdExactly(t->sfd, &p->msg, sizeof(amessage))){ in remote_read() 68 if(!ReadFdExactly(t->sfd, p->data, p->msg.data_length)){ in remote_read() 85 if(!WriteFdExactly(t->sfd, &p->msg, sizeof(amessage) + length)) { in remote_write() 322 int fd = t->sfd; in remote_kick() 323 t->sfd = -1; in remote_kick() 342 int fd = t->sfd; in remote_close() 344 t->sfd = -1; in remote_close() 400 t->sfd = s; in init_socket_transport()
|
D | shell_service.cpp | 185 ScopedFd* PassOutput(ScopedFd* sfd, ShellProtocol::Id id); 471 for (ScopedFd* sfd : {&protocol_sfd_, &stdinout_sfd_, &stderr_sfd_}) { in PassDataStreams() 472 if (sfd->valid()) { in PassDataStreams() 473 FD_SET(sfd->fd(), &master_read_set); in PassDataStreams() 507 inline bool ValidAndInSet(const ScopedFd& sfd, fd_set* set) { in ValidAndInSet() argument 508 return sfd.valid() && FD_ISSET(sfd.fd(), set); in ValidAndInSet() 640 ScopedFd* Subprocess::PassOutput(ScopedFd* sfd, ShellProtocol::Id id) { in PassOutput() argument 641 int bytes = adb_read(sfd->fd(), output_->data(), output_->data_capacity()); in PassOutput() 646 PLOG(ERROR) << "error reading output FD " << sfd->fd(); in PassOutput() 648 return sfd; in PassOutput()
|
D | transport.h | 82 int sfd = -1; variable
|
/system/bt/udrv/ulinux/ |
D | uipc.c | 170 static int accept_server_socket(int sfd) in accept_server_socket() argument 177 BTIF_TRACE_EVENT("accept fd %d", sfd); in accept_server_socket() 180 pfd.fd = sfd; in accept_server_socket() 193 OSI_NO_INTR(fd = accept(sfd, (struct sockaddr *)&remote, &len)); in accept_server_socket()
|