File:  [DVB] / dietlibc / libstdio / ftello64.c
Revision 1.7: download - view: text, annotated - select for diffs
Mon Jul 2 18:20:56 2007 UTC (16 years, 11 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
  fix some compiler warnings
  support long device major and minor

#include <dietstdio.h>
#include <unistd.h>
#include <sys/stat.h>

#ifndef __NO_STAT64
off64_t ftello64_unlocked(FILE *stream) {
  off64_t l;
  if (fflush_unlocked(stream)) return -1;
  return ((l=lseek64(stream->fd,0ull,SEEK_CUR))==-1?-1:l-stream->ungotten);
}

off64_t ftello64(FILE *stream) __attribute__((weak,alias("ftello64_unlocked")));
#endif

LinuxTV legacy CVS <linuxtv.org/cvs>