source: trunk/sys/dietlibc/ftello.c @ 335

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

First import

File size: 284 bytes
RevLine 
[1]1#include "dietstdio.h"
2#include <unistd.h>
3
4off_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
10off_t ftello(FILE *stream) __attribute__((weak,alias("ftello_unlocked")));
Note: See TracBrowser for help on using the repository browser.