Add Android items from "sys/system_properties.h":

* __system_property_set
 * __system_property_get
 * PROP_VALUE_MAX
This commit is contained in:
Guillaume Gomez 2021-04-08 17:13:27 +02:00
parent 3b185efb5a
commit bea9e0575d
1 changed files with 6 additions and 0 deletions

View File

@ -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! {