diff options
author | Alex Crichton <alex@alexcrichton.com> | 2016-08-16 14:34:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-16 14:34:14 -0700 |
commit | 32316bd221c6addf5a9f7060f32fbe618c358d13 (patch) | |
tree | d06d4dff0f7946411a28c8edd8e2f52e100268e6 | |
parent | 08f5e9dd902b3e20b892549808d58a99c5a6d767 (diff) | |
parent | 0a3afe182580734967655d1525fdc80504d535e4 (diff) | |
download | rust-libc-32316bd221c6addf5a9f7060f32fbe618c358d13.tar.gz |
Merge pull request #358 from dovreshef/master
add missing (common) iff constants
-rw-r--r-- | src/unix/notbsd/mod.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/unix/notbsd/mod.rs b/src/unix/notbsd/mod.rs index 6af74e7379..24997a53d4 100644 --- a/src/unix/notbsd/mod.rs +++ b/src/unix/notbsd/mod.rs @@ -417,7 +417,22 @@ pub const MADV_MERGEABLE: ::c_int = 12; pub const MADV_UNMERGEABLE: ::c_int = 13; pub const MADV_HWPOISON: ::c_int = 100; +pub const IFF_UP: ::c_int = 0x1; +pub const IFF_BROADCAST: ::c_int = 0x2; +pub const IFF_DEBUG: ::c_int = 0x4; pub const IFF_LOOPBACK: ::c_int = 0x8; +pub const IFF_POINTOPOINT: ::c_int = 0x10; +pub const IFF_NOTRAILERS: ::c_int = 0x20; +pub const IFF_RUNNING: ::c_int = 0x40; +pub const IFF_NOARP: ::c_int = 0x80; +pub const IFF_PROMISC: ::c_int = 0x100; +pub const IFF_ALLMULTI: ::c_int = 0x200; +pub const IFF_MASTER: ::c_int = 0x400; +pub const IFF_SLAVE: ::c_int = 0x800; +pub const IFF_MULTICAST: ::c_int = 0x1000; +pub const IFF_PORTSEL: ::c_int = 0x2000; +pub const IFF_AUTOMEDIA: ::c_int = 0x4000; +pub const IFF_DYNAMIC: ::c_int = 0x8000; pub const AF_UNIX: ::c_int = 1; pub const AF_INET: ::c_int = 2; |