From 82188828e98de0d509dd43a367bd02cefb425eea Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Wed, 17 Jan 2018 18:13:19 +0100 Subject: [PATCH] Adds Linux's malloc_usable_size. Closes #900 . --- src/unix/notbsd/linux/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs index 75258857..b737717d 100644 --- a/src/unix/notbsd/linux/mod.rs +++ b/src/unix/notbsd/linux/mod.rs @@ -1482,7 +1482,7 @@ extern { nbytes: ::off64_t, flags: ::c_uint) -> ::c_int; pub fn getifaddrs(ifap: *mut *mut ::ifaddrs) -> ::c_int; pub fn freeifaddrs(ifa: *mut ::ifaddrs); - + pub fn malloc_usable_size(ptr: *const ::c_void) -> ::size_t; pub fn mremap(addr: *mut ::c_void, len: ::size_t, new_len: ::size_t,