Skip to content

Commit afce856

Browse files
committed
Auto merge of #3253 - devnexen:dflybsd_malloc_usable_size, r=JohnTitor
dragonflybsd supports malloc_usable_size too
2 parents 972b91c + e1d239f commit afce856

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

libc-test/semver/dragonfly.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,6 +1383,7 @@ lutimes
13831383
lwp_rtprio
13841384
lwpid_t
13851385
madvise
1386+
malloc_usable_size
13861387
mcontext_t
13871388
memmem
13881389
memrchr

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5273,7 +5273,6 @@ extern "C" {
52735273
pub fn fls(value: ::c_int) -> ::c_int;
52745274
pub fn flsl(value: ::c_long) -> ::c_int;
52755275
pub fn flsll(value: ::c_longlong) -> ::c_int;
5276-
pub fn malloc_usable_size(ptr: *const ::c_void) -> ::size_t;
52775276
pub fn malloc_stats_print(
52785277
write_cb: unsafe extern "C" fn(*mut ::c_void, *const ::c_char),
52795278
cbopaque: *mut ::c_void,

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,6 +1571,7 @@ extern "C" {
15711571
mode: ::mode_t,
15721572
dev: dev_t,
15731573
) -> ::c_int;
1574+
pub fn malloc_usable_size(ptr: *const ::c_void) -> ::size_t;
15741575
pub fn mincore(addr: *const ::c_void, len: ::size_t, vec: *mut ::c_char) -> ::c_int;
15751576
pub fn newlocale(mask: ::c_int, locale: *const ::c_char, base: ::locale_t) -> ::locale_t;
15761577
pub fn nl_langinfo_l(item: ::nl_item, locale: ::locale_t) -> *mut ::c_char;

0 commit comments

Comments
 (0)