812: : (m->m_len - CMSG_SPACE(sizeof(int))) / sizeof(int) + 1;
813: fdv = (int *) CMSG_DATA(mtod(m,struct cmsghdr *));
814: for (i = 0; i < nfd; i++) {
827: while (control != NULL) {
828: cmsg = mtod(control, struct cmsghdr *);
829: if (control == uncopied)
858: for (m = control; m != NULL; ) {
859: cmsg = mtod(m, struct cmsghdr *);
860: i = m->m_len;
868: }
869: error = copyout(mtod(m, void *), q, i);
870: ktrkuser("msgcontrol", mtod(m, void *), i);
871: if (error != 0) {
1290: /* Maybe this ought to copy a chain ? */
1291: ktrkuser("sockname", mtod(addr, void *), len);
1292: error = copyout(mtod(addr, void *), asa, len);
1293: }
1421: m->m_len = buflen;
1422: error = copyin(bf, mtod(m, void *), buflen);
1423: if (error) {
1426: }
1427: ktrkuser("sockargs", mtod(m, void *), buflen);
1428: *mp = m;
1429: if (type == MT_SONAME) {
1430: sa = mtod(m, struct sockaddr *);
1431: #if BYTE_ORDER != BIG_ENDIAN