/* EMPTY - OK */
break;
default:
- _PDCLIB_errno = _PDCLIB_EINVAL;
+ /* See comments on implementation-defined errno values in
+ <_PDCLIB_config.h>.
+ */
+ _PDCLIB_errno = _PDCLIB_ERROR;
return EOF;
break;
}
{
case EBADF:
case EFAULT:
- _PDCLIB_errno = _PDCLIB_EIO;
+ /* See comments on implementation-defined errno values in
+ <_PDCLIB_config.h>.
+ */
+ _PDCLIB_errno = _PDCLIB_ERROR;
break;
default:
- _PDCLIB_errno = _PDCLIB_EUNKNOWN;
+ /* This should be something like EUNKNOWN. */
+ _PDCLIB_errno = _PDCLIB_ERROR;
break;
}
return EOF;
#ifdef TEST
#include <_PDCLIB_test.h>
-int main()
+int main( void )
{
/* Testing covered by ftell.c */
return TEST_RESULTS;