Lines Matching refs:controllen
841 socklen_t controllen; in recvit() local
855 controllen = msg->msg_controllen; in recvit()
884 if (controllen != 0 && in recvit()
885 (msg->msg_controllen > controllen || control == NULL)) { in recvit()
887 msg->msg_controllen, controllen, control)); in recvit()
902 if (controllen != 0) { in recvit()
908 controllen &= ~((int)sizeof (uint32_t) - 1); in recvit()
910 error = copyout_arg(control, controllen, controllenp, in recvit()
915 if (msg->msg_controllen > controllen || control == NULL) { in recvit()
917 controllen = 0; in recvit()
919 !(flags & MSG_XPG4_2), controllen); in recvit()
1141 socklen_t controllen; in sendit() local
1174 controllen = msg->msg_controllen; in sendit()
1175 if ((control != NULL) && (controllen != 0)) { in sendit()
1180 if (controllen > SO_MAXARGSIZE) { in sendit()
1184 control = kmem_alloc(controllen, KM_SLEEP); in sendit()
1187 if (copyin(msg->msg_control, control, controllen)) { in sendit()
1194 msg->msg_controllen = controllen = 0; in sendit()
1203 kmem_free(control, controllen); in sendit()