Lines Matching refs:msg
439 struct msghdr msg; in __msgread() local
448 msg.msg_iov = &iov; in __msgread()
449 msg.msg_iovlen = 1; in __msgread()
450 msg.msg_name = NULL; in __msgread()
451 msg.msg_namelen = 0; in __msgread()
453 msg.msg_control = (caddr_t) &cm; in __msgread()
454 msg.msg_controllen = CMSG_SPACE(sizeof (struct ucred)); in __msgread()
456 msg.msg_flags = 0; in __msgread()
467 len = __recvmsg (sock, &msg, 0); in __msgread()
470 if (msg.msg_flags & MSG_CTRUNC || len == 0) in __msgread()
489 struct msghdr msg; in __msgwrite()
509 msg.msg_iov = &iov; in __msgwrite()
510 msg.msg_iovlen = 1; in __msgwrite()
511 msg.msg_name = NULL; in __msgwrite()
512 msg.msg_namelen = 0; in __msgwrite()
513 msg.msg_control = cmsg; in __msgwrite()
514 msg.msg_controllen = CMSG_ALIGN(cmsg->cmsg_len); in __msgwrite()
515 msg.msg_flags = 0; in __msgwrite()
518 len = __sendmsg (sock, &msg, 0); in __msgwrite()