Auto merge of #2704 - devnexen:fbsd_libutil_upd, r=Amanieu

adding getlocalbase to freebsd 13
This commit is contained in:
bors 2022-03-02 22:28:56 +00:00
commit cd875d3072
3 changed files with 6 additions and 0 deletions

View file

@ -2344,6 +2344,9 @@ fn test_freebsd(target: &str) {
// Those were introduced in FreeBSD 12.
"flopen" | "flopenat" if Some(12) > freebsd_ver => true,
// Added in FreeBSD 13.
"getlocalbase" if Some(13) > freebsd_ver => true,
_ => false,
}
});

View file

@ -1525,6 +1525,7 @@ getifaddrs
getitimer
getline
getloadavg
getlocalbase
getnameinfo
getpagesize
getpagesizes

View file

@ -4326,6 +4326,8 @@ extern "C" {
pub fn flopen(path: *const ::c_char, flags: ::c_int, ...) -> ::c_int;
pub fn flopenat(fd: ::c_int, path: *const ::c_char, flags: ::c_int, ...) -> ::c_int;
pub fn getlocalbase() -> *const ::c_char;
}
#[link(name = "procstat")]