diff options
author | Bryant Mairs <bryantmairs@google.com> | 2017-12-05 19:37:10 -0800 |
---|---|---|
committer | Bryant Mairs <bryantmairs@google.com> | 2017-12-10 20:47:59 -0800 |
commit | 3924361d8517e367ee8eef4779390e49e5f77e49 (patch) | |
tree | 1449d0ae7349fd1dcfce5f7c5c761da759b163a0 /src/sys/statvfs.rs | |
parent | e95cf8827ce26f4ebb99523ac9dabf827a31966c (diff) | |
download | nix-3924361d8517e367ee8eef4779390e49e5f77e49.zip |
Migrate more bitflags to use libc_bitflags!
Diffstat (limited to 'src/sys/statvfs.rs')
-rw-r--r-- | src/sys/statvfs.rs | 26 |
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; } ); |