Ruby
1.9.3p392(2013-02-22revision39386)
Main Page
Modules
Data Structures
Files
File List
Globals
win32
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
*);
33
struct
direct
*
rb_w32_readdir_with_enc
(
DIR
*,
rb_encoding
*);
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 */
47
Generated on Tue Feb 26 2013 08:43:08 for Ruby by
1.8.3