Add Android items from "sys/system_properties.h":
* __system_property_set * __system_property_get * PROP_VALUE_MAX
This commit is contained in:
parent
3b185efb5a
commit
bea9e0575d
|
@ -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! {
|
||||
|
|
Loading…
Reference in New Issue