Skip to content

Commit

Permalink
Add getmntinfo and getmntinfo functions, MNT_WAIT and MNT_NOWAIT cons…
Browse files Browse the repository at this point in the history
…tants
  • Loading branch information
GuillaumeGomez committed Feb 7, 2021
1 parent 49776c2 commit 332123d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/unix/bsd/apple/mod.rs
Expand Up @@ -3207,6 +3207,10 @@ pub const TIME_OOP: ::c_int = 3;
pub const TIME_WAIT: ::c_int = 4;
pub const TIME_ERROR: ::c_int = 5;

// <sys/mount.h>
pub const MNT_WAIT: ::c_int = 1;
pub const MNT_NOWAIT: ::c_int = 2;

cfg_if! {
if #[cfg(libc_const_size_of)] {
fn __DARWIN_ALIGN32(p: usize) -> usize {
Expand Down Expand Up @@ -3744,6 +3748,13 @@ extern "C" {

pub fn ntp_adjtime(buf: *mut timex) -> ::c_int;
pub fn ntp_gettime(buf: *mut ntptimeval) -> ::c_int;

pub fn getmntinfo(mntbufp: *mut *mut statfs, flags: ::c_int) -> ::c_int;
pub fn getfsstat(
mntbufp: *mut statfs,
bufsize: ::c_int,
flags: ::c_int,
) -> ::c_int;
}

cfg_if! {
Expand Down

0 comments on commit 332123d

Please sign in to comment.