File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
src/unix/linux_like/android Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1438,6 +1438,7 @@ fn test_android(target: &str) {
1438
1438
"sys/swap.h" ,
1439
1439
"sys/syscall.h" ,
1440
1440
"sys/sysinfo.h" ,
1441
+ "sys/system_properties.h" ,
1441
1442
"sys/time.h" ,
1442
1443
"sys/timerfd.h" ,
1443
1444
"sys/times.h" ,
Original file line number Diff line number Diff line change @@ -2285,6 +2285,9 @@ pub const AF_VSOCK: ::c_int = 40;
2285
2285
pub const PF_NFC : :: c_int = AF_NFC ;
2286
2286
pub const PF_VSOCK : :: c_int = AF_VSOCK ;
2287
2287
2288
+ // sys/system_properties.h
2289
+ pub const PROP_VALUE_MAX : :: c_int = 92 ;
2290
+
2288
2291
f ! {
2289
2292
pub fn CMSG_NXTHDR ( mhdr: * const msghdr,
2290
2293
cmsg: * const cmsghdr) -> * mut cmsghdr {
@@ -2709,6 +2712,9 @@ extern "C" {
2709
2712
pub fn android_set_abort_message ( msg : * const :: c_char ) ;
2710
2713
2711
2714
pub fn gettid ( ) -> :: pid_t ;
2715
+
2716
+ pub fn __system_property_set ( __name : * const :: c_char , __value : * const :: c_char ) -> :: c_int ;
2717
+ pub fn __system_property_get ( __name : * const :: c_char , __value : * mut :: c_char ) -> :: c_int ;
2712
2718
}
2713
2719
2714
2720
cfg_if ! {
You can’t perform that action at this time.
0 commit comments