]> pd.if.org Git - pdclib/blobdiff - functions/_PDCLIB/errno.c
Ad-hoc solutions for perror() and strerror().
[pdclib] / functions / _PDCLIB / errno.c
index ba01c350102bf71f9ca7136f470db8343d70e0ca..0c959b7282bbbcc8d41c2da2d43bd96718eb1ac3 100644 (file)
@@ -18,6 +18,17 @@ int * _PDCLIB_errno_func()
     return &_PDCLIB_errno;
 }
 
+/* TODO: Doing this via a static array is not the way to do it. */
+char const * _PDCLIB_errno_texts[] = {
+    "",
+    "ERANGE (Range error)",
+    "EDOM (Domain error)",
+    "EIO (I/O error)",
+    "EUNKNOWN (Unknown error)",
+    "EINVAL (Invalid parameter value)",
+    "ERETRY (I/O retries exceeded)"
+};
+
 #endif
 
 #ifdef TEST