Lines Matching refs:len

235 xdrrec_getbytes(XDR *xdrs, caddr_t addr, int32_t len)
241 while (len > 0) {
251 current = (len < current) ? len : current;
256 len -= current;
262 xdrrec_putbytes(XDR *xdrs, caddr_t addr, int32_t len)
267 while (len > 0) {
269 current = (len < current) ? len : current;
273 len -= current;
343 xdrrec_inline(XDR *xdrs, int len)
351 if ((rstrm->out_finger + len) <= rstrm->out_boundry) {
353 rstrm->out_finger += len;
358 if ((len <= rstrm->fbtbc) &&
359 ((rstrm->in_finger + len) <= rstrm->in_boundry)) {
361 rstrm->fbtbc -= len;
362 rstrm->in_finger += len;
438 ptrdiff_t len; /* fragment length */
446 len = (ptrdiff_t)rstrm->out_finger - (ptrdiff_t)rstrm->frag_header;
447 len -= sizeof (uint32_t);
448 *(rstrm->frag_header) = htonl((uint32_t)len | LAST_FRAG);
462 ptrdiff_t len;
464 len = (ptrdiff_t)rstrm->out_finger - (ptrdiff_t)rstrm->frag_header;
465 len -= sizeof (uint32_t);
467 *(rstrm->frag_header) = htonl(len | eormask);
468 len = rstrm->out_finger - rstrm->out_base;
469 if ((*(rstrm->writeit))(rstrm->tcp_handle, rstrm->out_base, (int)len)
470 != (int)len)
483 int len;
488 len = (frag_len < (rstrm->in_size - i)) ? frag_len :
491 printf("fill_input_buf: len = %d\n", len);
493 if ((len = (*(rstrm->readit))(rstrm->tcp_handle, where, len)) == -1)
496 where += len;
502 get_input_bytes(RECSTREAM *rstrm, caddr_t addr, int frag_len, int len)
506 while (len > 0) {
509 printf("get_input_bytes: len = %d, frag_len = %d, current %d\n",
510 len, frag_len, current);
517 frag_len = len;
525 current = (len < current) ? len : current;
529 len -= current;