• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/kern/

Lines Matching refs:NULL

76 	if (sock == NULL || new_sock == NULL) return EINVAL;
87 sock->so_comp.tqh_first == NULL) {
92 if (sock->so_proto->pr_getlock != NULL) {
106 error = msleep((caddr_t)&sock->so_timeo, mutex_held, PSOCK | PCATCH, "sock_accept", NULL);
127 if (new_so->so_filt != NULL) {
150 new_so->so_head = NULL;
195 if (sock == NULL || to == NULL) return EINVAL;
209 if (sock == NULL || to == NULL) return EINVAL;
227 if (sock->so_proto->pr_getlock != NULL)
234 "sock_connect", NULL);
291 if (sock->so_proto->pr_getlock != NULL)
339 struct sockaddr *sa = NULL;
341 if (sock == NULL || peername == NULL || peernamelen < 0)
364 struct sockaddr *sa = NULL;
366 if (sock == NULL || sockname == NULL || socknamelen < 0)
386 if (sock == NULL || psa == NULL)
389 *psa = NULL;
393 if (error == 0 && *psa == NULL) {
395 } else if (error != 0 && *psa != NULL) {
397 *psa = NULL;
405 if (sa != NULL)
420 if (sock == NULL || optval == NULL || optlen == NULL) return EINVAL;
426 sopt.sopt_p = NULL;
438 return soioctl(sock, request, argp, NULL); /* will lock socket */
451 if (sock == NULL || optval == NULL) return EINVAL;
457 sopt.sopt_p = NULL;
466 if (sock == NULL) return EINVAL;
479 struct mbuf *control = NULL;
483 char uio_buf[ UIO_SIZEOF((msg != NULL) ? msg->msg_iovlen : 0) ];
485 if (sock == NULL) return EINVAL;
487 auio = uio_createwithbuffer(((msg != NULL) ? msg->msg_iovlen : 0),
490 if (msg && data == NULL) {
511 if (control == NULL) return ENOMEM;
518 data, control ? &control : NULL, &flags);
579 if ((msg == NULL) ||
582 (msg->msg_iov[0].iov_base == NULL))
584 return sock_receive_internal(sock, msg, NULL, flags, recvdlen);
595 if (data == NULL || recvlen == 0 || *recvlen <= 0 || (msg &&
596 (msg->msg_iov != NULL || msg->msg_iovlen != 0)))
609 uio_t auio = NULL;
610 struct mbuf *control = NULL;
613 char uio_buf[ UIO_SIZEOF((msg != NULL ? msg->msg_iovlen : 1)) ];
615 if (sock == NULL) {
620 if (data == 0 && msg != NULL) {
625 if (tempp != NULL)
653 if (control == NULL) {
661 error = sock->so_proto->pr_usrreqs->pru_sosend(sock, msg != NULL ?
662 (struct sockaddr*)msg->msg_name : NULL, auio, data, control, flags);
671 if (auio != NULL && uio_resid(auio) != datalen &&
675 if (error == 0 && sentlen != NULL) {
676 if (auio != NULL)
706 if (msg == NULL || msg->msg_iov == NULL || msg->msg_iovlen < 1)
708 return sock_send_internal(sock, msg, NULL, flags, sentlen);
719 if (data == NULL || (msg &&
720 (msg->msg_iov != NULL || msg->msg_iovlen != 0))) {
733 if (sock == NULL) return EINVAL;
748 if (new_so == NULL) return EINVAL;
767 if (sock == NULL) return;
776 if (sock == NULL) return;
787 if (sock == NULL)
813 if (sock == NULL) return EINVAL;