File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
52
52
([ #814 ] ( https://github.com/nix-rust/nix/pull/814 ) )
53
53
- Added ` EVFILT_EMPTY ` , ` EVFILT_PROCDESC ` and ` EVFILT_SENDFILE ` on FreeBSD.
54
54
([ #825 ] ( https://github.com/nix-rust/nix/pull/825 ) )
55
+ - Exposed ` termios::cfmakesane ` on FreeBSD.
56
+ ([ #825 ] ( https://github.com/nix-rust/nix/pull/825 ) )
55
57
56
58
### Changed
57
59
- Use native ` pipe2 ` on all BSD targets. Users should notice no difference.
Original file line number Diff line number Diff line change @@ -793,6 +793,18 @@ pub fn cfmakeraw(termios: &mut Termios) {
793
793
termios. update_wrapper ( ) ;
794
794
}
795
795
796
+ /// Configures the port to "sane" mode (like the configuration of a newly created terminal).
797
+ ///
798
+ /// Note that this is a non-standard function, available on FreeBSD.
799
+ #[ cfg( target_os = "freebsd" ) ]
800
+ pub fn cfmakesane ( termios : & mut Termios ) {
801
+ let inner_termios = unsafe { termios. get_libc_termios_mut ( ) } ;
802
+ unsafe {
803
+ libc:: cfmakesane ( inner_termios) ;
804
+ }
805
+ termios. update_wrapper ( ) ;
806
+ }
807
+
796
808
/// Set input baud rate (see
797
809
/// [cfsetispeed(3p)](http://pubs.opengroup.org/onlinepubs/9699919799/functions/cfsetispeed.html)).
798
810
///
You can’t perform that action at this time.
0 commit comments