File tree Expand file tree Collapse file tree 5 files changed +12
-0
lines changed Expand file tree Collapse file tree 5 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1586,6 +1586,8 @@ extern "C" {
1586
1586
) -> c_int ;
1587
1587
1588
1588
pub fn closefrom ( lowfd : c_int ) -> c_int ;
1589
+
1590
+ pub fn getdents ( fd : c_int , buf : * mut c_char , nbytes : c_int ) -> c_int ;
1589
1591
}
1590
1592
1591
1593
#[ link( name = "rt" ) ]
Original file line number Diff line number Diff line change @@ -4818,6 +4818,10 @@ cfg_if! {
4818
4818
}
4819
4819
}
4820
4820
4821
+ extern "C" {
4822
+ pub fn getdents ( fd : c_int , buf : * mut c_char , nbytes : usize ) -> isize ;
4823
+ }
4824
+
4821
4825
extern "C" {
4822
4826
#[ cfg_attr( doc, doc( alias = "__errno_location" ) ) ]
4823
4827
#[ cfg_attr( doc, doc( alias = "errno" ) ) ]
Original file line number Diff line number Diff line change @@ -2957,6 +2957,8 @@ extern "C" {
2957
2957
pub fn flags_to_string ( flags : c_ulong , def : * const c_char ) -> c_int ;
2958
2958
2959
2959
pub fn kinfo_getvmmap ( pid : crate :: pid_t , cntp : * mut size_t ) -> * mut kinfo_vmentry ;
2960
+
2961
+ pub fn getdents ( fd : c_int , buf : * mut c_char , nbytes : usize ) -> c_int ;
2960
2962
}
2961
2963
2962
2964
#[ link( name = "execinfo" ) ]
Original file line number Diff line number Diff line change @@ -2074,6 +2074,8 @@ extern "C" {
2074
2074
pub fn fstatfs ( fd : c_int , buf : * mut statfs ) -> c_int ;
2075
2075
pub fn getmntinfo ( mntbufp : * mut * mut crate :: statfs , flags : c_int ) -> c_int ;
2076
2076
pub fn getfsstat ( buf : * mut statfs , bufsize : size_t , flags : c_int ) -> c_int ;
2077
+
2078
+ pub fn getdents ( fd : c_int , buf : * mut c_void , nbytes : usize ) -> c_int ;
2077
2079
}
2078
2080
2079
2081
#[ link( name = "execinfo" ) ]
Original file line number Diff line number Diff line change @@ -4282,6 +4282,8 @@ extern "C" {
4282
4282
pub fn seekdir ( dirp : * mut crate :: DIR , loc : c_long ) ;
4283
4283
pub fn telldir ( dirp : * mut crate :: DIR ) -> c_long ;
4284
4284
4285
+ pub fn getdents64 ( fd : c_int , buf : * mut c_void , nbytes : usize ) -> isize ;
4286
+
4285
4287
pub fn dirfd ( dirp : * mut crate :: DIR ) -> c_int ;
4286
4288
4287
4289
#[ link_name = "__xpg_strerror_r" ]
You can’t perform that action at this time.
0 commit comments