Adds Linux's malloc_usable_size.

Closes #900 .
This commit is contained in:
gnzlbg 2018-01-17 18:13:19 +01:00
parent bfd3bf34bb
commit 82188828e9

View File

@ -1482,7 +1482,7 @@ extern {
nbytes: ::off64_t, flags: ::c_uint) -> ::c_int; nbytes: ::off64_t, flags: ::c_uint) -> ::c_int;
pub fn getifaddrs(ifap: *mut *mut ::ifaddrs) -> ::c_int; pub fn getifaddrs(ifap: *mut *mut ::ifaddrs) -> ::c_int;
pub fn freeifaddrs(ifa: *mut ::ifaddrs); pub fn freeifaddrs(ifa: *mut ::ifaddrs);
pub fn malloc_usable_size(ptr: *const ::c_void) -> ::size_t;
pub fn mremap(addr: *mut ::c_void, pub fn mremap(addr: *mut ::c_void,
len: ::size_t, len: ::size_t,
new_len: ::size_t, new_len: ::size_t,