X-Git-Url: https://git.gag.com/?p=fw%2Fpdclib;a=blobdiff_plain;f=platform%2Fexample%2Finternals%2F_PDCLIB_config.h;h=64cc98dc73411bcc4e854ff936e09ab0d2e76f63;hp=0059a7f6d9b9c41975e43bbb7eef0d46f8215619;hb=cf3b5ee2cff8f100e553bdcc1a9ab5083c29f73a;hpb=9a8147fc5ce995313474f4f565d69a545cd56862 diff --git a/platform/example/internals/_PDCLIB_config.h b/platform/example/internals/_PDCLIB_config.h index 0059a7f..64cc98d 100644 --- a/platform/example/internals/_PDCLIB_config.h +++ b/platform/example/internals/_PDCLIB_config.h @@ -37,8 +37,8 @@ /* strerror() and perror() functions. (If you change this value because you */ /* are using additional errno values, you *HAVE* to provide appropriate error */ /* messages for *ALL* locales.) */ -/* Default is 2 (0, ERANGE, EDOM). */ -#define _PDCLIB_ERRNO_MAX 3 +/* Default is 4 (0, ERANGE, EDOM, EILSEQ). */ +#define _PDCLIB_ERRNO_MAX 4 /* -------------------------------------------------------------------------- */ /* Integers */ @@ -341,6 +341,9 @@ typedef int _PDCLIB_fd_t; an uppercase 'E', and there is no mechanics in to unmask that particular value (for exactly that reason). + There also is no error message available for this value through either the + strerror() or perror() functions. It is being reported as "unknown" error. + The idea is that you scan the source of PDCLib for occurrences of this macro and replace _PDCLIB_ERROR with whatever additional errno value you came up with for your platform.