diff options
author | bors <bors@rust-lang.org> | 2019-06-20 17:12:40 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2019-06-20 17:12:40 +0000 |
commit | a73d6bc00d0a7d7c63028e6b69ed9b46734a2369 (patch) | |
tree | 58238ccea136424ed43d2258c704e4450585b39e | |
parent | 5bbba03eb19c8a60efa2aa44a8cef118748c9811 (diff) | |
parent | 60254f1151af28d923c547014483c7598f21c3d4 (diff) | |
download | libc-a73d6bc00d0a7d7c63028e6b69ed9b46734a2369.tar.gz |
Auto merge of #1402 - sikmir:haiku-add-ioctls, r=gnzlbg
haiku: add missing ioctl identifiers to control the TTY
Ref. [termios.h](https://github.com/haiku/haiku/blob/37761761a0c93a96c47d7cfb72f80ab56a8c1722/headers/posix/termios.h#L165-L189)
-rw-r--r-- | src/unix/haiku/mod.rs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/unix/haiku/mod.rs b/src/unix/haiku/mod.rs index 00ca8946..f8f6ca98 100644 --- a/src/unix/haiku/mod.rs +++ b/src/unix/haiku/mod.rs @@ -1183,6 +1183,31 @@ pub const TCIFLUSH: ::c_int = 0x01; pub const TCOFLUSH: ::c_int = 0x02; pub const TCIOFLUSH: ::c_int = 0x03; +pub const TCGETA: ::c_int = 0x8000; +pub const TCSETA: ::c_int = TCGETA + 1; +pub const TCSETAF: ::c_int = TCGETA + 2; +pub const TCSETAW: ::c_int = TCGETA + 3; +pub const TCWAITEVENT: ::c_int = TCGETA + 4; +pub const TCSBRK: ::c_int = TCGETA + 5; +pub const TCFLSH: ::c_int = TCGETA + 6; +pub const TCXONC: ::c_int = TCGETA + 7; +pub const TCQUERYCONNECTED: ::c_int = TCGETA + 8; +pub const TCGETBITS: ::c_int = TCGETA + 9; +pub const TCSETDTR: ::c_int = TCGETA + 10; +pub const TCSETRTS: ::c_int = TCGETA + 11; +pub const TIOCGWINSZ: ::c_int = TCGETA + 12; +pub const TIOCSWINSZ: ::c_int = TCGETA + 13; +pub const TCVTIME: ::c_int = TCGETA + 14; +pub const TIOCGPGRP: ::c_int = TCGETA + 15; +pub const TIOCSPGRP: ::c_int = TCGETA + 16; +pub const TIOCSCTTY: ::c_int = TCGETA + 17; +pub const TIOCMGET: ::c_int = TCGETA + 18; +pub const TIOCMSET: ::c_int = TCGETA + 19; +pub const TIOCSBRK: ::c_int = TCGETA + 20; +pub const TIOCCBRK: ::c_int = TCGETA + 21; +pub const TIOCMBIS: ::c_int = TCGETA + 22; +pub const TIOCMBIC: ::c_int = TCGETA + 23; + f! { pub fn FD_CLR(fd: ::c_int, set: *mut fd_set) -> () { let fd = fd as usize; |