Skip to content

Commit

Permalink
Auto merge of #3394 - devnexen:dflybsd_getmntinfo, r=JohnTitor
Browse files Browse the repository at this point in the history
adding getmntinfo/getmntvinfo for DragonFlyBSD.

close #3392
  • Loading branch information
bors committed Oct 27, 2023
2 parents 27ce4ff + 03f74bf commit 4883c82
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc-test/semver/dragonfly.txt
Expand Up @@ -1320,6 +1320,8 @@ getitimer
getlastlogx
getline
getloadavg
getmntinfo
getmntvinfo
getnameinfo
getopt_long
getpeereid
Expand Down
6 changes: 6 additions & 0 deletions src/unix/bsd/freebsdlike/dragonfly/mod.rs
Expand Up @@ -1678,6 +1678,12 @@ extern "C" {

pub fn dirname(path: *mut ::c_char) -> *mut ::c_char;
pub fn basename(path: *mut ::c_char) -> *mut ::c_char;
pub fn getmntinfo(mntbufp: *mut *mut ::statfs, flags: ::c_int) -> ::c_int;
pub fn getmntvinfo(
mntbufp: *mut *mut ::statfs,
mntvbufp: *mut *mut ::statvfs,
flags: ::c_int,
) -> ::c_int;
}

#[link(name = "rt")]
Expand Down

0 comments on commit 4883c82

Please sign in to comment.