Auto merge of #2142 - GuillaumeGomez:add-android-items, r=JohnTitor
Add Android items from "sys/system_properties.h" It adds the following items: * __system_property_set * __system_property_get * PROP_VALUE_MAX
This commit is contained in:
commit
b80b32b5df
|
@ -1438,6 +1438,7 @@ fn test_android(target: &str) {
|
|||
"sys/swap.h",
|
||||
"sys/syscall.h",
|
||||
"sys/sysinfo.h",
|
||||
"sys/system_properties.h",
|
||||
"sys/time.h",
|
||||
"sys/timerfd.h",
|
||||
"sys/times.h",
|
||||
|
|
|
@ -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