File:  [DVB] / dietlibc / lib / telldir.c
Revision 1.4: download - view: text, annotated - select for diffs
Tue Apr 4 03:47:21 2006 UTC (18 years, 2 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
  fix telldir, seekdir (Gernot Tenchio)
  also add -lc after -lgcc for gcc 4.1 on arm (Enrico Scholz)

#include "dietdirent.h"
#include <unistd.h>
#include <dirent.h>

off_t telldir(DIR *d) {
  off_t result = 0;
  if (lseek(d->fd,0,SEEK_CUR))
    result=((struct dirent*)(d->buf+d->cur))->d_off;
  return result;
}

LinuxTV legacy CVS <linuxtv.org/cvs>