win32/dir.h


DEFINITIONS

This source file includes following functions.


   1  #ifdef __BORLANDC__
   2  #  ifndef WIN32_DIR_H_
   3  #    define WIN32_DIR_H_
   4  #    include <sys/types.h>
   5  #  endif
   6  #endif
   7  
   8  struct direct
   9  {
  10      long d_namlen;
  11      ino_t d_ino;
  12      char d_name[256];
  13  };
  14  typedef struct {
  15      char *start;
  16      char *curr;
  17      long size;
  18      long nfiles;
  19      struct direct dirstr;
  20  } DIR;
  21  
  22  
  23  DIR*           rb_w32_opendir(const char*);
  24  struct direct* rb_w32_readdir(DIR *);
  25  long           rb_w32_telldir(DIR *);
  26  void           rb_w32_seekdir(DIR *, long);
  27  void           rb_w32_rewinddir(DIR *);
  28  void           rb_w32_closedir(DIR *);
  29  
  30  #define opendir   rb_w32_opendir
  31  #define readdir   rb_w32_readdir
  32  #define telldir   rb_w32_telldir
  33  #define seekdir   rb_w32_seekdir
  34  #define rewinddir rb_w32_rewinddir
  35  #define closedir  rb_w32_closedir