home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / fileutil / sed.lzh / SED / DIR.H < prev    next >
C/C++ Source or Header  |  1991-08-16  |  702b  |  40 lines

  1. /*
  2.  *
  3.  * BSD-like directory searching for Manx C
  4.  * Edwin Hoogerbeets 1989
  5.  *
  6.  */
  7.  
  8. #include <libraries/dosextens.h>
  9.  
  10. #define MAXNAMELEN 31
  11.  
  12. struct direct {
  13.   ULONG  d_ino;
  14.   USHORT d_reclen;
  15.   USHORT d_namlen;
  16.   char   d_name[MAXNAMELEN + 1];
  17. };
  18.  
  19. #if 0
  20. typedef struct FileInfoBlock
  21.   dirent;
  22.  
  23. #define d_name fib_FileName
  24.  
  25. #endif
  26.  
  27. typedef struct DIR {
  28.   struct FileLock *lock;      /* lock on the directory */
  29.   char name[MAXNAMELEN+1];    /* name of the directory */
  30.   struct FileInfoBlock *fib;  /* pointer to temporary space for searching */
  31.   long loc;                   /* current location of the search */
  32. } DIR;
  33.  
  34. extern DIR *opendir();
  35. extern struct direct *readdir();
  36. extern void closedir();
  37.  
  38.  
  39.  
  40.