Lines Matching defs:dirlen
2191 int dirlen;
2364 * dirlen is the size of the reply, including all XDR and must
2367 * (Include the two booleans at the end of the reply in dirlen now.)
2373 dirlen = NFSX_V3POSTOPATTR + NFSX_VERF + 2 * NFSX_UNSIGNED;
2375 dirlen = 2 * NFSX_UNSIGNED;
2384 dirlen += (6*NFSX_UNSIGNED + NFSM_RNDUP(nlen));
2386 dirlen += (4*NFSX_UNSIGNED + NFSM_RNDUP(nlen));
2387 if (dirlen > cnt) {
2448 int dirlen;
2719 * dirlen is the reply length in bytes and cannot exceed cnt.
2720 * (Include the two booleans at the end of the reply in dirlen now,
2724 dirlen = NFSX_V3POSTOPATTR + NFSX_VERF + 2 * NFSX_UNSIGNED;
2727 dirlen = NFSX_VERF + 2 * NFSX_UNSIGNED;
2742 while (cpos < cend && ncookies > 0 && dirlen < cnt) {
2932 dirlen += nfsm_strtom(nd, dp->d_name, nlen);
2936 dirlen += nfsm_fhtom(NULL, nd, (u_int8_t *)&nfh,
2938 dirlen += (5*NFSX_UNSIGNED+NFSX_V3POSTOPATTR);
2945 dirlen += nfsm_strtom(nd, dp->d_name, nlen);
2982 dirlen += nfsrv_putreferralattr(nd,
2993 dirlen += nfsvno_fillattr(nd, new_mp,
3001 dirlen += nfsvno_fillattr(nd, new_mp,
3011 dirlen += (3 * NFSX_UNSIGNED);
3015 if (dirlen <= cnt)
3028 * If dirlen > cnt, we must strip off the last entry. If that
3031 if (dirlen > cnt || nd->nd_repstat) {