Skip to content
Snippets Groups Projects
Unverified Commit 3118fb45 authored by Yuki Okushi's avatar Yuki Okushi Committed by GitHub
Browse files

Merge pull request #1793 from reitermarkus/xtensa-support-master

Add `MSG_` constants for Xtensa.
parents 95d8f481 156f82c2
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,8 @@ s! {
}
}
pub const AF_INET6: ::c_int = 23;
pub const FIONBIO: ::c_ulong = 1;
pub const POLLIN: ::c_short = 0x1;
......@@ -40,3 +42,11 @@ pub const POLLHUP: ::c_short = 0x10;
pub const POLLNVAL: ::c_short = 0x20;
pub const SOL_SOCKET: ::c_int = 65535;
pub const MSG_OOB: ::c_int = 1;
pub const MSG_PEEK: ::c_int = 2;
pub const MSG_DONTWAIT: ::c_int = 4;
pub const MSG_DONTROUTE: ::c_int = 0;
pub const MSG_WAITALL: ::c_int = 0;
pub const MSG_MORE: ::c_int = 0;
pub const MSG_NOSIGNAL: ::c_int = 0;
......@@ -32,6 +32,8 @@ s! {
}
}
pub const AF_INET6: ::c_int = 23;
pub const FIONBIO: ::c_ulong = 1;
pub const POLLIN: ::c_short = 0x1;
......@@ -42,3 +44,11 @@ pub const POLLOUT: ::c_short = 0x10;
pub const POLLNVAL: ::c_short = 0x20;
pub const SOL_SOCKET: ::c_int = 65535;
pub const MSG_OOB: ::c_int = 1;
pub const MSG_PEEK: ::c_int = 2;
pub const MSG_DONTWAIT: ::c_int = 4;
pub const MSG_DONTROUTE: ::c_int = 0;
pub const MSG_WAITALL: ::c_int = 0;
pub const MSG_MORE: ::c_int = 0;
pub const MSG_NOSIGNAL: ::c_int = 0;
......@@ -416,7 +416,6 @@ pub const PF_INET6: ::c_int = 23;
pub const AF_UNSPEC: ::c_int = 0;
pub const AF_INET: ::c_int = 2;
pub const AF_INET6: ::c_int = 23;
pub const CLOCK_REALTIME: ::clockid_t = 1;
pub const CLOCK_MONOTONIC: ::clockid_t = 4;
......@@ -425,14 +424,6 @@ pub const CLOCK_BOOTTIME: ::clockid_t = 4;
pub const SOCK_STREAM: ::c_int = 1;
pub const SOCK_DGRAM: ::c_int = 2;
pub const MSG_OOB: ::c_int = 1;
pub const MSG_PEEK: ::c_int = 2;
pub const MSG_DONTWAIT: ::c_int = 4;
pub const MSG_DONTROUTE: ::c_int = 0;
pub const MSG_WAITALL: ::c_int = 0;
pub const MSG_MORE: ::c_int = 0;
pub const MSG_NOSIGNAL: ::c_int = 0;
pub const SHUT_RD: ::c_int = 0;
pub const SHUT_WR: ::c_int = 1;
pub const SHUT_RDWR: ::c_int = 2;
......
......@@ -60,6 +60,7 @@ s! {
}
pub const AF_UNIX: ::c_int = 1;
pub const AF_INET6: ::c_int = 10;
pub const FIONBIO: ::c_ulong = 2147772030;
......@@ -75,6 +76,14 @@ pub const POLLHUP: ::c_short = 1 << 6;
pub const SOL_SOCKET: ::c_int = 0xfff;
pub const MSG_OOB: ::c_int = 0x04;
pub const MSG_PEEK: ::c_int = 0x01;
pub const MSG_DONTWAIT: ::c_int = 0x08;
pub const MSG_DONTROUTE: ::c_int = 0x4;
pub const MSG_WAITALL: ::c_int = 0x02;
pub const MSG_MORE: ::c_int = 0x10;
pub const MSG_NOSIGNAL: ::c_int = 0x20;
extern "C" {
pub fn sendmsg(
s: ::c_int,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment