Ruby  1.9.3p547(2014-05-14revision45962)
dir.h
Go to the documentation of this file.
1 #ifndef RUBY_WIN32_DIR_H
2 #define RUBY_WIN32_DIR_H
3 
4 #ifdef __BORLANDC__
5 # ifndef WIN32_DIR_H_
6 # define WIN32_DIR_H_
7 # include <sys/types.h>
8 # endif
9 #endif
10 
11 struct direct
12 {
13  long d_namlen;
14  ino_t d_ino;
15  char *d_name;
16  char d_isdir; /* directory */
17  char d_isrep; /* reparse point */
18 };
19 typedef struct {
20  WCHAR *start;
21  WCHAR *curr;
22  long size;
23  long nfiles;
24  long loc; /* [0, nfiles) */
25  struct direct dirstr;
26  char *bits; /* used for d_isdir and d_isrep */
27 } DIR;
28 
29 
30 DIR* rb_w32_opendir(const char*);
31 DIR* rb_w32_uopendir(const char*);
32 struct direct* rb_w32_readdir(DIR *);
34 long rb_w32_telldir(DIR *);
35 void rb_w32_seekdir(DIR *, long);
36 void rb_w32_rewinddir(DIR *);
37 void rb_w32_closedir(DIR *);
38 
39 #define opendir rb_w32_opendir
40 #define readdir rb_w32_readdir
41 #define telldir rb_w32_telldir
42 #define seekdir rb_w32_seekdir
43 #define rewinddir rb_w32_rewinddir
44 #define closedir rb_w32_closedir
45 
46 #endif /* RUBY_WIN32_DIR_H */
long d_namlen
Definition: dir.h:13
Definition: dir.h:11
ino_t d_ino
Definition: dir.h:14
struct direct * rb_w32_readdir_with_enc(DIR *, rb_encoding *)
Definition: win32.c:1946
DIR * rb_w32_uopendir(const char *)
Definition: win32.c:1821
Definition: dir.h:19
DIR * rb_w32_opendir(const char *)
Definition: win32.c:1809
long rb_w32_telldir(DIR *)
Definition: win32.c:1959
long loc
Definition: dir.h:24
char * bits
Definition: dir.h:26
long nfiles
Definition: dir.h:23
WCHAR * start
Definition: dir.h:20
char d_isdir
Definition: dir.h:16
WCHAR * curr
Definition: dir.h:21
void rb_w32_closedir(DIR *)
Definition: win32.c:1994
long size
Definition: dir.h:22
void rb_w32_rewinddir(DIR *)
Definition: win32.c:1983
struct direct * rb_w32_readdir(DIR *)
Definition: win32.c:1940
void rb_w32_seekdir(DIR *, long)
Definition: win32.c:1969
char d_isrep
Definition: dir.h:17
char * d_name
Definition: dir.h:15