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