home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / libnix-0.8-src.lha / libnix-0.8 / sources / headers / dirent.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-12  |  588 b   |  34 lines

  1. #include <dos/exall.h>
  2. #include <dos/dosextens.h>
  3.  
  4. struct dirent {
  5.   ULONG d_fileno;
  6.   USHORT d_reclen;
  7.   USHORT d_namlen;
  8.   BYTE d_name[256];
  9. };
  10.  
  11. typedef struct _dirdesc {
  12.   int dd_fd;
  13.   struct dirent dd_ent;
  14.   BPTR d_lock;
  15.   ULONG d_count;
  16.   LONG d_more;
  17.   struct ExAllControl *d_eac;
  18.   struct ExAllData *current;
  19.   union {
  20.     char ead[2048];
  21.     struct FileInfoBlock fib;
  22.   } _dirun;
  23. } DIR;
  24.  
  25. #define d_ead _dirun.ead
  26. #define d_info _dirun.fib
  27.  
  28. /* prototypes */
  29.  
  30. DIR *opendir(const char *dirname);
  31. struct dirent *readdir(DIR *dirp);
  32. void rewinddir(DIR *dirp);
  33. int closedir(DIR *dirp);
  34.