From 5422ee0b1720a2b162861a1eb2753abe580dfbad Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 25 Nov 2023 20:42:52 +0000 Subject: [PATCH] expose solarish's SFV_FD_SELF for sendfilev purpose --- src/unix/solarish/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs index 04dde54cf3649..650befe9823c3 100644 --- a/src/unix/solarish/mod.rs +++ b/src/unix/solarish/mod.rs @@ -2588,6 +2588,9 @@ const _CMSG_DATA_ALIGNMENT: usize = ::mem::size_of::<::c_int>(); const NEWDEV: ::c_int = 1; +// sys/sendfile.h +pub const SFV_FD_SELF: ::c_int = -2; + const_fn! { {const} fn _CMSG_HDR_ALIGN(p: usize) -> usize { (p + _CMSG_HDR_ALIGNMENT - 1) & !(_CMSG_HDR_ALIGNMENT - 1)