Lines Matching refs:resid
1362 sosendcheck(struct socket *so, struct sockaddr *addr, int32_t resid, int32_t clen,
1417 !(resid == 0 && clen != 0))
1427 if ((atomic && resid > so->so_snd.sb_hiwat) ||
1430 if ((space < resid + clen &&
1517 register int32_t space, len, resid;
1525 resid = uio_resid(uio);
1527 resid = top->m_pkthdr.len;
1529 KERNEL_DEBUG((DBG_FNC_SOSEND | DBG_FUNC_START), so, resid,
1542 * In theory resid should be unsigned.
1545 * of space and resid. On the other hand, a negative resid
1551 if (resid < 0 || (so->so_type == SOCK_STREAM && (flags & MSG_EOR))) {
1565 error = sosendcheck(so, addr, resid, clen, atomic, flags,
1579 resid = 0;
1587 bytes_to_copy = imin(resid, space);
1734 resid = uio_resid(uio);
1742 if (resid <= 0) {
1747 bytes_to_copy = min(resid, space);
1751 resid < MINCLSIZE));
1792 (resid <= 0)) ?
1795 (resid > 0 && space > 0) ? PRUS_MORETOCOME : 0;
1831 } while (resid && space > 0);
1832 } while (resid);
1847 KERNEL_DEBUG(DBG_FNC_SOSEND | DBG_FUNC_END, so, resid, so->so_snd.sb_cc,
2046 * receive operation at once if we block (resid <= hiwat).
2048 * If MSG_WAITALL is set but resid is larger than the receive buffer,
2721 int *resid)
2739 *resid = 0;