Skip to content

Commit 82453b3

Browse files
committed
Add MSG_ constants for Xtensa.
1 parent 0a60b22 commit 82453b3

File tree

4 files changed

+24
-8
lines changed

4 files changed

+24
-8
lines changed

src/unix/newlib/aarch64/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,11 @@ pub const POLLHUP: ::c_short = 0x10;
4040
pub const POLLNVAL: ::c_short = 0x20;
4141

4242
pub const SOL_SOCKET: ::c_int = 65535;
43+
44+
pub const MSG_OOB: ::c_int = 1;
45+
pub const MSG_PEEK: ::c_int = 2;
46+
pub const MSG_DONTWAIT: ::c_int = 4;
47+
pub const MSG_DONTROUTE: ::c_int = 0;
48+
pub const MSG_WAITALL: ::c_int = 0;
49+
pub const MSG_MORE: ::c_int = 0;
50+
pub const MSG_NOSIGNAL: ::c_int = 0;

src/unix/newlib/arm/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,11 @@ pub const POLLOUT: ::c_short = 0x10;
4242
pub const POLLNVAL: ::c_short = 0x20;
4343

4444
pub const SOL_SOCKET: ::c_int = 65535;
45+
46+
pub const MSG_OOB: ::c_int = 1;
47+
pub const MSG_PEEK: ::c_int = 2;
48+
pub const MSG_DONTWAIT: ::c_int = 4;
49+
pub const MSG_DONTROUTE: ::c_int = 0;
50+
pub const MSG_WAITALL: ::c_int = 0;
51+
pub const MSG_MORE: ::c_int = 0;
52+
pub const MSG_NOSIGNAL: ::c_int = 0;

src/unix/newlib/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -425,14 +425,6 @@ pub const CLOCK_BOOTTIME: ::clockid_t = 4;
425425
pub const SOCK_STREAM: ::c_int = 1;
426426
pub const SOCK_DGRAM: ::c_int = 2;
427427

428-
pub const MSG_OOB: ::c_int = 1;
429-
pub const MSG_PEEK: ::c_int = 2;
430-
pub const MSG_DONTWAIT: ::c_int = 4;
431-
pub const MSG_DONTROUTE: ::c_int = 0;
432-
pub const MSG_WAITALL: ::c_int = 0;
433-
pub const MSG_MORE: ::c_int = 0;
434-
pub const MSG_NOSIGNAL: ::c_int = 0;
435-
436428
pub const SHUT_RD: ::c_int = 0;
437429
pub const SHUT_WR: ::c_int = 1;
438430
pub const SHUT_RDWR: ::c_int = 2;

src/unix/newlib/xtensa/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ pub const POLLHUP: ::c_short = 1 << 6;
7575

7676
pub const SOL_SOCKET: ::c_int = 0xfff;
7777

78+
pub const MSG_OOB: ::c_int = 0x04;
79+
pub const MSG_PEEK: ::c_int = 0x01;
80+
pub const MSG_DONTWAIT: ::c_int = 0x08;
81+
pub const MSG_DONTROUTE: ::c_int = 0x4;
82+
pub const MSG_WAITALL: ::c_int = 0x02;
83+
pub const MSG_MORE: ::c_int = 0x10;
84+
pub const MSG_NOSIGNAL: ::c_int = 0x20;
85+
7886
extern "C" {
7987
pub fn sendmsg(
8088
s: ::c_int,

0 commit comments

Comments
 (0)