/* Reading error */
switch ( errno )
{
+ /* See comments on implementation-defined errno values in
+ <_PDCLIB_config.h>.
+ */
case EBADF:
case EFAULT:
case EINTR:
case EINVAL:
case EIO:
- _PDCLIB_errno = _PDCLIB_EIO;
+ _PDCLIB_errno = _PDCLIB_ERROR;
break;
default:
- _PDCLIB_errno = _PDCLIB_EUNKNOWN;
+ /* This should be something like EUNKNOWN. */
+ _PDCLIB_errno = _PDCLIB_ERROR;
break;
}
stream->status |= _PDCLIB_ERRORFLAG;