1 #include "stdio_impl.h"
3 off_t __ftello_unlocked(FILE *f)
5 off_t pos = f->seek(f, 0, SEEK_CUR);
6 if (pos < 0) return pos;
8 /* Adjust for data in buffer. */
9 return pos - (f->rend - f->rpos) + (f->wpos - f->wbase);
12 off_t __ftello(FILE *f)
16 pos = __ftello_unlocked(f);
23 off_t pos = __ftello(f);
31 weak_alias(__ftello, ftello);