2 #include "stdio_impl.h"
10 int __fsetlocking(FILE *f, int type)
15 int __fwriting(FILE *f)
17 return (f->flags & F_NORD) || f->wend;
20 int __freading(FILE *f)
22 return (f->flags & F_NOWR) || f->rend;
25 int __freadable(FILE *f)
27 return !(f->flags & F_NORD);
30 int __fwritable(FILE *f)
32 return !(f->flags & F_NOWR);
40 size_t __fbufsize(FILE *f)
45 size_t __fpending(FILE *f)
47 return f->wend ? f->wpos - f->wbase : 0;
52 f->wpos = f->wbase = f->wend = 0;
53 f->rpos = f->rend = 0;
57 weak_alias(__fpurge, fpurge);