Lines Matching defs:sock
1233 nvlist_send(int sock, const nvlist_t *nvl)
1257 if (buf_send(sock, data, datasize) == -1)
1261 if (fd_send(sock, fds, nfds) == -1)
1275 nvlist_recv(int sock, int flags)
1283 if (buf_recv(sock, &nvlhdr, sizeof(nvlhdr)) == -1)
1301 if (buf_recv(sock, buf + sizeof(nvlhdr), size - sizeof(nvlhdr)) == -1)
1308 if (fd_recv(sock, fds, nfds) == -1)
1332 nvlist_xfer(int sock, nvlist_t *nvl, int flags)
1335 if (nvlist_send(sock, nvl) < 0) {
1340 return (nvlist_recv(sock, flags));