File tree 7 files changed +45
-2
lines changed
7 files changed +45
-2
lines changed Original file line number Diff line number Diff line change @@ -101,8 +101,6 @@ pub type ssize_t = isize;
101
101
102
102
pub enum FILE { }
103
103
pub enum fpos_t { }
104
- pub enum DIR { }
105
- pub enum dirent { }
106
104
107
105
extern {
108
106
pub fn isalnum ( c : c_int ) -> c_int ;
Original file line number Diff line number Diff line change 83
83
pub st_qspare: [ :: int64_t; 2 ] ,
84
84
}
85
85
86
+ pub struct dirent {
87
+ pub d_ino: u64 ,
88
+ pub d_seekoff: u64 ,
89
+ pub d_reclen: u16 ,
90
+ pub d_namlen: u16 ,
91
+ pub d_type: u8 ,
92
+ pub d_name: [ :: c_char; 1024 ] ,
93
+ }
86
94
87
95
pub struct pthread_mutex_t {
88
96
__sig: :: c_long,
89
97
__opaque: [ u8 ; __PTHREAD_MUTEX_SIZE__] ,
90
98
}
99
+
91
100
pub struct pthread_mutexattr_t {
92
101
__sig: :: c_long,
93
102
__opaque: [ u8 ; 8 ] ,
Original file line number Diff line number Diff line change @@ -16,6 +16,14 @@ pub type pthread_key_t = ::c_int;
16
16
pub enum timezone { }
17
17
18
18
s ! {
19
+ pub struct dirent {
20
+ pub d_fileno: u32 ,
21
+ pub d_reclen: u16 ,
22
+ pub d_type: u8 ,
23
+ pub d_namelen: u8 ,
24
+ pub d_name: [ :: c_char; 256 ] ,
25
+ }
26
+
19
27
pub struct glob_t {
20
28
pub gl_pathc: :: size_t,
21
29
__unused1: :: size_t,
Original file line number Diff line number Diff line change @@ -22,6 +22,16 @@ pub type rlim_t = u64;
22
22
pub enum timezone { }
23
23
24
24
s ! {
25
+ pub struct dirent {
26
+ pub d_fileno: :: ino_t,
27
+ pub d_off: :: off_t,
28
+ pub d_reclen: u16 ,
29
+ pub d_type: u8 ,
30
+ pub d_namelen: u8 ,
31
+ __d_padding: [ u8 ; 4 ] ,
32
+ pub d_name: [ :: c_char; 256 ] ,
33
+ }
34
+
25
35
pub struct siginfo_t {
26
36
pub si_signo: :: c_int,
27
37
pub si_code: :: c_int,
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ pub type in_addr_t = u32;
10
10
pub type in_port_t = u16 ;
11
11
pub type sighandler_t = :: size_t ;
12
12
13
+ pub enum DIR { }
14
+
13
15
s ! {
14
16
pub struct utimbuf {
15
17
pub actime: time_t,
Original file line number Diff line number Diff line change 43
43
pub st_ino: :: c_ulonglong,
44
44
}
45
45
46
+ pub struct dirent {
47
+ pub d_ino: u64 ,
48
+ pub d_off: i64 ,
49
+ pub d_reclen: :: c_ushort,
50
+ pub d_type: :: c_uchar,
51
+ pub d_name: [ :: c_char; 256 ] ,
52
+ }
53
+
46
54
pub struct pthread_attr_t {
47
55
pub flags: :: uint32_t,
48
56
pub stack_base: * mut :: c_void,
Original file line number Diff line number Diff line change @@ -7,6 +7,14 @@ pub type pthread_t = c_ulong;
7
7
pub type mode_t = u32 ;
8
8
9
9
s ! {
10
+ pub struct dirent {
11
+ pub d_ino: :: ino_t,
12
+ pub d_off: :: off_t,
13
+ pub d_reclen: :: c_ushort,
14
+ pub d_type: :: c_uchar,
15
+ pub d_name: [ :: c_char; 256 ] ,
16
+ }
17
+
10
18
pub struct glob_t {
11
19
pub gl_pathc: :: size_t,
12
20
pub gl_pathv: * mut * mut c_char,
You can’t perform that action at this time.
0 commit comments