File tree 3 files changed +15
-0
lines changed
src/unix/linux_like/android
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1847,6 +1847,8 @@ fn test_android(target: &str) {
1847
1847
1848
1848
// FIXME(android): "'__uint128' undeclared" in C
1849
1849
"__uint128" => true ,
1850
+ // Added in API level 24
1851
+ "if_nameindex" => true ,
1850
1852
1851
1853
_ => false ,
1852
1854
}
@@ -2093,6 +2095,9 @@ fn test_android(target: &str) {
2093
2095
| "ispunct" | "isspace" | "isupper" | "isxdigit" | "isblank" | "tolower"
2094
2096
| "toupper" => true ,
2095
2097
2098
+ // Added in API level 24
2099
+ "if_nameindex" | "if_freenameindex" => true ,
2100
+
2096
2101
_ => false ,
2097
2102
}
2098
2103
} ) ;
Original file line number Diff line number Diff line change @@ -3382,7 +3382,9 @@ group
3382
3382
hostent
3383
3383
id_t
3384
3384
idtype_t
3385
+ if_freenameindex
3385
3386
if_indextoname
3387
+ if_nameindex
3386
3388
if_nametoindex
3387
3389
ifaddrs
3388
3390
ifconf
Original file line number Diff line number Diff line change @@ -517,6 +517,11 @@ s! {
517
517
pub ifr6_prefixlen: u32 ,
518
518
pub ifr6_ifindex: c_int,
519
519
}
520
+
521
+ pub struct if_nameindex {
522
+ pub if_index: c_uint,
523
+ pub if_name: * mut c_char,
524
+ }
520
525
}
521
526
522
527
s_no_extra_traits ! {
@@ -4094,6 +4099,9 @@ extern "C" {
4094
4099
newpath : * const c_char ,
4095
4100
flags : c_uint ,
4096
4101
) -> c_int ;
4102
+
4103
+ pub fn if_nameindex ( ) -> * mut if_nameindex ;
4104
+ pub fn if_freenameindex ( ptr : * mut if_nameindex ) ;
4097
4105
}
4098
4106
4099
4107
cfg_if ! {
You can’t perform that action at this time.
0 commit comments