@@ -74,31 +74,41 @@ bitflags! {
7474 }
7575}
7676
77- bitflags ! {
78- /// Thread name space type.
79- #[ deprecated( since = "1.1.0" , note = "Use NamespaceType instead" ) ]
80- #[ repr( transparent) ]
81- #[ derive( Copy , Clone , Eq , PartialEq , Hash , Debug ) ]
82- pub struct ThreadNameSpaceType : u32 {
83- /// Time name space.
84- const TIME = CLONE_NEWTIME ;
85- /// Mount name space.
86- const MOUNT = CLONE_NEWNS ;
87- /// Control group (CGroup) name space.
88- const CONTROL_GROUP = CLONE_NEWCGROUP ;
89- /// `Host name` and `NIS domain name` (UTS) name space.
90- const HOST_NAME_AND_NIS_DOMAIN_NAME = CLONE_NEWUTS ;
91- /// Inter-process communication (IPC) name space.
92- const INTER_PROCESS_COMMUNICATION = CLONE_NEWIPC ;
93- /// User name space.
94- const USER = CLONE_NEWUSER ;
95- /// Process ID name space.
96- const PROCESS_ID = CLONE_NEWPID ;
97- /// Network name space.
98- const NETWORK = CLONE_NEWNET ;
77+ pub use allow_deprecated_workaround:: * ;
78+ mod allow_deprecated_workaround {
79+ #![ allow( deprecated) ]
9980
100- /// <https://docs.rs/bitflags/*/bitflags/#externally-defined-flags>
101- const _ = !0 ;
81+ use linux_raw_sys:: general:: {
82+ CLONE_NEWCGROUP , CLONE_NEWIPC , CLONE_NEWNET , CLONE_NEWNS , CLONE_NEWPID , CLONE_NEWTIME ,
83+ CLONE_NEWUSER , CLONE_NEWUTS ,
84+ } ;
85+
86+ bitflags:: bitflags! {
87+ /// Thread name space type.
88+ #[ deprecated( since = "1.1.0" , note = "Use NamespaceType instead" ) ]
89+ #[ repr( transparent) ]
90+ #[ derive( Copy , Clone , Eq , PartialEq , Hash , Debug ) ]
91+ pub struct ThreadNameSpaceType : u32 {
92+ /// Time name space.
93+ const TIME = CLONE_NEWTIME ;
94+ /// Mount name space.
95+ const MOUNT = CLONE_NEWNS ;
96+ /// Control group (CGroup) name space.
97+ const CONTROL_GROUP = CLONE_NEWCGROUP ;
98+ /// `Host name` and `NIS domain name` (UTS) name space.
99+ const HOST_NAME_AND_NIS_DOMAIN_NAME = CLONE_NEWUTS ;
100+ /// Inter-process communication (IPC) name space.
101+ const INTER_PROCESS_COMMUNICATION = CLONE_NEWIPC ;
102+ /// User name space.
103+ const USER = CLONE_NEWUSER ;
104+ /// Process ID name space.
105+ const PROCESS_ID = CLONE_NEWPID ;
106+ /// Network name space.
107+ const NETWORK = CLONE_NEWNET ;
108+
109+ /// <https://docs.rs/bitflags/*/bitflags/#externally-defined-flags>
110+ const _ = !0 ;
111+ }
102112 }
103113}
104114
0 commit comments