diff options
author | Ivan Markov <ivan.markov@gmail.com> | 2022-08-04 08:50:49 +0000 |
---|---|---|
committer | Ivan Markov <ivan.markov@gmail.com> | 2022-08-04 09:07:36 +0000 |
commit | 919e823d2e310265a5791151cc927b577387e82e (patch) | |
tree | 18a4d728327b21a9a35d6346a077be8c1e41d79a | |
parent | 431591aa35d7c6763f5fdd4af5e33de7303f028b (diff) | |
download | rust-libc-919e823d2e310265a5791151cc927b577387e82e.tar.gz |
Socket constants necessary for ESP-IDF support in socket2
-rw-r--r-- | src/unix/newlib/espidf/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/unix/newlib/espidf/mod.rs b/src/unix/newlib/espidf/mod.rs index 38c99c6b35..96e604c674 100644 --- a/src/unix/newlib/espidf/mod.rs +++ b/src/unix/newlib/espidf/mod.rs @@ -83,6 +83,9 @@ 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; +pub const MSG_TRUNC: ::c_int = 0x04; +pub const MSG_CTRUNC: ::c_int = 0x08; +pub const MSG_EOR: c_int = 0x08; pub const PTHREAD_STACK_MIN: ::size_t = 768; @@ -100,6 +103,8 @@ extern "C" { pub fn sendmsg(s: ::c_int, msg: *const ::msghdr, flags: ::c_int) -> ::ssize_t; #[link_name = "lwip_recvmsg"] pub fn recvmsg(s: ::c_int, msg: *mut ::msghdr, flags: ::c_int) -> ::ssize_t; + + pub fn eventfd(initval: ::c_uint, flags: ::c_int) -> ::c_int; } pub use crate::unix::newlib::generic::{sigset_t, stat}; |