static ErrorMarshal() { try { ErrorMarshal.Translate = new ErrorMarshal.ErrorTranslator(ErrorMarshal.strerror_r); ErrorMarshal.Translate(34); } catch (EntryPointNotFoundException entryPointNotFoundException) { ErrorMarshal.Translate = new ErrorMarshal.ErrorTranslator(ErrorMarshal.strerror); } }
public static string GetErrorDescription(Native.Errno errno) { return(ErrorMarshal.Translate(errno)); }