Lines Matching refs:resid
1333 sosendcheck(struct socket *so, struct sockaddr *addr, long resid, long clen,
1381 !(resid == 0 && clen != 0))
1391 if ((atomic && resid > so->so_snd.sb_hiwat) ||
1394 if (space < resid + clen &&
1477 register long space, len, resid;
1485 resid = uio_resid(uio);
1487 resid = top->m_pkthdr.len;
1489 KERNEL_DEBUG((DBG_FNC_SOSEND | DBG_FUNC_START), so, resid,
1500 * In theory resid should be unsigned.
1503 * of space and resid. On the other hand, a negative resid
1509 if (resid < 0 || (so->so_type == SOCK_STREAM && (flags & MSG_EOR))) {
1524 error = sosendcheck(so, addr, resid, clen, atomic, flags,
1542 resid = 0;
1550 bytes_to_copy = min(resid, space);
1697 resid = uio_resid(uio);
1705 if (resid <= 0) {
1710 bytes_to_copy = min(resid, space);
1714 resid < MINCLSIZE));
1755 (resid <= 0)) ?
1758 (resid > 0 && space > 0) ? PRUS_MORETOCOME : 0;
1835 } while (resid && space > 0);
1836 } while (resid);
1851 KERNEL_DEBUG(DBG_FNC_SOSEND | DBG_FUNC_END, so, resid, so->so_snd.sb_cc,
2047 * receive operation at once if we block (resid <= hiwat).
2049 * If MSG_WAITALL is set but resid is larger than the receive buffer,
2689 int *resid)
2707 *resid = 0;