File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
70
70
([ #835 ] ( https://github.com/nix-rust/nix/pull/835 ) )
71
71
- Added ` EVFILT_EMPTY ` , ` EVFILT_PROCDESC ` and ` EVFILT_SENDFILE ` on FreeBSD.
72
72
([ #825 ] ( https://github.com/nix-rust/nix/pull/825 ) )
73
+ - Exposed ` termios::cfmakesane ` on FreeBSD.
74
+ ([ #825 ] ( https://github.com/nix-rust/nix/pull/825 ) )
73
75
74
76
### Changed
75
77
- Exposed the ` mqueue ` module for all supported operating systems.
Original file line number Diff line number Diff line change @@ -1022,6 +1022,19 @@ pub fn cfmakeraw(termios: &mut Termios) {
1022
1022
termios. update_wrapper ( ) ;
1023
1023
}
1024
1024
1025
+ /// Configures the port to "sane" mode (like the configuration of a newly created terminal) (see
1026
+ /// [tcsetattr(3)](https://www.freebsd.org/cgi/man.cgi?query=tcsetattr)).
1027
+ ///
1028
+ /// Note that this is a non-standard function, available on FreeBSD.
1029
+ #[ cfg( target_os = "freebsd" ) ]
1030
+ pub fn cfmakesane ( termios : & mut Termios ) {
1031
+ let inner_termios = unsafe { termios. get_libc_termios_mut ( ) } ;
1032
+ unsafe {
1033
+ libc:: cfmakesane ( inner_termios) ;
1034
+ }
1035
+ termios. update_wrapper ( ) ;
1036
+ }
1037
+
1025
1038
/// Return the configuration of a port
1026
1039
/// [tcgetattr(3p)](http://pubs.opengroup.org/onlinepubs/9699919799/functions/tcgetattr.html)).
1027
1040
///
You can’t perform that action at this time.
0 commit comments