Skip to content

Commit

Permalink
Add the TIOCGWINSZ and TIOCSWINSZ constants
Browse files Browse the repository at this point in the history
  • Loading branch information
severen committed May 19, 2016
1 parent fb5008c commit ae72fc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix/bsd/freebsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,9 @@ pub const LOG_SECURITY: ::c_int = 13 << 3;
pub const LOG_CONSOLE: ::c_int = 14 << 3;
pub const LOG_NFACILITIES: ::c_int = 24;

pub const TIOCGWINSZ: ::c_ulong = 0x40087468;
pub const TIOCSWINSZ: ::c_ulong = 0x80087467;

#[link(name = "util")]
extern {
pub fn getnameinfo(sa: *const ::sockaddr,
Expand Down

0 comments on commit ae72fc7

Please sign in to comment.