Lines Matching refs:wnleft
152 shf->wnleft = 0; /* force call to shf_emptybuf() */ in shf_fdopen()
179 shf->wnleft = 0; /* force call to shf_emptybuf() */ in shf_reopen()
220 shf->wnleft = bsize - 1; /* space for a '\0' */ in shf_sopen()
260 shf->wnleft = 0; in shf_fdclose()
279 shf->wnleft++; in shf_sclose()
361 shf->wnleft += shf->wbsize; in shf_emptybuf()
377 shf->wnleft = 0; in shf_emptybuf()
394 shf->wnleft = 0; in shf_emptybuf()
400 shf->wnleft = shf->wbsize; in shf_emptybuf()
634 if (shf->wnleft == 0 && shf_emptybuf(shf, EB_GROW) == -1) in shf_putchar()
636 shf->wnleft--; in shf_putchar()
670 if ((ncopy = shf->wnleft) && in shf_write()
671 (shf->wp != shf->buf || nbytes < shf->wnleft)) { in shf_write()
678 shf->wnleft -= ncopy; in shf_write()
683 while (nbytes > shf->wnleft) in shf_write()
705 shf->wnleft = 0; in shf_write()
722 shf->wnleft -= nbytes; in shf_write()