- retval
- A int containing the return value of a method from Mono.Unix.Native.Syscall.
- errno
- A Mono.Unix.Native.Errno specifying the exception to throw.
If retval is -1, then this method is equivalent to calling UnixMarshal.ThrowExceptionForError (errno). Otherwise, nothing is done.
If the exception thrown is not a Mono.Unix.UnixIOException, then the exception's Exception.InnerException property will be set to a Mono.Unix.UnixIOException instance wrapping errno, if possible.