@@ -48,8 +48,9 @@ mod makedev;
48
48
#[ cfg( any( target_os = "android" , target_os = "freebsd" , target_os = "linux" ) ) ]
49
49
mod memfd_create;
50
50
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
51
+ mod mount;
52
+ #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
51
53
mod openat2;
52
- #[ cfg( feature = "fs" ) ]
53
54
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
54
55
mod raw_dir;
55
56
#[ cfg( target_os = "linux" ) ]
@@ -99,14 +100,12 @@ pub use constants::CloneFlags;
99
100
/// `copyfile_flags_t`
100
101
#[ cfg( any( target_os = "ios" , target_os = "macos" ) ) ]
101
102
pub use constants:: CopyfileFlags ;
102
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
103
- pub use constants:: RenameFlags ;
104
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
105
- pub use constants:: ResolveFlags ;
106
103
pub use constants:: { Access , FdFlags , Mode , Nsecs , OFlags , Secs , Timespec } ;
107
104
#[ cfg( not( target_os = "redox" ) ) ]
108
105
pub use constants:: { AtFlags , Dev } ;
109
106
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
107
+ pub use constants:: { MountFlags , MountPropagationFlags , RenameFlags , ResolveFlags } ;
108
+ #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
110
109
pub use copy_file_range:: copy_file_range;
111
110
#[ cfg( not( target_os = "redox" ) ) ]
112
111
pub use cwd:: cwd;
@@ -203,8 +202,9 @@ pub use makedev::{major, makedev, minor};
203
202
#[ cfg( any( target_os = "android" , target_os = "freebsd" , target_os = "linux" ) ) ]
204
203
pub use memfd_create:: { memfd_create, MemfdFlags } ;
205
204
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
205
+ pub use mount:: { bind_mount, change_mount, mount, move_mount, recursive_bind_mount, remount} ;
206
+ #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
206
207
pub use openat2:: openat2;
207
- #[ cfg( feature = "fs" ) ]
208
208
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
209
209
pub use raw_dir:: { RawDir , RawDirEntry } ;
210
210
#[ cfg( target_os = "linux" ) ]
0 commit comments