File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -264,6 +264,12 @@ pub fn cfgetospeed(termios: &Termios) -> BaudRate {
264
264
unsafe { libc:: cfgetospeed ( & termios. termios ) . into ( ) }
265
265
}
266
266
267
+ pub fn cfmakeraw ( termios : & mut Termios ) {
268
+ unsafe {
269
+ libc:: cfmakeraw ( & mut termios. termios ) ;
270
+ }
271
+ }
272
+
267
273
pub fn cfsetispeed ( termios : & mut Termios , baud : BaudRate ) -> Result < ( ) > {
268
274
Errno :: result ( unsafe { libc:: cfsetispeed ( & mut termios. termios , baud as speed_t ) } ) . map ( drop)
269
275
}
@@ -272,6 +278,10 @@ pub fn cfsetospeed(termios: &mut Termios, baud: BaudRate) -> Result<()> {
272
278
Errno :: result ( unsafe { libc:: cfsetospeed ( & mut termios. termios , baud as speed_t ) } ) . map ( drop)
273
279
}
274
280
281
+ pub fn cfsetspeed ( termios : & mut Termios , baud : BaudRate ) -> Result < ( ) > {
282
+ Errno :: result ( unsafe { libc:: cfsetspeed ( & mut termios. termios , baud as speed_t ) } ) . map ( drop)
283
+ }
284
+
275
285
pub fn tcgetattr ( fd : RawFd ) -> Result < Termios > {
276
286
let mut termios: Termios = unsafe { mem:: uninitialized ( ) } ;
277
287
You can’t perform that action at this time.
0 commit comments