Skip to content

Commit 55b913c

Browse files
committed
freebsd add humanize_number/hexdump fn.
1 parent 372a8c6 commit 55b913c

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
@@ -1926,6 +1926,16 @@ extern "C" {
19261926
pub fn kld_load(name: *const ::c_char) -> ::c_int;
19271927

19281928
pub fn kinfo_getvmmap(pid: ::pid_t, cntp: *mut ::c_int) -> *mut kinfo_vmentry;
1929+
1930+
pub fn hexdump(ptr: *const ::c_void, length: ::c_int, hdr: *const ::c_char, flags: ::c_int);
1931+
pub fn humanize_number(
1932+
buf: *mut ::c_char,
1933+
len: ::size_t,
1934+
number: i64,
1935+
suffix: *const ::c_char,
1936+
scale: ::c_int,
1937+
flags: ::c_int,
1938+
) -> ::c_int;
19291939
}
19301940

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

0 commit comments

Comments
 (0)