Home | History | Annotate | Download | only in mDNSShared

Lines Matching defs:read_all

201 static int read_all(dnssd_sock_t sd, char *buf, int len)
211 if ((num_read < 0) && (errno == EINTR)) { syslog(LOG_INFO, "dnssd_clientstub read_all: EINTR continue"); continue; }
228 syslog(LOG_WARNING, "dnssd_clientstub read_all: SO_ISDEFUNCT failed %d %s", dnssd_errno, dnssd_strerror(dnssd_errno));
234 syslog(LOG_WARNING, "dnssd_clientstub read_all(%d) failed %ld/%ld %d %s", sd,
239 syslog(LOG_INFO, "dnssd_clientstub read_all(%d) DEFUNCT", sd);
752 // Close our end of the socketpair *before* blocking in read_all to get the four-byte error code.
753 // Otherwise, if the daemon closes our socket (or crashes), we block in read_all() forever
759 // At this point we may block in read_all for a few milliseconds waiting for the daemon to send us the error code,
765 if (read_all(errsd, (char*)&err, (int)sizeof(err)) < 0)
766 err = kDNSServiceErr_ServiceNotRunning; // On failure read_all will have written a message to syslog for us
911 // On error, read_all will write a message to syslog for us, so don't need to duplicate that here
913 int result = read_all(sdRef->sockfd, (void *)&cbh.ipc_hdr, sizeof(cbh.ipc_hdr));
939 syslog(LOG_WARNING, "dnssd_clientstub DNSServiceProcessResult error: select indicated data was waiting but read_all returned EWOULDBLOCK");
954 if (read_all(sdRef->sockfd, data, cbh.ipc_hdr.datalen) < 0) // On error, read_all will write a message to syslog for us
1092 if (read_all(tmp->sockfd, (char*)&actualsize, (int)sizeof(actualsize)) < 0)
1096 if (read_all(tmp->sockfd, (char*)result, actualsize < *size ? actualsize : *size) < 0)