home *** CD-ROM | disk | FTP | other *** search
- #ifdef DOS
- #define rewinddir(dirp) seekdir(dirp, 0L)
-
- #define MAXNAMLEN 12
- #define _MAX_PATH 128
-
- struct direct
- {
- int d_ino; /* a bit of a farce */
- int d_reclen; /* more farce */
- int d_namlen; /* length of d_name */
- char d_name[MAXNAMLEN + 1]; /* guarantee null termination */
- };
-
- struct _dircontents
- {
- char * _d_entry;
- struct _dircontents *_d_next;
- };
-
- typedef struct _dirdesc
- {
- int dd_id; /* uniquely identify each open directory */
- long dd_loc; /* where we are in directory entry is this */
- struct _dircontents *dd_contents; /* pointer to contents of dir */
- struct _dircontents *dd_cp; /* pointer to current position */
- } DIR;
-
- extern void seekdir (DIR *, long);
- extern long telldir (DIR *);
- extern DIR *opendir (char *);
- extern void closedir (DIR *);
- extern struct direct *readdir (DIR *);
- #endif /* DOS */
-