public static int ConvertErrno(Errno e) { int r; if (NativeConvert.TryFromErrno(e, out r)) { return(-r); } return(-1); }