Skip to content

Commit 60254f1

Browse files
committed
haiku: add missing ioctl identifiers to control the TTY
1 parent 5bbba03 commit 60254f1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/unix/haiku/mod.rs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,31 @@ pub const TCIFLUSH: ::c_int = 0x01;
11831183
pub const TCOFLUSH: ::c_int = 0x02;
11841184
pub const TCIOFLUSH: ::c_int = 0x03;
11851185

1186+
pub const TCGETA: ::c_int = 0x8000;
1187+
pub const TCSETA: ::c_int = TCGETA + 1;
1188+
pub const TCSETAF: ::c_int = TCGETA + 2;
1189+
pub const TCSETAW: ::c_int = TCGETA + 3;
1190+
pub const TCWAITEVENT: ::c_int = TCGETA + 4;
1191+
pub const TCSBRK: ::c_int = TCGETA + 5;
1192+
pub const TCFLSH: ::c_int = TCGETA + 6;
1193+
pub const TCXONC: ::c_int = TCGETA + 7;
1194+
pub const TCQUERYCONNECTED: ::c_int = TCGETA + 8;
1195+
pub const TCGETBITS: ::c_int = TCGETA + 9;
1196+
pub const TCSETDTR: ::c_int = TCGETA + 10;
1197+
pub const TCSETRTS: ::c_int = TCGETA + 11;
1198+
pub const TIOCGWINSZ: ::c_int = TCGETA + 12;
1199+
pub const TIOCSWINSZ: ::c_int = TCGETA + 13;
1200+
pub const TCVTIME: ::c_int = TCGETA + 14;
1201+
pub const TIOCGPGRP: ::c_int = TCGETA + 15;
1202+
pub const TIOCSPGRP: ::c_int = TCGETA + 16;
1203+
pub const TIOCSCTTY: ::c_int = TCGETA + 17;
1204+
pub const TIOCMGET: ::c_int = TCGETA + 18;
1205+
pub const TIOCMSET: ::c_int = TCGETA + 19;
1206+
pub const TIOCSBRK: ::c_int = TCGETA + 20;
1207+
pub const TIOCCBRK: ::c_int = TCGETA + 21;
1208+
pub const TIOCMBIS: ::c_int = TCGETA + 22;
1209+
pub const TIOCMBIC: ::c_int = TCGETA + 23;
1210+
11861211
f! {
11871212
pub fn FD_CLR(fd: ::c_int, set: *mut fd_set) -> () {
11881213
let fd = fd as usize;

0 commit comments

Comments
 (0)