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 25, 2023
1 parent 3195caf commit 3d44948
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix/solarish/mod.rs
Original file line number Diff line number Diff line change
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 3d44948

Please sign in to comment.