Skip to content

Commit 78079f5

Browse files
committed
Auto merge of #3452 - devnexen:solarish_self_fd, r=JohnTitor
expose solarish's SFV_FD_SELF for sendfilev purpose
2 parents 7d8a284 + 6fb545a commit 78079f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unix/solarish/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2588,6 +2588,9 @@ const _CMSG_DATA_ALIGNMENT: usize = ::mem::size_of::<::c_int>();
25882588

25892589
const NEWDEV: ::c_int = 1;
25902590

2591+
// sys/sendfile.h
2592+
pub const SFV_FD_SELF: ::c_int = -2;
2593+
25912594
const_fn! {
25922595
{const} fn _CMSG_HDR_ALIGN(p: usize) -> usize {
25932596
(p + _CMSG_HDR_ALIGNMENT - 1) & !(_CMSG_HDR_ALIGNMENT - 1)

0 commit comments

Comments
 (0)