Skip to content

Commit 329a5e7

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. (backport <#4736>) (cherry picked from commit 755613e)
1 parent 72a40e2 commit 329a5e7

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
@@ -3341,6 +3341,10 @@ pub const TIOCDSIMICROCODE: c_uint = 0x20007455;
33413341
pub const TIOCPTYGRANT: c_uint = 0x20007454;
33423342
pub const TIOCPTYGNAME: c_uint = 0x40807453;
33433343
pub const TIOCPTYUNLK: c_uint = 0x20007452;
3344+
pub const TIOCGETA: c_ulong = 0x40487413;
3345+
pub const TIOCSETA: c_ulong = 0x80487414;
3346+
pub const TIOCSETAW: c_ulong = 0x80487415;
3347+
pub const TIOCSETAF: c_ulong = 0x80487416;
33443348

33453349
pub const BIOCGRSIG: c_ulong = 0x40044272;
33463350
pub const BIOCSRSIG: c_ulong = 0x80044273;

0 commit comments

Comments
 (0)