0.3.0: converge relibc to upstream 0.6.0 + Red Bear patches
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
use crate::platform::types::*;
|
||||
use crate::platform::types::c_int;
|
||||
|
||||
pub const SOCK_STREAM: c_int = 1;
|
||||
pub const SOCK_DGRAM: c_int = 2;
|
||||
pub const SOCK_RAW: c_int = 3;
|
||||
pub const SOCK_NONBLOCK: c_int = 0o4_000;
|
||||
pub const SOCK_CLOEXEC: c_int = 0o2_000_000;
|
||||
|
||||
// Other constants
|
||||
pub const SOCK_RDM: c_int = 4;
|
||||
pub const SOCK_SEQPACKET: c_int = 5;
|
||||
|
||||
pub const SOL_SOCKET: c_int = 1;
|
||||
@@ -46,18 +48,33 @@ pub const MSG_EOR: c_int = 128;
|
||||
pub const MSG_OOB: c_int = 1;
|
||||
pub const MSG_PEEK: c_int = 2;
|
||||
pub const MSG_TRUNC: c_int = 32;
|
||||
pub const MSG_DONTWAIT: c_int = 64;
|
||||
pub const MSG_WAITALL: c_int = 256;
|
||||
pub const MSG_CMSG_CLOEXEC: c_int = 0x40000000;
|
||||
|
||||
pub const IP_ADD_SOURCE_MEMBERSHIP: c_int = 70;
|
||||
pub const IP_DROP_SOURCE_MEMBERSHIP: c_int = 71;
|
||||
pub const MCAST_JOIN_SOURCE_GROUP: c_int = 46;
|
||||
pub const MCAST_LEAVE_SOURCE_GROUP: c_int = 47;
|
||||
|
||||
pub const AF_INET: c_int = 2;
|
||||
pub const AF_INET6: c_int = 10;
|
||||
pub const AF_LOCAL: c_int = AF_UNIX;
|
||||
pub const AF_UNIX: c_int = 1;
|
||||
pub const AF_UNSPEC: c_int = 0;
|
||||
|
||||
pub const PF_INET: c_int = 2;
|
||||
pub const PF_INET6: c_int = 10;
|
||||
pub const PF_LOCAL: c_int = PF_UNIX;
|
||||
pub const PF_UNIX: c_int = 1;
|
||||
pub const PF_UNSPEC: c_int = 0;
|
||||
|
||||
pub const SHUT_RD: c_int = 0;
|
||||
pub const SHUT_RDWR: c_int = 2;
|
||||
pub const SHUT_WR: c_int = 1;
|
||||
|
||||
pub const SCM_RIGHTS: c_int = 1;
|
||||
pub const SCM_CREDENTIALS: c_int = 2;
|
||||
|
||||
pub const IPPROTO_TCP: c_int = 6;
|
||||
pub const TCP_NODELAY: c_int = 1;
|
||||
|
||||
Reference in New Issue
Block a user