X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2F_PDCLIB%2Ferrno.c;h=0c959b7282bbbcc8d41c2da2d43bd96718eb1ac3;hb=4116251e9bb6c386580d71d8c4afd2d0d08c6096;hp=ba01c350102bf71f9ca7136f470db8343d70e0ca;hpb=393020b6e48719d27699dea6b29e53025bbd5123;p=pdclib diff --git a/functions/_PDCLIB/errno.c b/functions/_PDCLIB/errno.c index ba01c35..0c959b7 100644 --- a/functions/_PDCLIB/errno.c +++ b/functions/_PDCLIB/errno.c @@ -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