Skip to content

Commit 755613e

Browse files
mmastracJohnTitor
authored andcommitted
Add missing TIOCGETA/TIOCSETA constants for macOS
- Add TIOCGETA (0x40487413) for getting termios state - Add TIOCSETA (0x80487414) for setting termios state immediately - Add TIOCSETAW (0x80487415) for draining output then setting - Add TIOCSETAF (0x80487416) for draining output, flushing input, then setting These constants are present in macOS system headers but were missing from the libc crate. Fixes issue #4735.
1 parent b1be455 commit 755613e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3150,6 +3150,10 @@ pub const TIOCDSIMICROCODE: c_uint = 0x20007455;
31503150
pub const TIOCPTYGRANT: c_uint = 0x20007454;
31513151
pub const TIOCPTYGNAME: c_uint = 0x40807453;
31523152
pub const TIOCPTYUNLK: c_uint = 0x20007452;
3153+
pub const TIOCGETA: c_ulong = 0x40487413;
3154+
pub const TIOCSETA: c_ulong = 0x80487414;
3155+
pub const TIOCSETAW: c_ulong = 0x80487415;
3156+
pub const TIOCSETAF: c_ulong = 0x80487416;
31533157

31543158
pub const BIOCGRSIG: c_ulong = 0x40044272;
31553159
pub const BIOCSRSIG: c_ulong = 0x80044273;

0 commit comments

Comments
 (0)