From 6fb545a7939ff6f243cceece87897893cf517333 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 15faabd21ee3f..c34ff890b412a 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)