3 void __shlim(FILE *f, off_t lim)
6 f->shcnt = f->rend - f->rpos;
7 if (lim && f->shcnt > lim)
8 f->shend = f->rpos + lim;
16 if (f->shlim && f->shcnt >= f->shlim || (c=__uflow(f)) < 0) {
20 if (f->shlim && f->rend - f->rpos > f->shlim - f->shcnt - 1)
21 f->shend = f->rpos + (f->shlim - f->shcnt - 1);
24 if (f->rend) f->shcnt += f->rend - f->rpos + 1;
25 if (f->rpos[-1] != c) f->rpos[-1] = c;