summaryrefslogtreecommitdiff
path: root/src/sys/statvfs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/statvfs.rs')
-rw-r--r--src/sys/statvfs.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/sys/statvfs.rs b/src/sys/statvfs.rs
index 0a0dab7f..fbd0570e 100644
--- a/src/sys/statvfs.rs
+++ b/src/sys/statvfs.rs
@@ -10,45 +10,45 @@ use libc::{self, c_ulong};
use {Result, NixPath};
use errno::Errno;
-bitflags!(
+libc_bitflags!(
/// File system mount Flags
#[repr(C)]
#[derive(Default)]
pub struct FsFlags: c_ulong {
/// Read Only
- const RDONLY = libc::ST_RDONLY;
+ ST_RDONLY;
/// Do not allow the set-uid bits to have an effect
- const NOSUID = libc::ST_NOSUID;
+ ST_NOSUID;
/// Do not interpret character or block-special devices
#[cfg(any(target_os = "android", target_os = "linux"))]
- const NODEV = libc::ST_NODEV;
+ ST_NODEV;
/// Do not allow execution of binaries on the filesystem
#[cfg(any(target_os = "android", target_os = "linux"))]
- const NOEXEC = libc::ST_NOEXEC;
+ ST_NOEXEC;
/// All IO should be done synchronously
#[cfg(any(target_os = "android", target_os = "linux"))]
- const SYNCHRONOUS = libc::ST_SYNCHRONOUS;
+ ST_SYNCHRONOUS;
/// Allow mandatory locks on the filesystem
#[cfg(any(target_os = "android", target_os = "linux"))]
- const MANDLOCK = libc::ST_MANDLOCK;
+ ST_MANDLOCK;
/// Write on file/directory/symlink
#[cfg(any(target_os = "android", target_os = "linux"))]
- const WRITE = libc::ST_WRITE;
+ ST_WRITE;
/// Append-only file
#[cfg(any(target_os = "android", target_os = "linux"))]
- const APPEND = libc::ST_APPEND;
+ ST_APPEND;
/// Immutable file
#[cfg(any(target_os = "android", target_os = "linux"))]
- const IMMUTABLE = libc::ST_IMMUTABLE;
+ ST_IMMUTABLE;
/// Do not update access times on files
#[cfg(any(target_os = "android", target_os = "linux"))]
- const NOATIME = libc::ST_NOATIME;
+ ST_NOATIME;
/// Do not update access times on files
#[cfg(any(target_os = "android", target_os = "linux"))]
- const NODIRATIME = libc::ST_NODIRATIME;
+ ST_NODIRATIME;
/// Update access time relative to modify/change time
#[cfg(any(target_os = "android", all(target_os = "linux", not(target_env = "musl"))))]
- const RELATIME = libc::ST_RELATIME;
+ ST_RELATIME;
}
);