Lines Matching defs:dirlen
1577 int dirlen;
1738 * dirlen is the size of the reply, including all XDR and must
1741 * (Include the two booleans at the end of the reply in dirlen now.)
1747 dirlen = NFSX_V3POSTOPATTR + NFSX_VERF + 2 * NFSX_UNSIGNED;
1749 dirlen = 2 * NFSX_UNSIGNED;
1758 dirlen += (6*NFSX_UNSIGNED + NFSM_RNDUP(nlen));
1760 dirlen += (4*NFSX_UNSIGNED + NFSM_RNDUP(nlen));
1761 if (dirlen > cnt) {
1821 int dirlen;
2057 * dirlen is the reply length in bytes and cannot exceed cnt.
2058 * (Include the two booleans at the end of the reply in dirlen now,
2062 dirlen = NFSX_V3POSTOPATTR + NFSX_VERF + 2 * NFSX_UNSIGNED;
2065 dirlen = NFSX_VERF + 2 * NFSX_UNSIGNED;
2078 while (cpos < cend && ncookies > 0 && dirlen < cnt) {
2226 dirlen += nfsm_strtom(nd, dp->d_name, nlen);
2231 dirlen += nfsm_fhtom(nd,(u_int8_t *)&nfh,0,1);
2232 dirlen += (5*NFSX_UNSIGNED+NFSX_V3POSTOPATTR);
2240 dirlen += nfsm_strtom(nd, dp->d_name, nlen);
2248 dirlen += nfsrv_putreferralattr(nd,
2259 dirlen += nfsvno_fillattr(nd, new_mp,
2265 dirlen += nfsvno_fillattr(nd, new_mp,
2273 dirlen += (3 * NFSX_UNSIGNED);
2277 if (dirlen <= cnt)
2289 * If dirlen > cnt, we must strip off the last entry. If that
2292 if (dirlen > cnt || nd->nd_repstat) {