Skip to content

Commit 78d6835

Browse files
committed
Auto merge of #2777 - jjl:musl-malloc_usable_size, r=Amanieu
add malloc_usable_size for musl
2 parents 7b5afd2 + f5d7ab8 commit 78d6835

File tree

1 file changed

+1
-0
lines changed
  • src/unix/linux_like/linux/musl

1 file changed

+1
-0
lines changed

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,7 @@ extern "C" {
751751

752752
pub fn memfd_create(name: *const ::c_char, flags: ::c_uint) -> ::c_int;
753753
pub fn mlock2(addr: *const ::c_void, len: ::size_t, flags: ::c_uint) -> ::c_int;
754+
pub fn malloc_usable_size(ptr: *mut ::c_void) -> ::size_t;
754755
}
755756

756757
cfg_if! {

0 commit comments

Comments
 (0)