2 * Ullrich von Bassewitz, 2012-06-03. Based on code by Groepaz.
12 void __fastcall__ seekdir (register DIR* dir, long offs)
16 unsigned char buf[128];
18 /* Make sure we have a reasonable value for offs */
24 /* Close the directory file descriptor */
27 /* Reopen it using the old name */
28 dir->fd = open (dir->name, O_RDONLY);
34 /* Skip until we've reached the target offset in the directory */
38 /* Determine size of next chunk to read */
39 if (o > sizeof (buf)) {
48 if (!_dirread (dir, buf, count)) {