Function rustix::backend::conv::ret_owned_fd

source ·
pub(super) unsafe fn ret_owned_fd(raw: RetReg<R0>) -> Result<OwnedFd>
Expand description

Convert a usize returned from a syscall that effectively returns an OwnedFd on success.

§Safety

The caller must ensure that this is the return value of a syscall which returns an owned file descriptor.