| OLD | NEW |
| 1 #include "stdio_impl.h" | 1 #include "stdio_impl.h" |
| 2 #include <limits.h> | 2 #include <limits.h> |
| 3 #include <errno.h> | 3 #include <errno.h> |
| 4 | 4 |
| 5 off_t __ftello_unlocked(FILE *f) | 5 off_t __ftello_unlocked(FILE *f) |
| 6 { | 6 { |
| 7 off_t pos = f->seek(f, 0, | 7 off_t pos = f->seek(f, 0, |
| 8 (f->flags & F_APP) && f->wpos > f->wbase | 8 (f->flags & F_APP) && f->wpos > f->wbase |
| 9 ? SEEK_END : SEEK_CUR); | 9 ? SEEK_END : SEEK_CUR); |
| 10 if (pos < 0) return pos; | 10 if (pos < 0) return pos; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 off_t pos = __ftello(f); | 27 off_t pos = __ftello(f); |
| 28 if (pos > LONG_MAX) { | 28 if (pos > LONG_MAX) { |
| 29 errno = EOVERFLOW; | 29 errno = EOVERFLOW; |
| 30 return -1; | 30 return -1; |
| 31 } | 31 } |
| 32 return pos; | 32 return pos; |
| 33 } | 33 } |
| 34 | 34 |
| 35 weak_alias(__ftello, ftello); | 35 weak_alias(__ftello, ftello); |
| 36 | 36 |
| 37 LFS64(ftello); | 37 weak_alias(__ftello, ftello64); |
| OLD | NEW |