pub(in backend) unsafe fn try_decode_raw_fd<Num: RetNumber>(
raw: RetReg<Num>,
) -> Result<RawFd>
Expand description
Check for an error from the result of a syscall which encodes a file descriptor on success.
§Safety
This must only be used with syscalls which return file descriptors on success.