Lines Matching defs:read_all

217 static int read_all(dnssd_sock_t sd, char *buf, int len)
229 syslog(LOG_INFO, "dnssd_clientstub read_all: EINTR continue");
248 syslog(LOG_WARNING, "dnssd_clientstub read_all: SO_ISDEFUNCT failed %d %s", dnssd_errno, dnssd_strerror(dnssd_errno));
254 syslog(LOG_WARNING, "dnssd_clientstub read_all(%d) failed %ld/%ld %d %s", sd,
259 syslog(LOG_INFO, "dnssd_clientstub read_all(%d) DEFUNCT", sd);
833 // Close our end of the socketpair *before* calling read_all() to get the four-byte error code.
835 // in read_all() because the socket is not closed (we still have an open reference to it)
842 // At this point we may wait in read_all for a few milliseconds waiting for the daemon to send us the error code,
849 if (read_all(errsd, (char*)&err, (int)sizeof(err)) < 0)
850 err = kDNSServiceErr_ServiceNotRunning; // On failure read_all will have written a message to syslog for us
998 // On error, read_all will write a message to syslog for us, so don't need to duplicate that here
1000 int result = read_all(sdRef->sockfd, (void *)&cbh.ipc_hdr, sizeof(cbh.ipc_hdr));
1010 // Note: read_all fails if we could not read from the daemon which can happen if the
1028 syslog(LOG_WARNING, "dnssd_clientstub DNSServiceProcessResult error: select indicated data was waiting but read_all returned EWOULDBLOCK");
1043 if (read_all(sdRef->sockfd, data, cbh.ipc_hdr.datalen) < 0) // On error, read_all will write a message to syslog for us
1191 if (read_all(tmp->sockfd, (char*)&actualsize, (int)sizeof(actualsize)) < 0)
1195 if (read_all(tmp->sockfd, (char*)result, actualsize < *size ? actualsize : *size) < 0)
1224 if (read_all(tmp->sockfd, (char*)pid, sizeof(int32_t)) < 0)