@@ -193,12 +193,12 @@ fn test_write() {
193193}
194194
195195// XXX: should be sig_atomic_t, but rust's libc doesn't define that yet
196- static mut signaled : i32 = 0 ;
196+ static mut SIGNALED : i32 = 0 ;
197197
198198extern fn sigfunc ( _: c_int ) {
199199 // It's a pity that Rust can't understand that static mutable sig_atomic_t
200200 // variables can be safely accessed
201- unsafe { signaled = 1 } ;
201+ unsafe { SIGNALED = 1 } ;
202202}
203203
204204// Test an aio operation with completion delivered by a signal
@@ -207,7 +207,7 @@ fn test_write_sigev_signal() {
207207 let sa = SigAction :: new ( SigHandler :: Handler ( sigfunc) ,
208208 SA_RESETHAND ,
209209 SigSet :: empty ( ) ) ;
210- unsafe { signaled = 0 } ;
210+ unsafe { SIGNALED = 0 } ;
211211 unsafe { sigaction ( Signal :: SIGUSR2 , & sa) } . unwrap ( ) ;
212212
213213 const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
@@ -227,7 +227,7 @@ fn test_write_sigev_signal() {
227227 } ,
228228 LioOpcode :: LIO_NOP ) ;
229229 aiocb. write ( ) . unwrap ( ) ;
230- while unsafe { signaled == 0 } {
230+ while unsafe { SIGNALED == 0 } {
231231 thread:: sleep ( time:: Duration :: from_millis ( 10 ) ) ;
232232 }
233233
@@ -357,11 +357,11 @@ fn test_lio_listio_signal() {
357357 0 , //priority
358358 SigevNotify :: SigevNone ,
359359 LioOpcode :: LIO_READ ) ;
360- unsafe { signaled = 0 } ;
360+ unsafe { SIGNALED = 0 } ;
361361 unsafe { sigaction ( Signal :: SIGUSR2 , & sa) } . unwrap ( ) ;
362362 let err = lio_listio ( LioMode :: LIO_NOWAIT , & [ & mut wcb, & mut rcb] , sigev_notify) ;
363363 err. expect ( "lio_listio failed" ) ;
364- while unsafe { signaled == 0 } {
364+ while unsafe { SIGNALED == 0 } {
365365 thread:: sleep ( time:: Duration :: from_millis ( 10 ) ) ;
366366 }
367367
0 commit comments