char * gFilename;
-#ifdef DISABLED
-static char * deviceDirectory;
-#endif
-
extern int ram_debug_sarld; // in load.c
#define DCACHE 1
return (nb);
}
-#ifdef DISABLED
/*==========================================================================
*
*
free((void *)dirp);
return 0;
}
-#endif /* DISABLED */
/*==========================================================================
* get next entry in a directory.
#if DCACHE
cacheFlush(dcache);
#endif
-
-#ifdef DISABLED
- deviceDirectory = NULL;
-#endif /* DISABLED */
}
-
/***************************************************************************
*
* Network functions.
io->i_error = 0;
}
-
/***************************************************************************
*
* Dispatch functions.
struct dirstuff *
opendir(char * path)
{
- error("Unsupported function: opendir\n");
- return 0;
+ return disk_opendir(path);
}
/*==========================================================================
int
closedir(struct dirstuff * dirp)
{
- error("Unsupported function: closedir\n");
- return 0;
+ return disk_closedir(dirp);
}
/*==========================================================================
struct direct *
readdir(struct dirstuff * dirp)
{
- error("Unsupported function: readdir\n");
- return NULL;
+ return disk_readdir(dirp);
}
/*==========================================================================
#if CHECK_CAREFULLY /* iob[] is in BSS, so it is guaranteed to be zero. */
if (open_init == 0) {
+ int i;
for (i = 0; i < NFILES; i++)
iob[i].i_flgs = 0;
open_init = 1;