diff options
author | Zac Berkowitz <zac.berkowitz@gmail.com> | 2017-02-28 18:07:17 +0000 |
---|---|---|
committer | Zac Berkowitz <zac.berkowitz@gmail.com> | 2017-03-01 18:06:01 +0000 |
commit | 27ce7b1575c102de361ab8e0a0bb7dbeb3da3dfe (patch) | |
tree | c4b576a4d03f80d6b15d876bf3013b0d6fdd66d4 | |
parent | 5494238c472339f532810281adadd7f98ef72c7e (diff) | |
download | rust-libc-27ce7b1575c102de361ab8e0a0bb7dbeb3da3dfe.tar.gz |
Cleaned up unused socket constants.
-rw-r--r-- | src/unix/bsd/freebsdlike/freebsd/mod.rs | 9 | ||||
-rw-r--r-- | src/unix/notbsd/mod.rs | 32 |
2 files changed, 0 insertions, 41 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index f14ed73acb..50446dc7f1 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -356,14 +356,6 @@ pub const SO_SETFIB: ::c_int = 0x1014; pub const SO_USER_COOKIE: ::c_int = 0x1015; pub const SO_PROTOCOL: ::c_int = 0x1016; pub const SO_PROTOTYPE: ::c_int = SO_PROTOCOL; -// pub const SO_TS_CLOCK: ::c_int = 0x1017; -// pub const SO_MAX_PACING_RATE: ::c_int = 0x1018; -// pub const SO_TS_REALTIME_MICRO: ::c_int = 0; -// pub const SO_TS_BINTIME: ::c_int = 1; -// pub const SO_TS_REALTIME: ::c_int = 2; -// pub const SO_TS_MONOTONIC: ::c_int = 3; -// pub const SO_TS_DEFAULT: ::c_int = SO_TS_REALTIME_MICRO; -// pub const SO_TS_CLOCK_MAX: ::c_int = SO_TS_MONOTONIC; pub const SO_VENDOR: ::c_int = 0x80000000; pub const AF_SLOW: ::c_int = 33; @@ -411,7 +403,6 @@ pub const MSG_NOTIFICATION: ::c_int = 0x00002000; pub const MSG_NBIO: ::c_int = 0x00004000; pub const MSG_COMPAT: ::c_int = 0x00008000; pub const MSG_CMSG_CLOEXEC: ::c_int = 0x00040000; -// pub const MSG_WAITFORONE: ::c_int = 0x00080000; pub const MSG_NOSIGNAL: ::c_int = 0x20000; pub const EMPTY: ::c_short = 0; diff --git a/src/unix/notbsd/mod.rs b/src/unix/notbsd/mod.rs index 3238d6d9f2..1355378713 100644 --- a/src/unix/notbsd/mod.rs +++ b/src/unix/notbsd/mod.rs @@ -396,7 +396,6 @@ pub const EWOULDBLOCK: ::c_int = EAGAIN; pub const SCM_RIGHTS: ::c_int = 0x01; pub const SCM_CREDENTIALS: ::c_int = 0x02; -// pub const SCM_SECURITY: ::c_int = 0x03; pub const IPPROTO_RAW: ::c_int = 255; @@ -439,14 +438,6 @@ pub const SOL_TCP: ::c_int = 6; pub const SOL_IPV6: ::c_int = 41; pub const SOL_ICMPV6: ::c_int = 58; pub const SOL_RAW: ::c_int = 255; -// pub const SOL_UDP: ::c_int = 17; -// pub const SOL_SCTP: ::c_int = 132; -// pub const SOL_UDPLITE: ::c_int = 136; -// pub const SOL_IPX: ::c_int = 256; -// pub const SOL_AX25: ::c_int = 257; -// pub const SOL_ATALK: ::c_int = 258; -// pub const SOL_NETROM: ::c_int = 259; -// pub const SOL_ROSE: ::c_int = 260; pub const SOL_DECNET: ::c_int = 261; pub const SOL_X25: ::c_int = 262; pub const SOL_PACKET: ::c_int = 263; @@ -458,17 +449,6 @@ pub const SOL_LLC: ::c_int = 268; pub const SOL_DCCP: ::c_int = 269; pub const SOL_NETLINK: ::c_int = 270; pub const SOL_TIPC: ::c_int = 271; -// pub const SOL_RXRPC: ::c_int = 272; -// pub const SOL_PPPOL2TP: ::c_int = 273; -// pub const SOL_BLUETOOTH: ::c_int = 274; -// pub const SOL_PNPIPE: ::c_int = 275; -// pub const SOL_RDS: ::c_int = 276; -// pub const SOL_IUCV: ::c_int = 277; -// pub const SOL_CAIF: ::c_int = 278; -// pub const SOL_ALG: ::c_int = 279; -// pub const SOL_NFC: ::c_int = 280; - -// pub const IPX_TYPE: ::c_int = 1; pub const AF_UNSPEC: ::c_int = 0; pub const AF_UNIX: ::c_int = 1; @@ -499,10 +479,6 @@ pub const AF_IRDA: ::c_int = 23; pub const AF_PPPOX: ::c_int = 24; pub const AF_WANPIPE: ::c_int = 25; pub const AF_LLC: ::c_int = 26; -// pub const AF_IB: ::c_int = 27; -// pub const AF_MPLS: ::c_int = 28; -// pub const AF_NFC: ::c_int = 39; -// pub const AF_VSOCK: ::c_int = 40; pub const AF_CAN: ::c_int = 29; pub const AF_TIPC: ::c_int = 30; pub const AF_BLUETOOTH: ::c_int = 31; @@ -543,10 +519,6 @@ pub const PF_IRDA: ::c_int = AF_IRDA; pub const PF_PPPOX: ::c_int = AF_PPPOX; pub const PF_WANPIPE: ::c_int = AF_WANPIPE; pub const PF_LLC: ::c_int = AF_LLC; -// pub const PF_IB: ::c_int = AF_IB; -// pub const PF_MPLS: ::c_int = AF_MPLS; -// pub const PF_NFC: ::c_int = AF_NFC; -// pub const PF_VSOCK: ::c_int = AF_VSOCK; pub const PF_CAN: ::c_int = AF_CAN; pub const PF_TIPC: ::c_int = AF_TIPC; pub const PF_BLUETOOTH: ::c_int = AF_BLUETOOTH; @@ -563,9 +535,7 @@ pub const SOMAXCONN: ::c_int = 128; pub const MSG_OOB: ::c_int = 1; pub const MSG_PEEK: ::c_int = 2; pub const MSG_DONTROUTE: ::c_int = 4; -// pub const MSG_TRYHARD: ::c_int = 4; pub const MSG_CTRUNC: ::c_int = 8; -// pub const MSG_PROBE: ::c_int = 0x10; pub const MSG_TRUNC: ::c_int = 0x20; pub const MSG_DONTWAIT: ::c_int = 0x40; pub const MSG_EOR: ::c_int = 0x80; @@ -578,8 +548,6 @@ pub const MSG_ERRQUEUE: ::c_int = 0x2000; pub const MSG_NOSIGNAL: ::c_int = 0x4000; pub const MSG_MORE: ::c_int = 0x8000; pub const MSG_WAITFORONE: ::c_int = 0x10000; -// pub const MSG_SENDPAGE_NOTLAST: ::c_int = 0x20000; -// pub const MSG_EOF: ::c_int = MSG_FIN; pub const MSG_FASTOPEN: ::c_int = 0x20000000; pub const MSG_CMSG_CLOEXEC: ::c_int = 0x40000000; |