Skip to content

Commit

Permalink
expose solarish's SFV_FD_SELF for sendfilev purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Nov 29, 2023
1 parent 7d8a284 commit 6fb545a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix/solarish/mod.rs
Expand Up @@ -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)
Expand Down

0 comments on commit 6fb545a

Please sign in to comment.