Return to telldir.c CVS log | Up to [DVB] / dietlibc / lib |
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; }