source:
trunk/sys/dietlibc/fseeko.c
@
127
Last change on this file since 127 was 1, checked in by , 8 years ago | |
---|---|
File size: 378 bytes |
Line | |
---|---|
1 | #include "dietstdio.h" |
2 | #include <unistd.h> |
3 | |
4 | int fseeko_unlocked(FILE *stream, off_t offset, int whence) { |
5 | fflush(stream); |
6 | stream->bm=0; stream->bs=0; |
7 | stream->flags&=~(ERRORINDICATOR|EOFINDICATOR); |
8 | stream->ungotten=0; |
9 | return lseek(stream->fd,offset,whence)!=-1?0:-1; |
10 | } |
11 | |
12 | int fseeko(FILE *stream, off_t offset, int whence) __attribute__((weak,alias("fseeko_unlocked"))); |
Note: See TracBrowser
for help on using the repository browser.