Skip to content

Commit 4883c82

Browse files
committed
Auto merge of #3394 - devnexen:dflybsd_getmntinfo, r=JohnTitor
adding getmntinfo/getmntvinfo for DragonFlyBSD. close #3392
2 parents 27ce4ff + 03f74bf commit 4883c82

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libc-test/semver/dragonfly.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,6 +1320,8 @@ getitimer
13201320
getlastlogx
13211321
getline
13221322
getloadavg
1323+
getmntinfo
1324+
getmntvinfo
13231325
getnameinfo
13241326
getopt_long
13251327
getpeereid

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,6 +1678,12 @@ extern "C" {
16781678

16791679
pub fn dirname(path: *mut ::c_char) -> *mut ::c_char;
16801680
pub fn basename(path: *mut ::c_char) -> *mut ::c_char;
1681+
pub fn getmntinfo(mntbufp: *mut *mut ::statfs, flags: ::c_int) -> ::c_int;
1682+
pub fn getmntvinfo(
1683+
mntbufp: *mut *mut ::statfs,
1684+
mntvbufp: *mut *mut ::statvfs,
1685+
flags: ::c_int,
1686+
) -> ::c_int;
16811687
}
16821688

16831689
#[link(name = "rt")]

0 commit comments

Comments
 (0)