diff options
author | bors <bors@rust-lang.org> | 2018-05-07 14:13:57 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2018-05-07 14:13:57 +0000 |
commit | f717d4b1139152f08fbb6a358943c0b5087fbed3 (patch) | |
tree | fe6a0e201554dce85587888c66ee1396f42cf1b1 | |
parent | 3054d3e0eb272276300e6825ea31eaa1ed8a6f84 (diff) | |
parent | 4861720ab525a9ec4f7137ccd5c1e4e3245a6617 (diff) | |
download | rust-libc-f717d4b1139152f08fbb6a358943c0b5087fbed3.tar.gz |
Auto merge of #984 - kpcyrd:openbsd-TIOCGWINSZ, r=alexcrichton
Add TIOCGWINSZ to openbsd
Adds a commonly used ioctl to openbsd, related to #957. I've tested this on OpenBSD 6.3.
-rw-r--r-- | src/unix/bsd/netbsdlike/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/bsd/netbsdlike/mod.rs b/src/unix/bsd/netbsdlike/mod.rs index e79c70d20e..8b0b505aac 100644 --- a/src/unix/bsd/netbsdlike/mod.rs +++ b/src/unix/bsd/netbsdlike/mod.rs @@ -559,6 +559,7 @@ pub const TIOCMSET: ::c_ulong = 0x8004746d; pub const TIOCSTART: ::c_ulong = 0x2000746e; pub const TIOCSTOP: ::c_ulong = 0x2000746f; pub const TIOCSCTTY: ::c_ulong = 0x20007461; +pub const TIOCGWINSZ: ::c_ulong = 0x40087468; pub const TIOCSWINSZ: ::c_ulong = 0x80087467; pub const TIOCM_LE: ::c_int = 0o0001; pub const TIOCM_DTR: ::c_int = 0o0002; |