File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ use crate::errno::Errno;
21
21
struct QuotaCmd ( QuotaSubCmd , QuotaType ) ;
22
22
23
23
impl QuotaCmd {
24
+ #[ allow( unused_unsafe) ]
24
25
fn as_int ( & self ) -> c_int {
25
26
unsafe { libc:: QCMD ( self . 0 as i32 , self . 1 as i32 ) }
26
27
}
Original file line number Diff line number Diff line change @@ -117,35 +117,43 @@ impl WaitStatus {
117
117
}
118
118
}
119
119
120
+ #[ allow( unused_unsafe) ]
120
121
fn exited ( status : i32 ) -> bool {
121
122
unsafe { libc:: WIFEXITED ( status) }
122
123
}
123
124
125
+ #[ allow( unused_unsafe) ]
124
126
fn exit_status ( status : i32 ) -> i32 {
125
127
unsafe { libc:: WEXITSTATUS ( status) }
126
128
}
127
129
130
+ #[ allow( unused_unsafe) ]
128
131
fn signaled ( status : i32 ) -> bool {
129
132
unsafe { libc:: WIFSIGNALED ( status) }
130
133
}
131
134
135
+ #[ allow( unused_unsafe) ]
132
136
fn term_signal ( status : i32 ) -> Result < Signal > {
133
137
Signal :: try_from ( unsafe { libc:: WTERMSIG ( status) } )
134
138
}
135
139
140
+ #[ allow( unused_unsafe) ]
136
141
fn dumped_core ( status : i32 ) -> bool {
137
142
unsafe { libc:: WCOREDUMP ( status) }
138
143
}
139
144
145
+ #[ allow( unused_unsafe) ]
140
146
fn stopped ( status : i32 ) -> bool {
141
147
unsafe { libc:: WIFSTOPPED ( status) }
142
148
}
143
149
150
+ #[ allow( unused_unsafe) ]
144
151
fn stop_signal ( status : i32 ) -> Result < Signal > {
145
152
Signal :: try_from ( unsafe { libc:: WSTOPSIG ( status) } )
146
153
}
147
154
148
155
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
156
+ #[ allow( unused_unsafe) ]
149
157
fn syscall_stop ( status : i32 ) -> bool {
150
158
// From ptrace(2), setting PTRACE_O_TRACESYSGOOD has the effect
151
159
// of delivering SIGTRAP | 0x80 as the signal number for syscall
@@ -159,6 +167,7 @@ fn stop_additional(status: i32) -> c_int {
159
167
( status >> 16 ) as c_int
160
168
}
161
169
170
+ #[ allow( unused_unsafe) ]
162
171
fn continued ( status : i32 ) -> bool {
163
172
unsafe { libc:: WIFCONTINUED ( status) }
164
173
}
You can’t perform that action at this time.
0 commit comments