@@ -42,7 +42,7 @@ mod ffi {
42
42
#[ inline]
43
43
#[ cfg( all( target_os = "android" , not( target_arch = "mips" ) ) ) ]
44
44
mod android {
45
- use libc:: funcs :: bsd44 :: ioctl ;
45
+ use libc;
46
46
use libc:: c_int;
47
47
use super :: consts:: * ;
48
48
@@ -69,24 +69,24 @@ mod ffi {
69
69
0
70
70
}
71
71
pub unsafe fn tcgetattr ( fd : c_int , termios : * mut Termios ) -> c_int {
72
- ioctl ( fd, TCGETS , termios)
72
+ libc :: ioctl ( fd, TCGETS , termios)
73
73
}
74
74
pub unsafe fn tcsetattr ( fd : c_int ,
75
75
optional_actions : c_int ,
76
76
termios : * const Termios ) -> c_int {
77
- ioctl ( fd, optional_actions, termios)
77
+ libc :: ioctl ( fd, optional_actions, termios)
78
78
}
79
79
pub unsafe fn tcdrain ( fd : c_int ) -> c_int {
80
- ioctl ( fd, TCSBRK , 1 )
80
+ libc :: ioctl ( fd, TCSBRK , 1 )
81
81
}
82
82
pub unsafe fn tcflow ( fd : c_int , action : c_int ) -> c_int {
83
- ioctl ( fd, TCXONC , action)
83
+ libc :: ioctl ( fd, TCXONC , action)
84
84
}
85
85
pub unsafe fn tcflush ( fd : c_int , action : c_int ) -> c_int {
86
- ioctl ( fd, TCFLSH , action)
86
+ libc :: ioctl ( fd, TCFLSH , action)
87
87
}
88
88
pub unsafe fn tcsendbreak ( fd : c_int , duration : c_int ) -> c_int {
89
- ioctl ( fd, TCSBRKP , duration)
89
+ libc :: ioctl ( fd, TCSBRKP , duration)
90
90
}
91
91
}
92
92
0 commit comments