diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs index d64a365e..25fa462a 100644 --- a/src/unix/linux_like/android/mod.rs +++ b/src/unix/linux_like/android/mod.rs @@ -2285,6 +2285,9 @@ pub const AF_VSOCK: ::c_int = 40; pub const PF_NFC: ::c_int = AF_NFC; pub const PF_VSOCK: ::c_int = AF_VSOCK; +// sys/system_properties.h +pub const PROP_VALUE_MAX: ::c_int = 92; + f! { pub fn CMSG_NXTHDR(mhdr: *const msghdr, cmsg: *const cmsghdr) -> *mut cmsghdr { @@ -2709,6 +2712,9 @@ extern "C" { pub fn android_set_abort_message(msg: *const ::c_char); pub fn gettid() -> ::pid_t; + + pub fn __system_property_set(__name: *const ::c_char, __value: *const ::c_char) -> ::c_int; + pub fn __system_property_get(__name: *const ::c_char, __value: *mut ::c_char) -> ::c_int; } cfg_if! {