add a missing section header table index conversion
[tangerine.git] / compiler / clib / seekdir.c
blobcaaaf39c4db1aa5c245f12d037f3e2944ee50cd3
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <dos/dos.h>
7 #include <proto/dos.h>
8 #include "__open.h"
9 #include <dirent.h>
11 void seekdir(DIR *dir, off_t offset)
13 int pos = offset;
14 fdesc *desc = __getfdesc(dir->fd);
15 if (!desc)
16 return;
18 if (!ExamineFH(desc->fh, dir->priv))
19 return;
21 if (offset > 1)
22 for
24 pos = 2;
25 (pos <= offset) && ExNext(desc->fh, dir->priv);
26 pos++
28 dir->pos = pos;