1 #include "stdio_impl.h"
3 void __shlim(FILE *, off_t);
6 static inline off_t shcnt(FILE *f)
8 return f->shcnt + (f->rpos - f->rend);
11 static inline void shlim(FILE *f, off_t lim)
16 static inline int shgetc(FILE *f)
18 if (f->rpos < f->shend) return *f->rpos++;
22 static inline void shunget(FILE *f)
24 if (f->rend) f->rpos--;