summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-01-13 13:00:48 +0000
committerbors <bors@rust-lang.org>2022-01-13 13:00:48 +0000
commite470e3b6a1f940e0024d40d3b79fc73fe29c7f17 (patch)
treece7376177a66df7ec545e157941a6b7d64c91fe0
parent26b68f834c4a629aac695147006e22c7515da884 (diff)
parent4b462354e1a0cc23276e89f5ceb7740fe0651d25 (diff)
downloadrust-libc-e470e3b6a1f940e0024d40d3b79fc73fe29c7f17.tar.gz
Auto merge of #2624 - rtzoeller:umount_nofollow, r=Amanieu
Define UMOUNT_NOFOLLOW on Linux-like platforms Requested-by: https://github.com/nix-rust/nix/issues/1631
-rw-r--r--src/unix/linux_like/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unix/linux_like/mod.rs b/src/unix/linux_like/mod.rs
index 96f179c4f2..c3bdbf9b13 100644
--- a/src/unix/linux_like/mod.rs
+++ b/src/unix/linux_like/mod.rs
@@ -1045,8 +1045,10 @@ pub const EPOLL_CTL_ADD: ::c_int = 1;
pub const EPOLL_CTL_MOD: ::c_int = 3;
pub const EPOLL_CTL_DEL: ::c_int = 2;
+pub const MNT_FORCE: ::c_int = 0x1;
pub const MNT_DETACH: ::c_int = 0x2;
pub const MNT_EXPIRE: ::c_int = 0x4;
+pub const UMOUNT_NOFOLLOW: ::c_int = 0x8;
pub const Q_GETFMT: ::c_int = 0x800004;
pub const Q_GETINFO: ::c_int = 0x800005;
@@ -1062,8 +1064,6 @@ pub const QIF_USAGE: u32 = 10;
pub const QIF_TIMES: u32 = 48;
pub const QIF_ALL: u32 = 63;
-pub const MNT_FORCE: ::c_int = 0x1;
-
pub const Q_SYNC: ::c_int = 0x800001;
pub const Q_QUOTAON: ::c_int = 0x800002;
pub const Q_QUOTAOFF: ::c_int = 0x800003;