Skip to content

Commit 0ae17dc

Browse files
committed
Auto merge of #2420 - devnexen:fbsd_hexdump, r=JohnTitor
freebsd add humanize_number/hexdump fn.
2 parents 7dfced3 + 55b913c commit 0ae17dc

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

libc-test/semver/freebsd.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,8 @@ getutxuser
14911491
glob
14921492
glob_t
14931493
globfree
1494+
hexdump
1495+
humanize_number
14941496
iconv
14951497
iconv_close
14961498
iconv_open

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,6 +1936,16 @@ extern "C" {
19361936
pub fn kld_load(name: *const ::c_char) -> ::c_int;
19371937

19381938
pub fn kinfo_getvmmap(pid: ::pid_t, cntp: *mut ::c_int) -> *mut kinfo_vmentry;
1939+
1940+
pub fn hexdump(ptr: *const ::c_void, length: ::c_int, hdr: *const ::c_char, flags: ::c_int);
1941+
pub fn humanize_number(
1942+
buf: *mut ::c_char,
1943+
len: ::size_t,
1944+
number: i64,
1945+
suffix: *const ::c_char,
1946+
scale: ::c_int,
1947+
flags: ::c_int,
1948+
) -> ::c_int;
19391949
}
19401950

19411951
#[link(name = "procstat")]

0 commit comments

Comments
 (0)