Skip to content

Commit

Permalink
Auto merge of #3253 - devnexen:dflybsd_malloc_usable_size, r=JohnTitor
Browse files Browse the repository at this point in the history
dragonflybsd supports malloc_usable_size too
  • Loading branch information
bors committed Jun 1, 2023
2 parents 972b91c + e1d239f commit afce856
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions libc-test/semver/dragonfly.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,7 @@ lutimes
lwp_rtprio
lwpid_t
madvise
malloc_usable_size
mcontext_t
memmem
memrchr
Expand Down
1 change: 0 additions & 1 deletion src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5273,7 +5273,6 @@ extern "C" {
pub fn fls(value: ::c_int) -> ::c_int;
pub fn flsl(value: ::c_long) -> ::c_int;
pub fn flsll(value: ::c_longlong) -> ::c_int;
pub fn malloc_usable_size(ptr: *const ::c_void) -> ::size_t;
pub fn malloc_stats_print(
write_cb: unsafe extern "C" fn(*mut ::c_void, *const ::c_char),
cbopaque: *mut ::c_void,
Expand Down
1 change: 1 addition & 0 deletions src/unix/bsd/freebsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1571,6 +1571,7 @@ extern "C" {
mode: ::mode_t,
dev: dev_t,
) -> ::c_int;
pub fn malloc_usable_size(ptr: *const ::c_void) -> ::size_t;
pub fn mincore(addr: *const ::c_void, len: ::size_t, vec: *mut ::c_char) -> ::c_int;
pub fn newlocale(mask: ::c_int, locale: *const ::c_char, base: ::locale_t) -> ::locale_t;
pub fn nl_langinfo_l(item: ::nl_item, locale: ::locale_t) -> *mut ::c_char;
Expand Down

0 comments on commit afce856

Please sign in to comment.