2001-05-30 19:02:54 -04:00
|
|
|
struct direct
|
|
|
|
{
|
|
|
|
long d_namlen;
|
|
|
|
ino_t d_ino;
|
|
|
|
char d_name[256];
|
|
|
|
};
|
|
|
|
typedef struct {
|
|
|
|
char *start;
|
|
|
|
char *curr;
|
|
|
|
long size;
|
|
|
|
long nfiles;
|
|
|
|
struct direct dirstr;
|
|
|
|
} DIR;
|
|
|
|
|
2002-05-29 06:22:19 -04:00
|
|
|
|
|
|
|
DIR* rb_w32_opendir(const char*);
|
|
|
|
struct direct* rb_w32_readdir(DIR *);
|
|
|
|
long rb_w32_telldir(DIR *);
|
|
|
|
void rb_w32_seekdir(DIR *, long);
|
|
|
|
void rb_w32_rewinddir(DIR *);
|
|
|
|
void rb_w32_closedir(DIR *);
|
|
|
|
|
|
|
|
#define opendir rb_w32_opendir
|
|
|
|
#define readdir rb_w32_readdir
|
|
|
|
#define telldir rb_w32_telldir
|
|
|
|
#define seekdir rb_w32_seekdir
|
|
|
|
#define rewinddir rb_w32_rewinddir
|
|
|
|
#define closedir rb_w32_closedir
|