File tree Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -1676,8 +1676,7 @@ cfg_if! {
1676
1676
}
1677
1677
impl Eq for semun { }
1678
1678
impl :: fmt:: Debug for semun {
1679
- fn fmt( & self , f: & mut :: fmt:: Formatter )
1680
- -> :: fmt:: Result {
1679
+ fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
1681
1680
f. debug_struct( "semun" )
1682
1681
. field( "val" , unsafe { & self . val } )
1683
1682
. finish( )
Original file line number Diff line number Diff line change @@ -2893,6 +2893,9 @@ extern "C" {
2893
2893
ntargets : :: size_t ,
2894
2894
hint : * const :: c_void ,
2895
2895
) -> :: c_int ;
2896
+
2897
+ pub fn getmntinfo ( mntbufp : * mut * mut :: statvfs , flags : :: c_int ) -> :: c_int ;
2898
+ pub fn getvfsstat ( buf : * mut statvfs , bufsize : :: size_t , flags : :: c_int ) -> :: c_int ;
2896
2899
}
2897
2900
2898
2901
#[ link( name = "rt" ) ]
@@ -3118,11 +3121,6 @@ extern "C" {
3118
3121
) -> :: c_int ;
3119
3122
}
3120
3123
3121
- extern "C" {
3122
- pub fn getmntinfo ( mntbufp : * mut * mut :: statvfs , flags : :: c_int ) -> :: c_int ;
3123
- pub fn getvfsstat ( buf : * mut statvfs , bufsize : :: size_t , flags : :: c_int ) -> :: c_int ;
3124
- }
3125
-
3126
3124
cfg_if ! {
3127
3125
if #[ cfg( target_arch = "aarch64" ) ] {
3128
3126
mod aarch64;
Original file line number Diff line number Diff line change @@ -2166,6 +2166,11 @@ extern "C" {
2166
2166
pub fn mimmutable ( addr : * mut :: c_void , len : :: size_t ) -> :: c_int ;
2167
2167
2168
2168
pub fn reboot ( mode : :: c_int ) -> :: c_int ;
2169
+
2170
+ pub fn statfs ( path : * const :: c_char , buf : * mut statfs ) -> :: c_int ;
2171
+ pub fn fstatfs ( fd : :: c_int , buf : * mut statfs ) -> :: c_int ;
2172
+ pub fn getmntinfo ( mntbufp : * mut * mut :: statfs , flags : :: c_int ) -> :: c_int ;
2173
+ pub fn getfsstat ( buf : * mut statfs , bufsize : :: size_t , flags : :: c_int ) -> :: c_int ;
2169
2174
}
2170
2175
2171
2176
#[ link( name = "execinfo" ) ]
@@ -2184,13 +2189,6 @@ extern "C" {
2184
2189
) -> * mut * mut :: c_char ;
2185
2190
}
2186
2191
2187
- extern "C" {
2188
- pub fn statfs ( path : * const :: c_char , buf : * mut statfs ) -> :: c_int ;
2189
- pub fn fstatfs ( fd : :: c_int , buf : * mut statfs ) -> :: c_int ;
2190
- pub fn getmntinfo ( mntbufp : * mut * mut :: statfs , flags : :: c_int ) -> :: c_int ;
2191
- pub fn getfsstat ( buf : * mut statfs , bufsize : :: size_t , flags : :: c_int ) -> :: c_int ;
2192
- }
2193
-
2194
2192
cfg_if ! {
2195
2193
if #[ cfg( target_arch = "aarch64" ) ] {
2196
2194
mod aarch64;
You can’t perform that action at this time.
0 commit comments