source: trunk/sys/dietlibc/fseeko.c @ 147

Last change on this file since 147 was 1, checked in by alain, 8 years ago

First import

File size: 378 bytes
Line 
1#include "dietstdio.h"
2#include <unistd.h>
3
4int 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
12int fseeko(FILE *stream, off_t offset, int whence) __attribute__((weak,alias("fseeko_unlocked")));
Note: See TracBrowser for help on using the repository browser.