Skip to content

Commit 847f717

Browse files
committed
Auto merge of #2618 - devnexen:linux_gnu_malloc_trim, r=Amanieu
linux GLIBC add malloc_trim fn.
2 parents 1f1ebd5 + 95e74dd commit 847f717

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libc-test/semver/linux-gnu.txt

+1
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ lio_listio
595595
mallinfo
596596
mallinfo2
597597
malloc_info
598+
malloc_trim
598599
malloc_usable_size
599600
mallopt
600601
nl_mmap_hdr

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

+1
Original file line numberDiff line numberDiff line change
@@ -1431,6 +1431,7 @@ extern "C" {
14311431
extra_info: *mut *mut ::c_void,
14321432
flags: ::c_int,
14331433
) -> ::c_int;
1434+
pub fn malloc_trim(__pad: ::size_t) -> ::c_int;
14341435
}
14351436

14361437
cfg_if! {

0 commit comments

Comments
 (0)