Skip to content

Commit

Permalink
Auto merge of #3452 - devnexen:solarish_self_fd, r=JohnTitor
Browse files Browse the repository at this point in the history
expose solarish's SFV_FD_SELF for sendfilev purpose
  • Loading branch information
bors committed Nov 30, 2023
2 parents 7d8a284 + 6fb545a commit 78079f5
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 78079f5

Please sign in to comment.