1 #include "stdio_impl.h"
5 off_t __ftello_unlocked(FILE *f)
7 off_t pos = f->seek(f, 0, SEEK_CUR);
8 if (pos < 0) return pos;
10 /* Adjust for data in buffer. */
11 return pos - (f->rend - f->rpos) + (f->wpos - f->wbase);
14 off_t __ftello(FILE *f)
18 pos = __ftello_unlocked(f);
25 off_t pos = __ftello(f);
33 weak_alias(__ftello, ftello);