Skip to content

Commit 919e823

Browse files
committed
Socket constants necessary for ESP-IDF support in socket2
1 parent 431591a commit 919e823

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/unix/newlib/espidf/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ pub const MSG_DONTROUTE: ::c_int = 0x4;
8383
pub const MSG_WAITALL: ::c_int = 0x02;
8484
pub const MSG_MORE: ::c_int = 0x10;
8585
pub const MSG_NOSIGNAL: ::c_int = 0x20;
86+
pub const MSG_TRUNC: ::c_int = 0x04;
87+
pub const MSG_CTRUNC: ::c_int = 0x08;
88+
pub const MSG_EOR: c_int = 0x08;
8689

8790
pub const PTHREAD_STACK_MIN: ::size_t = 768;
8891

@@ -100,6 +103,8 @@ extern "C" {
100103
pub fn sendmsg(s: ::c_int, msg: *const ::msghdr, flags: ::c_int) -> ::ssize_t;
101104
#[link_name = "lwip_recvmsg"]
102105
pub fn recvmsg(s: ::c_int, msg: *mut ::msghdr, flags: ::c_int) -> ::ssize_t;
106+
107+
pub fn eventfd(initval: ::c_uint, flags: ::c_int) -> ::c_int;
103108
}
104109

105110
pub use crate::unix::newlib::generic::{sigset_t, stat};

0 commit comments

Comments
 (0)