Lines Matching defs:sock
51 ksocket_t sock;
53 if (ksocket_socket(&sock, AF_UNIX, SOCK_STREAM, 0,
65 opipe->p_socket = sock;
278 ksocket_t sock;
286 sock = opipe->p_socket;
290 (void) ksocket_shutdown(sock, SHUT_RDWR, of->f_cr);
291 (void) ksocket_close(sock, of->f_cr);
308 ksocket_t sock;
318 sock = opipe->p_socket;
319 if (sock != NULL)
320 ksocket_hold(sock);
322 if (sock == NULL)
334 rc = ksocket_sendmsg(sock, &msghdr, 0, &sent, ofile->f_cr);
340 ksocket_rele(sock);
358 ksocket_t sock;
368 sock = opipe->p_socket;
369 if (sock != NULL)
370 ksocket_hold(sock);
372 if (sock == NULL)
384 rc = ksocket_recvmsg(sock, &msghdr, 0,
397 ksocket_rele(sock);
407 ksocket_t sock;
416 sock = opipe->p_socket;
417 if (sock != NULL)
418 ksocket_hold(sock);
420 if (sock == NULL)
423 rc = ksocket_ioctl(sock, cmd, (intptr_t)arg, rvalp, ofile->f_cr);
425 ksocket_rele(sock);