version is awfully slow.)
struct msblock *b;
unsigned int p = 0;
struct msblock *b;
unsigned int p = 0;
+ /* FIXME: Milan's quick hack to allow SEEK_END */
+ if (whence == SEEK_END)
+ {
+ for (b=m->first; b; b=b->next)
+ p += b->size;
+ pos += p;
+ p=0;
+ whence = SEEK_SET;
+ }
+ /* EOQH */
+
if (whence != SEEK_SET)
die("fbmem_seek: only SEEK_SET supported");
for (b=m->first; b; b=b->next)
if (whence != SEEK_SET)
die("fbmem_seek: only SEEK_SET supported");
for (b=m->first; b; b=b->next)