source:
trunk/sys/dietlibc/ftello.c
@
95
Last change on this file since 95 was 1, checked in by , 8 years ago | |
---|---|
File size: 284 bytes |
Rev | Line | |
---|---|---|
[1] | 1 | #include "dietstdio.h" |
2 | #include <unistd.h> | |
3 | ||
4 | off_t ftello_unlocked(FILE *stream) { | |
5 | off_t l; | |
6 | if (fflush_unlocked(stream)) return -1; | |
7 | return ((l=lseek(stream->fd,0,SEEK_CUR))==-1?-1:l-stream->ungotten); | |
8 | } | |
9 | ||
10 | off_t ftello(FILE *stream) __attribute__((weak,alias("ftello_unlocked"))); |
Note: See TracBrowser
for help on using the repository browser.