Lines Matching refs:wp
147 shf->rp = shf->wp = shf->buf; in shf_fdopen()
174 shf->rp = shf->wp = shf->buf; in shf_reopen()
214 shf->buf = shf->rp = shf->wp = (unsigned char *)buf; in shf_sopen()
354 shf->wp = nbuf + (shf->wp - shf->buf); in shf_emptybuf()
361 ssize_t n, ntowrite = shf->wp - shf->buf; in shf_emptybuf()
380 shf->wp = shf->buf + ntowrite; in shf_emptybuf()
388 shf->wp = shf->buf; in shf_emptybuf()
394 shf->wp = shf->buf; in shf_emptybuf()
610 *shf->wp++ = c; in shf_putchar()
643 (shf->wp != shf->buf || nbytes < shf->wnleft)) { in shf_write()
646 memcpy(shf->wp, buf, ncopy); in shf_write()
649 shf->wp += ncopy; in shf_write()
692 memcpy(shf->wp, buf, nbytes); in shf_write()
693 shf->wp += nbytes; in shf_write()