File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed
src/unix/linux_like/android Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1846,6 +1846,8 @@ fn test_android(target: &str) {
1846
1846
1847
1847
// FIXME: "'__uint128' undeclared" in C
1848
1848
"__uint128" => true ,
1849
+ // Added in API level 24
1850
+ "if_nameindex" => true ,
1849
1851
1850
1852
_ => false ,
1851
1853
}
@@ -2089,6 +2091,9 @@ fn test_android(target: &str) {
2089
2091
| "ispunct" | "isspace" | "isupper" | "isxdigit" | "isblank" | "tolower"
2090
2092
| "toupper" => true ,
2091
2093
2094
+ // Added in API level 24
2095
+ "if_nameindex" | "if_freenameindex" => true ,
2096
+
2092
2097
_ => false ,
2093
2098
}
2094
2099
} ) ;
Original file line number Diff line number Diff line change @@ -3379,7 +3379,9 @@ group
3379
3379
hostent
3380
3380
id_t
3381
3381
idtype_t
3382
+ if_freenameindex
3382
3383
if_indextoname
3384
+ if_nameindex
3383
3385
if_nametoindex
3384
3386
ifaddrs
3385
3387
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 ! {
@@ -4084,6 +4089,9 @@ extern "C" {
4084
4089
newpath : * const c_char ,
4085
4090
flags : c_uint ,
4086
4091
) -> c_int ;
4092
+
4093
+ pub fn if_nameindex ( ) -> * mut if_nameindex ;
4094
+ pub fn if_freenameindex ( ptr : * mut if_nameindex ) ;
4087
4095
}
4088
4096
4089
4097
cfg_if ! {
You can’t perform that action at this time.
0 commit comments